diff --git a/src/modules/_Stdio/file.c b/src/modules/_Stdio/file.c index 80c896a8a67f1c28c39054be3257d3e073673282..e078d5dc91fe1d1d6cb261bed5134bacc1358145 100644 --- a/src/modules/_Stdio/file.c +++ b/src/modules/_Stdio/file.c @@ -3910,6 +3910,8 @@ static void file_errno(INT32 args) *! @[FILE_EXCLUSIVE] *! @value 0x0400 *! @[FILE_NONBLOCKING] + *! @value 0x0080 + *! @[PROP_TTY] *! @value 0x0040 *! @[PROP_SEND_FD] *! @value 0x0010 @@ -5999,6 +6001,11 @@ static void f_get_all_active_fd(INT32 args) *! *! The @[Stdio.File] object supports tty operations. *! + *! @note + *! This constant is only present on platforms where pseudo tty + *! (aka pty) operations are available, and may thus be used to + *! detect whether such operations should be attempted. + *! *! @seealso *! @[Stdio.File()->pipe()] */ @@ -6424,7 +6431,7 @@ PIKE_MODULE_INIT add_integer_constant("PROP_REVERSE",fd_REVERSE,0); #ifdef HAVE_OPENPTY #ifdef __NT__ - if (Pike_NT_OpenPseudoConsole) { + if (Pike_NT_CreatePseudoConsole) { add_integer_constant("PROP_TTY",fd_TTY,0); } #else