Add some compatibility defines for libssh
This commit is contained in:
@@ -15,3 +15,6 @@ pub const O_CLOEXEC: c_int = 0x8_0000;
|
||||
pub const O_PATH: c_int = 0x20_0000;
|
||||
|
||||
pub const FD_CLOEXEC: c_int = 0x8_0000;
|
||||
|
||||
// Defined for compatibility
|
||||
pub const O_NDELAY: c_int = O_NONBLOCK;
|
||||
@@ -24,3 +24,6 @@ pub const O_NOFOLLOW: c_int = -0x8000_0000;
|
||||
pub const FD_CLOEXEC: c_int = 0x0100_0000;
|
||||
|
||||
pub const O_NOCTTY: c_int = 0x00000200;
|
||||
|
||||
// Defined for compatibility
|
||||
pub const O_NDELAY: c_int = O_NONBLOCK;
|
||||
@@ -25,6 +25,11 @@ pub const S_IRUSR: c_int = 0o0_400;
|
||||
pub const S_IWUSR: c_int = 0o0_200;
|
||||
pub const S_IXUSR: c_int = 0o0_100;
|
||||
|
||||
// Defined for compatibility
|
||||
pub const S_IREAD: c_int = S_IRUSR;
|
||||
pub const S_IWRITE: c_int = S_IWUSR;
|
||||
pub const S_IEXEC: c_int = S_IXUSR;
|
||||
|
||||
pub const S_IRWXG: c_int = 0o0_070;
|
||||
pub const S_IRGRP: c_int = 0o0_040;
|
||||
pub const S_IWGRP: c_int = 0o0_020;
|
||||
|
||||
Reference in New Issue
Block a user