]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* bits/types.h: Don't include stddef.h, don't define __need_size_t.
authorUlrich Drepper <drepper@redhat.com>
Thu, 19 Jul 2007 17:21:02 +0000 (17:21 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 19 Jul 2007 17:21:02 +0000 (17:21 +0000)
* signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
__need_size_t and include stddef.h.
* sysvipc/sys/msg.h: Likewise.
* posix/sched.h: Likewise.
* hurd/hurd/signal.h (__need_size_t): Define.

* CONFORMANCE: ctype.h and wctype.h no longer define size_t,
neither does signal.h in pedantic ISO C namespaces.  stdio.h
no longer defines wint_t or wchar_t.

CONFORMANCE
ChangeLog
bits/types.h
hurd/hurd/signal.h
posix/sched.h
signal/signal.h
sysvipc/sys/msg.h

index 012a487a954b97b9a1f6d34534cb1d0e1a7282a4..92ab7b7f52103661b52d5cbd99cf9e9b5170ef0e 100644 (file)
@@ -184,15 +184,7 @@ Also, the Single Unix Specification generally requires more types to
 be included in headers (if _XOPEN_SOURCE is defined appropriately)
 than ISO C permits.
 
-<ctype.h> should not declare size_t.
-
-<signal.h> should not declare size_t.
-
-<stdio.h> should not declare or use wchar_t or wint_t.
-
 <wchar.h> does not support AMD1; to support it, the functions
 fwprintf, fwscanf, wprintf, wscanf, swprintf, swscanf, vfwprintf,
 vwprintf, vswprintf and fwide would need to be declared when
 __STDC_VERSION__ >= 199409L and not just for C99.
-
-<wctype.h> should not declare size_t.
index 208ca7e0687fc8bdbd68a7fd7741c36f667a4fc0..acf2c4fea87d08d028745483547f24e7e9740858 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
 
+       * bits/types.h: Don't include stddef.h, don't define __need_size_t.
+       * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
+       __need_size_t and include stddef.h.
+       * sysvipc/sys/msg.h: Likewise.
+       * posix/sched.h: Likewise.
+       * hurd/hurd/signal.h (__need_size_t): Define.
+
+       * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
+       neither does signal.h in pedantic ISO C namespaces.  stdio.h
+       no longer defines wint_t or wchar_t.
+
        * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
        * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
        _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
index 65c8a9fe902bcd88f027d226db36e0b4d9aa4f48..3ebe82f0583edbd602efa522c8e3eb58a04c0800 100644 (file)
@@ -1,5 +1,5 @@
 /* bits/types.h -- definitions of __*_t types underlying *_t types.
-   Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2004, 2005, 2007 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
@@ -27,9 +27,6 @@
 #include <features.h>
 #include <bits/wordsize.h>
 
-#define __need_size_t
-#include <stddef.h>
-
 /* Convenience types.  */
 typedef unsigned char __u_char;
 typedef unsigned short int __u_short;
index c5b04f434c3031a3595346654deca5082121a90f..39fa0f857caea3ff67ce498c3e06cd05f978cb5c 100644 (file)
@@ -26,6 +26,7 @@
 #error "Must have `_GNU_SOURCE' feature test macro to use this file"
 #endif
 
+#define __need_size_t
 #define __need_NULL
 #include <stddef.h>
 
index becad0f36552798f8d57c9b778c1317d718a0978..62cca85b2e4e1d4ff4f1b99c766918a93d3cf93b 100644 (file)
@@ -25,6 +25,9 @@
 /* Get type definitions.  */
 #include <bits/types.h>
 
+#define __need_size_t
+#include <stddef.h>
+
 #define __need_timespec
 #include <time.h>
 
index ed39328efb827c7a695e81ae7951199faf7f6c9f..aa210374dbc3549d0d0126abdba2ebb2884abd7d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2003, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2003, 2004, 2007 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
@@ -339,6 +339,8 @@ extern int sigreturn (struct sigcontext *__scp) __THROW;
 
 
 #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
+# define __need_size_t
+# include <stddef.h>
 
 /* If INTERRUPT is nonzero, make signal SIG interrupt system calls
    (causing them to fail with EINTR); if INTERRUPT is zero, make system
index b22c07678a3d9b30f6c797fa80b5a04fbfb7b2a8..cdc96be9b77581ce683ad59eaa5def0402c48a26 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995-1997,1999,2000,2003,2006 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1997,1999,2000,2003,2006,2007
+   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
@@ -21,6 +22,9 @@
 
 #include <features.h>
 
+#define __need_size_t
+#include <stddef.h>
+
 /* Get common definition of System V style IPC.  */
 #include <sys/ipc.h>