This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.14-142-g798be72


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  798be72d127adf18f382323d0eed0a1e394967f8 (commit)
      from  8accd4dccc82caee4979cc86d064ddd43853d77d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=798be72d127adf18f382323d0eed0a1e394967f8

commit 798be72d127adf18f382323d0eed0a1e394967f8
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Sat Jul 23 21:45:57 2011 -0400

    Define SEEK_DATA and SEEK_HOLE

diff --git a/ChangeLog b/ChangeLog
index 4658797..80b7d7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/libio/stdio.h b/libio/stdio.h
index 962c287..59ecdef 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -118,7 +118,7 @@ typedef _G_fpos64_t fpos64_t;
 #endif
 
 /* The possibilities for the third argument to `setvbuf'.  */
-#define _IOFBF 0 		/* Fully buffered.  */
+#define _IOFBF 0		/* Fully buffered.  */
 #define _IOLBF 1		/* Line buffered.  */
 #define _IONBF 2		/* No buffering.  */
 
@@ -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
@@ -152,7 +156,7 @@ typedef _G_fpos64_t fpos64_t;
 /* Get the values:
    L_tmpnam	How long an array of chars must be to be passed to `tmpnam'.
    TMP_MAX	The minimum number of unique filenames generated by tmpnam
-   		(and tempnam when it uses tmpnam's name space),
+		(and tempnam when it uses tmpnam's name space),
 		or tempnam (the two are separate).
    L_ctermid	How long an array to pass to `ctermid'.
    L_cuserid	How long an array to pass to `cuserid'.
diff --git a/posix/unistd.h b/posix/unistd.h
index 08a3d47..9b41697 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -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

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    3 +++
 libio/stdio.h  |    8 ++++++--
 posix/unistd.h |    4 ++++
 3 files changed, 13 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]