mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-30 08:19:09 +00:00
- Remove SEEK_DATA and SEEK_HOLE from stdio.h, they don't belong here.
- Only define SEEK_DATA and SEEK_HOLE in sys/unistd.h when neither _POSIX_SOURCE nor _XOPEN_SOURCE is defined. Pointed out by: bde, ache
This commit is contained in:
parent
854c06a9bb
commit
f3fdfb670c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168469
@ -200,12 +200,6 @@ __END_DECLS
|
||||
#ifndef SEEK_END
|
||||
#define SEEK_END 2 /* set file offset to EOF plus offset */
|
||||
#endif
|
||||
#ifndef SEEK_DATA
|
||||
#define SEEK_DATA 3 /* set file offset to next data past offset */
|
||||
#endif
|
||||
#ifndef SEEK_HOLE
|
||||
#define SEEK_HOLE 4 /* set file offset to next hole past offset */
|
||||
#endif
|
||||
|
||||
#define stdin __stdinp
|
||||
#define stdout __stdoutp
|
||||
|
@ -107,6 +107,8 @@
|
||||
#define SEEK_SET 0 /* set file offset to offset */
|
||||
#define SEEK_CUR 1 /* set file offset to current plus offset */
|
||||
#define SEEK_END 2 /* set file offset to EOF plus offset */
|
||||
#endif
|
||||
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
|
||||
#define SEEK_DATA 3 /* set file offset to next data past offset */
|
||||
#define SEEK_HOLE 4 /* set file offset to next hole past offset */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user