Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 3 Sep 2020 17:39:51 +0200
From: Arnd Bergmann <arnd@...db.de>
To: musl@...ts.openwall.com
Cc: "Stefan O'Rear" <sorear@...tmail.com>
Subject: Re: [PATCH 05/14] Add src/internal/statx.h

On Thu, Sep 3, 2020 at 1:24 PM Stefan O'Rear <sorear@...tmail.com> wrote:
>
> We need to make internal syscalls to SYS_statx when SYS_fstatat is not
> available without changing the musl API.
> ---
>  src/internal/statx.h | 28 ++++++++++++++++++++++++++++
>  src/stat/fstatat.c   | 28 ++--------------------------
>  2 files changed, 30 insertions(+), 26 deletions(-)
>  create mode 100644 src/internal/statx.h
>
> diff --git a/src/internal/statx.h b/src/internal/statx.h
> new file mode 100644
> index 00000000..46b16f62
> --- /dev/null
> +++ b/src/internal/statx.h
> @@ -0,0 +1,28 @@
> +struct statx {
> +       uint32_t stx_mask;
> +       uint32_t stx_blksize;
> +       uint64_t stx_attributes;
> +       uint32_t stx_nlink;
> +       uint32_t stx_uid;
> +       uint32_t stx_gid;
> +       uint16_t stx_mode;
> +       uint16_t pad1;
> +       uint64_t stx_ino;
> +       uint64_t stx_size;
> +       uint64_t stx_blocks;
> +       uint64_t stx_attributes_mask;
> +       struct {
> +               int64_t tv_sec;
> +               uint32_t tv_nsec;
> +               int32_t pad;
> +       } stx_atime, stx_btime, stx_ctime, stx_mtime;
> +       uint32_t stx_rdev_major;
> +       uint32_t stx_rdev_minor;
> +       uint32_t stx_dev_major;
> +       uint32_t stx_dev_minor;
> +       uint64_t spare[14];
> +};

Unrelated to your patch that just moves this, I notice that
the kernel version has gained an stx_mnt_id field.

     Arnd

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.