summaryrefslogtreecommitdiff
path: root/include/stddef.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC: add sys/_null.h and change the definition of NULL to a long on ia64Peter Wemm2003-12-181-4/+1
| | | | | | | | | | | and amd64. Ensure that this is not accidently activated on any platforms other than these two since its quite late in the release cycle and it is not worth the risk of disturbing to the established platforms. Approved by: re (scottl, jhb) Notes: svn path=/releng/5.2/; revision=123618
* Be more explicit about a namespace by using the relatively newMike Barcroft2002-09-011-1/+1
| | | | | | | visibility primitives. Notes: svn path=/head/; revision=102777
* o Merge <machine/ansi.h> and <machine/types.h> into a new headerMike Barcroft2002-08-211-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien Notes: svn path=/head/; revision=102227
* Don't define wchar_t if we are a C++ compiler.David E. O'Brien2002-07-091-0/+2
| | | | | | | PR: 31864, 40084 Notes: svn path=/head/; revision=99640
* Move __offsetof() macro from <machine/ansi.h> to <sys/cdefs.h>. It'sMike Barcroft2002-07-081-0/+1
| | | | | | | | | hardly MD, since all our platforms share the same macro. It's not really compiler dependent either, but this helps in reducing <machine/ansi.h> to only type definitions. Notes: svn path=/head/; revision=99594
* Back out rev 1.4 (wint_t and mbstate_t) as I am tired of the complaints.David E. O'Brien2001-05-241-10/+0
| | | | | | | | | | | | | | | The STLport will probably become broken again, but I'll work on fixing it later. I wish someone would explain why the NetBSD Cirtus branch has the types in their stddef.h... Requested by: bde, ru PR: 27606 Submitted by: Naohiko Tsuji <yakisoba@f2.dion.ne.jp> Notes: svn path=/head/; revision=77144
* Add mbstate_t and wint_t.David E. O'Brien2001-05-181-0/+10
| | | | Notes: svn path=/head/; revision=76793
* Convert all users of fldoff() to offsetof(). fldoff() is badPoul-Henning Kamp2000-10-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | because it only takes a struct tag which makes it impossible to use unions, typedefs etc. Define __offsetof() in <machine/ansi.h> Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h> Remove myriad of local offsetof() definitions. Remove includes of <stddef.h> in kernel code. NB: Kernelcode should *never* include from /usr/include ! Make <sys/queue.h> include <machine/ansi.h> to avoid polluting the API. Deprecate <struct.h> with a warning. The warning turns into an error on 01-12-2000 and the file gets removed entirely on 01-01-2001. Paritials reviews by: various. Significant brucifications by: bde Notes: svn path=/head/; revision=67708
* Fixed longstanding namespace convolution involving rune_t vs wchar_t.Bruce Evans1996-05-011-3/+7
| | | | | | | | | | | | | | If _ANSI_SOURCE or _POSIX_SOURCE is defined, then <ctype.h> had to be included before <stddef.h> or <stdlib.h> to get rune_t declared. Now rune_t is declared perfectly bogusly in all cases when <ctype.h> is included. This change breaks similar (but more convoluted) convolutions in the stddef.h in gcc distributions. Ports of gcc should avoid using the gcc headers. Notes: svn path=/head/; revision=15483
* BSD 4.4 Lite Include SourcesRodney W. Grimes1994-05-241-0/+62
Notes: svn path=/head/; revision=1539