Skip to content

Commit

Permalink
Fix up sys/types.h for XPG7.
Browse files Browse the repository at this point in the history
Also fix a test.
  • Loading branch information
Ulrich Drepper committed Jan 10, 2010
1 parent df06f48 commit f9cfa29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion conform/data/sys/types.h-data
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ type suseconds_t
type time_t
type timer_t
type uid_t
type useconds_t

allow *_t
#endif
11 changes: 6 additions & 5 deletions posix/sys/types.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f9cfa29

Please sign in to comment.