Skip to content

Commit 7bff2dc

Browse files
committed
haiku: add missing pathconf constants.
1 parent 7b2ecc6 commit 7bff2dc

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,30 @@ pub const FILENAME_MAX: ::c_uint = 256;
610610
pub const FOPEN_MAX: ::c_uint = 128;
611611
pub const L_tmpnam: ::c_uint = 512;
612612
pub const TMP_MAX: ::c_uint = 32768;
613+
614+
pub const _PC_CHOWN_RESTRICTED: ::c_int = 1;
615+
pub const _PC_MAX_CANON: ::c_int = 2;
616+
pub const _PC_MAX_INPUT: ::c_int = 3;
613617
pub const _PC_NAME_MAX: ::c_int = 4;
618+
pub const _PC_NO_TRUNC: ::c_int = 5;
619+
pub const _PC_PATH_MAX: ::c_int = 6;
620+
pub const _PC_PIPE_BUF: ::c_int = 7;
621+
pub const _PC_VDISABLE: ::c_int = 8;
622+
pub const _PC_LINK_MAX: ::c_int = 25;
623+
pub const _PC_SYNC_IO: ::c_int = 26;
624+
pub const _PC_ASYNC_IO: ::c_int = 27;
625+
pub const _PC_PRIO_IO: ::c_int = 28;
626+
pub const _PC_SOCK_MAXBUF: ::c_int = 29;
627+
pub const _PC_FILESIZEBITS: ::c_int = 30;
628+
pub const _PC_REC_INCR_XFER_SIZE: ::c_int = 31;
629+
pub const _PC_REC_MAX_XFER_SIZE: ::c_int = 32;
630+
pub const _PC_REC_MIN_XFER_SIZE: ::c_int = 33;
631+
pub const _PC_REC_XFER_ALIGN: ::c_int = 34;
632+
pub const _PC_ALLOC_SIZE_MIN: ::c_int = 35;
633+
pub const _PC_SYMLINK_MAX: ::c_int = 36;
634+
pub const _PC_2_SYMLINKS: ::c_int = 37;
635+
pub const _PC_XATTR_EXISTS: ::c_int = 38;
636+
pub const _PC_XATTR_ENABLED: ::c_int = 39;
614637

615638
pub const FIONBIO: ::c_int = 0xbe000000;
616639

0 commit comments

Comments
 (0)