Skip to content

Commit

Permalink
Auto merge of #2941 - SteveLauC:statx-constants-on-gnu-linux, r=JohnT…
Browse files Browse the repository at this point in the history
…itor

add missing STATX_ATTR_* constants on gnu/linux

Corresponds to [this](https://github.com/torvalds/linux/blob/master/include/uapi/linux/stat.h#L189~L191):

```c
#define STATX_ATTR_MOUNT_ROOT		0x00002000 /* Root of a mount */
#define STATX_ATTR_VERITY		0x00100000 /* [I] Verity protected file */
#define STATX_ATTR_DAX			0x00200000 /* File is currently in DAX state */
```
  • Loading branch information
bors committed Oct 9, 2022
2 parents 2dfe1ab + 93383c5 commit 6e576ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libc-test/semver/linux-gnu.txt
Expand Up @@ -424,6 +424,9 @@ STATX_ATTR_COMPRESSED
STATX_ATTR_ENCRYPTED
STATX_ATTR_IMMUTABLE
STATX_ATTR_NODUMP
STATX_ATTR_MOUNT_ROOT
STATX_ATTR_VERITY
STATX_ATTR_DAX
STATX_BASIC_STATS
STATX_BLOCKS
STATX_BTIME
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Expand Up @@ -1026,6 +1026,9 @@ pub const STATX_ATTR_APPEND: ::c_int = 0x0020;
pub const STATX_ATTR_NODUMP: ::c_int = 0x0040;
pub const STATX_ATTR_ENCRYPTED: ::c_int = 0x0800;
pub const STATX_ATTR_AUTOMOUNT: ::c_int = 0x1000;
pub const STATX_ATTR_MOUNT_ROOT: ::c_int = 0x2000;
pub const STATX_ATTR_VERITY: ::c_int = 0x00100000;
pub const STATX_ATTR_DAX: ::c_int = 0x00200000;

pub const SOMAXCONN: ::c_int = 4096;

Expand Down

0 comments on commit 6e576ad

Please sign in to comment.