public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH V2 0/6] syscalls: Add tests to verify the _time_high fields
Date: Tue, 16 Jun 2020 16:29:58 +0200	[thread overview]
Message-ID: <20200616142958.GA25688@yuki.lan> (raw)
In-Reply-To: <20200616131014.GB2790@yuki.lan>

Hi!
Looking at the travis it looks like we do have a problem with missing
__kernel_ulong_t on older kernel headers:

https://api.travis-ci.org/v3/job/698929344/log.txt

Also looking into kernel headers it looks like it's defined to unsigned
long unless on x32 which has unsigned long long. It seems that the types
__kernel_long_t and __kernel_ulong_t firstly appeared in 3.4 along with
the x32 so I guess that we will need a fallback definition in UAPI as
well. And given that __kernel_long_t is defined we may need something
as lapi/posix_types.h with:

#include "linux/posix_types.h"

#ifndef __kernel_long_t
# if (defined(__x86_64__) && defined(__ILP32__))
typedef long          __kernel_long_t
typedef unsigned long __kernel_ulong_t
# else
typedef long long          __kernel_long_t
typedef unsigned long long __kernel_ulong_t
# endif
#endif


Is that all or do I miss some 32bit ABI with 64bit syscalls?

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2020-06-16 14:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-16 10:20 [LTP] [PATCH V2 0/6] syscalls: Add tests to verify the _time_high fields Viresh Kumar
2020-06-16 10:20 ` [LTP] [PATCH V2 1/6] include: Add declaration of struct semid64_ds Viresh Kumar
2020-06-16 10:20 ` [LTP] [PATCH V2 2/6] syscalls: semctl: Add new test to verify the _time_high fields Viresh Kumar
2020-06-16 10:20 ` [LTP] [PATCH V2 3/6] include: Add declaration of struct shmid64_ds Viresh Kumar
2020-06-16 10:20 ` [LTP] [PATCH V2 4/6] syscalls: shmctl: Add new test to verify the _time_high fields Viresh Kumar
2020-06-16 10:20 ` [LTP] [PATCH V2 5/6] include: Add declaration of struct msqid64_ds Viresh Kumar
2020-06-16 16:11   ` Petr Vorel
2020-06-17  4:30     ` Viresh Kumar
2020-06-16 10:20 ` [LTP] [PATCH V2 6/6] syscalls: msgctl: Add new test to verify the _time_high fields Viresh Kumar
2020-06-16 13:10 ` [LTP] [PATCH V2 0/6] syscalls: Add tests " Cyril Hrubis
2020-06-16 14:29   ` Cyril Hrubis [this message]
2020-06-17  4:49     ` Viresh Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200616142958.GA25688@yuki.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox