Re: [PATCH v2] Make some standard open() flags visible

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Feb 18 14:06, Sebastian Huber wrote:
> Make the POSIX O_CLOEXEC, O_NOFOLLOW, O_DIRECTORY, O_EXEC, and O_SEARCH
> open() flags available also to non-Cygwin systems.
> 
> Make the BSD/glibc O_DIRECT open() flag  available also to non-Cygwin
> systems.
> 
> Signed-off-by: Sebastian Huber <[email protected]>
> ---
>  newlib/libc/include/sys/_default_fcntl.h | 48 ++++++++++++++++++--------------
>  1 file changed, 27 insertions(+), 21 deletions(-)
> 
> diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h
> index 33b462285..22fa10688 100644
> --- a/newlib/libc/include/sys/_default_fcntl.h
> +++ b/newlib/libc/include/sys/_default_fcntl.h
> @@ -23,6 +23,19 @@ extern "C" {
>  #define	_FNONBLOCK	0x4000	/* non blocking I/O (POSIX style) */
>  #define	_FNDELAY	_FNONBLOCK	/* non blocking I/O (4.2 style) */
>  #define	_FNOCTTY	0x8000	/* don't assign a ctty on this open */
> +#if defined (__CYGWIN__)
> +#define	_FBINARY	0x10000
> +#define	_FTEXT		0x20000
> +#endif
> +#define	_FNOINHERIT	0x40000
> +#define	_FDIRECT	0x80000
> +#define	_FNOFOLLOW	0x100000
> +#define	_FDIRECTORY	0x200000
> +#define	_FEXECSRCH	0x400000
> +#if defined (__CYGWIN__)
> +#define	_FTMPFILE	0x800000
> +#define	_FNOATIME	0x1000000
> +#endif

This patch looks a bit... outdated?


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxqv6wACgkQ9TYGna5E
T6Dc8w//VOT0FnXrSqEF2ruAi5tizpxPpebO5Xg6xEqOQvbM8MPf5HRuS5UU+5QX
5CLF1BtkUOjah7aVw3LAWh9fevPggxt1qnkDCRip91b82hr2MC7No4B0LvX87eyt
/P+6scFCRKsNVqT8NBpfJnOvCTIlYu0bDECrJglFmYW5V6wUwTv/zzPczfSOQT1U
cqriiEYvo1SilDxOg2eLNoe+n87N4WAVb8/5KVCcjEwtXGTPyFGNRxkUGVL2djAs
8VEgKt5gl345WLWfFdRlnZmUdTeU7sG3rgw8Bsy/VDgGL+0w/E9nDL2dgl8w2FOW
lsWWs9uZuTaXehRt3aWn6ga1MWtNd/7u4R1VeIDWu3TeZMEmYWJCs8C3Au0gw+q6
nz4/txv1MX/ZqGHlKNU0GU+UXgvFDx74Vfkh/F8lmelOQKe3qbmO9ll/PuE2gEkD
zfXdwGyoZkfKj8mFvDiGiTFZefv107ZgmuHCAuTjCCcpDuF3ddaaHdYzIe0NDNKr
D3VjPWd0r50U9HZIesvuCiil1E2RvWZcI3WAxWQ9diCM9RmT7Ob0XKtARlWE0lVJ
v7i+48yHj6Zu48GR4A/bUmi38qEOfZxrza8oJfhmuiBFFYsDL4rw2V3uAZnoQeWL
bu8HdQN3mFyQuiIbJ9C//x8Xt3cx1Zm0866dDdRoLWi4Sas6o28=
=vefw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.