Skip to content

Commit 9253fca

Browse files
committed
Auto merge of #3303 - Mek101:main, r=JohnTitor
linux/gnu: add glob extension constants As per title, added ``` GLOB_PERIOD GLOB_ALTDIRFUNC GLOB_BRACE GLOB_NOMAGIC GLOB_TILDE GLOB_ONLYDIR GLOB_TILDE_CHECK ```
2 parents fab4a56 + 43152fb commit 9253fca

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

libc-test/semver/linux-gnu.txt

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ FUTEXFS_SUPER_MAGIC
5151
GENL_ID_PMCRAID
5252
GENL_ID_VFS_DQUOT
5353
GENL_UNS_ADMIN_PERM
54+
GLOB_ALTDIRFUNC
55+
GLOB_BRACE
56+
GLOB_NOMAGIC
57+
GLOB_ONLYDIR
58+
GLOB_PERIOD
59+
GLOB_TILDE
60+
GLOB_TILDE_CHECK
5461
HOSTFS_SUPER_MAGIC
5562
HPFS_SUPER_MAGIC
5663
HUGETLBFS_MAGIC

src/unix/linux_like/linux/gnu/mod.rs

+10
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,16 @@ pub const TIME_ERROR: ::c_int = 5;
10831083
pub const TIME_BAD: ::c_int = TIME_ERROR;
10841084
pub const MAXTC: ::c_long = 6;
10851085

1086+
// Portable GLOB_* flags are defined at the `linux_like` level.
1087+
// The following are GNU extensions.
1088+
pub const GLOB_PERIOD: ::c_int = 1 << 7;
1089+
pub const GLOB_ALTDIRFUNC: ::c_int = 1 << 9;
1090+
pub const GLOB_BRACE: ::c_int = 1 << 10;
1091+
pub const GLOB_NOMAGIC: ::c_int = 1 << 11;
1092+
pub const GLOB_TILDE: ::c_int = 1 << 12;
1093+
pub const GLOB_ONLYDIR: ::c_int = 1 << 13;
1094+
pub const GLOB_TILDE_CHECK: ::c_int = 1 << 14;
1095+
10861096
cfg_if! {
10871097
if #[cfg(any(
10881098
target_arch = "arm",

0 commit comments

Comments
 (0)