diff options
| author | wiz <wiz@NetBSD.org> | 2015-03-24 07:44:52 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2015-03-24 07:44:52 +0000 |
| commit | cf20cdc531e9525f7aa99b50deba7f3828361e28 (patch) | |
| tree | 7c3d3c6cd2d0524dfbaaffa6d5799c3a651df80f /include | |
| parent | db413e41d91c202135f42c1d62ffcd3c94007cd3 (diff) | |
Put fseeko, ftello, pread, and pwrite in the POSIX 2001 namespace.
Ok christos, apb, martin
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdio.h | 6 | ||||
| -rw-r--r-- | include/unistd.h | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/include/stdio.h b/include/stdio.h index 189ba9e4c8c..4668af92cb2 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.95 2015/03/05 03:29:02 dholland Exp $ */ +/* $NetBSD: stdio.h,v 1.96 2015/03/24 07:44:52 wiz Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -370,7 +370,7 @@ __END_DECLS /* * X/Open CAE Specification Issue 5 Version 2 */ -#if (_XOPEN_SOURCE - 0) >= 500 || defined(_LARGEFILE_SOURCE) || \ +#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #ifndef off_t typedef __off_t off_t; @@ -381,7 +381,7 @@ __BEGIN_DECLS int fseeko(FILE *, off_t, int); off_t ftello(FILE *); __END_DECLS -#endif /* _XOPEN_SOURCE >= 500 || _LARGEFILE_SOURCE || _NETBSD_SOURCE */ +#endif /* (_POSIX_C_SOURCE - 0) >= 200112L || _XOPEN_SOURCE >= 500 || ... */ /* * Functions defined in ISO C99. Still put under _NETBSD_SOURCE due to diff --git a/include/unistd.h b/include/unistd.h index 84f43496414..676a5c006ac 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.144 2015/02/22 00:54:46 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.145 2015/03/24 07:44:52 wiz Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -294,10 +294,11 @@ char *getwd(char *); /* obsoleted by getcwd() */ /* * X/Open CAE Specification Issue 5 Version 2 */ -#if (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE) +#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 500 || \ + defined(_NETBSD_SOURCE) ssize_t pread(int, void *, size_t, off_t); ssize_t pwrite(int, const void *, size_t, off_t); -#endif +#endif /* (_POSIX_C_SOURCE - 0) >= 200112L || ... */ /* * X/Open Extended API set 2 (a.k.a. C063) |
