mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Define SEEK_DATA and SEEK_HOLE
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
2011-07-23 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
|
||||
* libio/stido.h: Likewise.
|
||||
|
||||
* sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
|
||||
(AF_NFC): Define.
|
||||
* sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
|
||||
|
@ -141,6 +141,10 @@ typedef _G_fpos64_t fpos64_t;
|
||||
#define SEEK_SET 0 /* Seek from beginning of file. */
|
||||
#define SEEK_CUR 1 /* Seek from current position. */
|
||||
#define SEEK_END 2 /* Seek from end of file. */
|
||||
#ifdef __USE_GNU
|
||||
# define SEEK_DATA 3 /* Seek to next data. */
|
||||
# define SEEK_HOLE 4 /* Seek to next hole. */
|
||||
#endif
|
||||
|
||||
|
||||
#if defined __USE_SVID || defined __USE_XOPEN
|
||||
|
@ -312,6 +312,10 @@ extern int faccessat (int __fd, __const char *__file, int __type, int __flag)
|
||||
# define SEEK_SET 0 /* Seek from beginning of file. */
|
||||
# define SEEK_CUR 1 /* Seek from current position. */
|
||||
# define SEEK_END 2 /* Seek from end of file. */
|
||||
# ifdef __USE_GNU
|
||||
# define SEEK_DATA 3 /* Seek to next data. */
|
||||
# define SEEK_HOLE 4 /* Seek to next hole. */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined __USE_BSD && !defined L_SET
|
||||
|
Reference in New Issue
Block a user