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.11-98-gf9cfa29


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  f9cfa295ae3f2556bd8808f0ff693cfe44f4ac25 (commit)
      from  df06f4855e94542fd69d920f2ddfb39275993f94 (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=f9cfa295ae3f2556bd8808f0ff693cfe44f4ac25

commit f9cfa295ae3f2556bd8808f0ff693cfe44f4ac25
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Sun Jan 10 07:16:54 2010 -0800

    Fix up sys/types.h for XPG7.
    
    Also fix a test.

diff --git a/ChangeLog b/ChangeLog
index 1d91788..1410b79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
 
+	* posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
+
 	* string/strings.h: Don't declare obsolete functions for XPG7.
 	Declare ffs only for XSI.
 	* conform/data/strings.h-data: Update for XPG7.
diff --git a/conform/data/sys/types.h-data b/conform/data/sys/types.h-data
index be61d08..c0b4ab7 100644
--- a/conform/data/sys/types.h-data
+++ b/conform/data/sys/types.h-data
@@ -39,7 +39,6 @@ type suseconds_t
 type time_t
 type timer_t
 type uid_t
-type useconds_t
 
 allow *_t
 #endif
diff --git a/posix/sys/types.h b/posix/sys/types.h
index 04563a4..a7e9084 100644
--- a/posix/sys/types.h
+++ b/posix/sys/types.h
@@ -1,5 +1,4 @@
-/* Copyright (C) 1991,1992,1994,1995,1996,1997,1998,1999,2000,2001,2002,2006
-   	Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1994-2002,2006,2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -101,7 +100,8 @@ typedef __pid_t pid_t;
 # define __pid_t_defined
 #endif
 
-#if (defined __USE_SVID || defined __USE_XOPEN) && !defined __id_t_defined
+#if (defined __USE_SVID || defined __USE_XOPEN || defined __USE_XOPEN2K8) \
+    && !defined __id_t_defined
 typedef __id_t id_t;
 # define __id_t_defined
 #endif
@@ -124,7 +124,7 @@ typedef __key_t key_t;
 # define __key_t_defined
 #endif
 
-#ifdef __USE_XOPEN
+#if defined __USE_XOPEN || defined __USE_XOPEN2K8
 # define __need_clock_t
 #endif
 #define	__need_time_t
@@ -224,7 +224,8 @@ typedef int register_t __attribute__ ((__mode__ (__word__)));
 #endif /* Use BSD.  */
 
 
-#if defined __USE_UNIX98 && !defined __blksize_t_defined
+#if (defined __USE_UNIX98 || defined __USE_XOPEN2K8) \
+    && !defined __blksize_t_defined
 typedef __blksize_t blksize_t;
 # define __blksize_t_defined
 #endif

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

Summary of changes:
 ChangeLog                     |    2 ++
 conform/data/sys/types.h-data |    1 -
 posix/sys/types.h             |   11 ++++++-----
 3 files changed, 8 insertions(+), 6 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]