Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/stdlib



In article <20220928003547.D2375FA92%cvs.NetBSD.org@localhost>,
David H. Gutteridge <source-changes-d%NetBSD.org@localhost> 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



Home | Main Index | Thread Index | Old Index