diff --git a/base/fs.jl b/base/fs.jl index 1d387e60694ca..89acbaba2bdaf 100644 --- a/base/fs.jl +++ b/base/fs.jl @@ -33,6 +33,7 @@ export File, JL_O_SHORT_LIVED, JL_O_SEQUENTIAL, JL_O_RANDOM, + JL_O_NOCTTY, S_IRUSR, S_IWUSR, S_IXUSR, S_IRWXU, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXG, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXO diff --git a/src/file_constants.h b/src/file_constants.h index 348a96d3b6768..97de44d9e3bf4 100644 --- a/src/file_constants.h +++ b/src/file_constants.h @@ -21,3 +21,6 @@ const JL_O_SEQUENTIAL = O_SEQUENTIAL #ifdef O_RANDOM const JL_O_RANDOM = O_RANDOM #endif +#ifdef O_NOCTTY +const JL_O_NOCTTY = O_NOCTTY +#endif \ No newline at end of file diff --git a/test/repl.jl b/test/repl.jl index 58007995f8a23..3b263a2de763c 100644 --- a/test/repl.jl +++ b/test/repl.jl @@ -5,7 +5,7 @@ let exename=joinpath(JULIA_HOME,(ccall(:jl_is_debugbuild,Cint,())==0?"julia":"ju @unix_only begin const O_RDWR = Base.FS.JL_O_RDWR -const O_NOCTTY = 0x20000 +const O_NOCTTY = Base.FS.JL_O_NOCTTY fdm = ccall(:posix_openpt,Cint,(Cint,),O_RDWR|O_NOCTTY) fdm == -1 && error("Failed to open PTY master")