In article <20220928003547.d2375f...@cvs.netbsd.org>,
David H. Gutteridge <source-changes-d@NetBSD.org> wrote:
>-=-=-=-=-=-
>
>Module Name:   src
>Committed By:  gutteridge
>Date:          Wed Sep 28 00:35:47 UTC 2022
>
>Modified Files:
>       src/lib/libc/stdlib: posix_openpt.3
>
>Log Message:
>posix_openpt.3: reflect flag changes from r. 1.44 of tty_ptm.c
>
>Some flags are now accepted, others are still ignored. (E.g., other
>BSDs would return EINVAL if O_RDWR wasn't passed, and we now accept
>O_NONBLOCK but not O_CLOEXEC.)

How so?

#define FCNTLFLAGS      (FAPPEND|FASYNC|FFSYNC|FNONBLOCK|FDSYNC|FRSYNC|FALTIO|\
                                               ^^^^^^^^^
                         FDIRECT|FNOSIGPIPE)
/* bits to save after open(2) */
#define FMASK           (FREAD|FWRITE|FCNTLFLAGS|FEXEC)
                                      ^^^^^^^^^^

Best,

christos

Reply via email to