Skip to content

Commit 798fa22

Browse files
committed
Auto merge of #24306 - l0kod:libc-noctty, r=alexcrichton
cf. open(2): If the open file refers to a terminal device it will not become the process's controlling terminal even if the process does not have one.
2 parents 288809c + 008b3de commit 798fa22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/liblibc/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2856,6 +2856,7 @@ pub mod consts {
28562856
pub const O_APPEND : c_int = 1024;
28572857
pub const O_CREAT : c_int = 64;
28582858
pub const O_EXCL : c_int = 128;
2859+
pub const O_NOCTTY : c_int = 256;
28592860
pub const O_TRUNC : c_int = 512;
28602861
pub const S_IFIFO : mode_t = 4096;
28612862
pub const S_IFCHR : mode_t = 8192;
@@ -3077,6 +3078,7 @@ pub mod consts {
30773078
pub const O_APPEND : c_int = 8;
30783079
pub const O_CREAT : c_int = 256;
30793080
pub const O_EXCL : c_int = 1024;
3081+
pub const O_NOCTTY : c_int = 2048;
30803082
pub const O_TRUNC : c_int = 512;
30813083
pub const S_IFIFO : mode_t = 4096;
30823084
pub const S_IFCHR : mode_t = 8192;
@@ -3824,6 +3826,7 @@ pub mod consts {
38243826
pub const O_APPEND : c_int = 8;
38253827
pub const O_CREAT : c_int = 512;
38263828
pub const O_EXCL : c_int = 2048;
3829+
pub const O_NOCTTY : c_int = 32768;
38273830
pub const O_TRUNC : c_int = 1024;
38283831
pub const S_IFIFO : mode_t = 4096;
38293832
pub const S_IFCHR : mode_t = 8192;
@@ -4278,6 +4281,7 @@ pub mod consts {
42784281
pub const O_APPEND : c_int = 8;
42794282
pub const O_CREAT : c_int = 512;
42804283
pub const O_EXCL : c_int = 2048;
4284+
pub const O_NOCTTY : c_int = 32768;
42814285
pub const O_TRUNC : c_int = 1024;
42824286
pub const S_IFIFO : mode_t = 4096;
42834287
pub const S_IFCHR : mode_t = 8192;
@@ -4698,6 +4702,7 @@ pub mod consts {
46984702
pub const O_APPEND : c_int = 8;
46994703
pub const O_CREAT : c_int = 512;
47004704
pub const O_EXCL : c_int = 2048;
4705+
pub const O_NOCTTY : c_int = 131072;
47014706
pub const O_TRUNC : c_int = 1024;
47024707
pub const S_IFIFO : mode_t = 4096;
47034708
pub const S_IFCHR : mode_t = 8192;

0 commit comments

Comments
 (0)