1
0
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:
Pawel Jakub Dawidek 2007-04-07 16:02:30 +00:00
parent 854c06a9bb
commit f3fdfb670c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168469
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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