Skip to content

Commit 1772e95

Browse files
Thomasdezeeuwtgross35
authored andcommitted
Add NAME_MAX for Linux (like)
(backport <#4888>) (cherry picked from commit 9cbb6ff)
1 parent 1de6920 commit 1772e95

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,7 @@ MS_SLAVE
17511751
MS_STRICTATIME
17521752
MS_SYNCHRONOUS
17531753
MS_UNBINDABLE
1754+
NAME_MAX
17541755
NDA_CACHEINFO
17551756
NDA_DST
17561757
NDA_IFINDEX

src/unix/linux_like/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ pub const LOCK_UN: c_int = 8;
10011001
pub const SS_ONSTACK: c_int = 1;
10021002
pub const SS_DISABLE: c_int = 2;
10031003

1004+
pub const NAME_MAX: c_int = 255;
10041005
pub const PATH_MAX: c_int = 4096;
10051006

10061007
pub const UIO_MAXIOV: c_int = 1024;

0 commit comments

Comments
 (0)