Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Include <sys/_null.h> for the definition of NULL.

  • Loading branch information...
commit e4dcda4d5339d582978674ce6a4dd36b00ea6f50 1 parent 5b5dbf0
Sascha Wildner authored
6 include/dirent.h
@@ -32,7 +32,7 @@
32 32 *
33 33 * @(#)dirent.h 8.2 (Berkeley) 7/28/94
34 34 * $FreeBSD: src/include/dirent.h,v 1.7 1999/12/29 05:01:20 peter Exp $
35   - * $DragonFly: src/include/dirent.h,v 1.9 2008/05/03 22:07:36 dillon Exp $
  35 + * $DragonFly: src/include/dirent.h,v 1.10 2008/06/05 17:53:10 swildner Exp $
36 36 */
37 37
38 38 #ifndef _DIRENT_H_
@@ -74,9 +74,7 @@ typedef struct _dirdesc {
74 74 #define __DTF_READALL 0x0008 /* everything has been read */
75 75 #define __DTF_SKIPME 0x0010 /* next entry to read not current entry */
76 76
77   -#ifndef NULL
78   -#define NULL 0
79   -#endif
  77 +#include <sys/_null.h>
80 78
81 79 #endif /* _POSIX_SOURCE */
82 80
6 include/locale.h
... ... @@ -1,5 +1,5 @@
1 1 /* $NetBSD: src/include/locale.h,v 1.13 2003/08/07 09:44:10 agc Exp $ */
2   -/* $DragonFly: src/include/locale.h,v 1.4 2007/09/20 07:40:51 hasso Exp $ */
  2 +/* $DragonFly: src/include/locale.h,v 1.5 2008/06/05 17:53:10 swildner Exp $ */
3 3
4 4 /*
5 5 * Copyright (c) 1991, 1993
@@ -62,9 +62,7 @@ struct lconv {
62 62 char int_n_sign_posn;
63 63 };
64 64
65   -#ifndef NULL
66   -#define NULL 0
67   -#endif
  65 +#include <sys/_null.h>
68 66
69 67 #define LC_ALL 0
70 68 #define LC_COLLATE 1
6 include/stddef.h
@@ -33,7 +33,7 @@
33 33 * @(#)stddef.h 8.1 (Berkeley) 6/2/93
34 34 *
35 35 * $FreeBSD: src/include/stddef.h,v 1.2.8.4 2002/08/07 15:49:32 imp Exp $
36   - * $DragonFly: src/include/stddef.h,v 1.4 2003/11/15 19:28:42 asmodai Exp $
  36 + * $DragonFly: src/include/stddef.h,v 1.5 2008/06/05 17:53:10 swildner Exp $
37 37 */
38 38
39 39 #ifndef _STDDEF_H_
@@ -67,9 +67,7 @@ typedef __wchar_t wchar_t; /* open group */
67 67 #endif
68 68 #endif
69 69
70   -#ifndef NULL
71   -#define NULL 0
72   -#endif
  70 +#include <sys/_null.h>
73 71
74 72 #define offsetof(type, member) __offsetof(type, member)
75 73
6 include/stdio.h
@@ -35,7 +35,7 @@
35 35 *
36 36 * @(#)stdio.h 8.5 (Berkeley) 4/29/95
37 37 * $FreeBSD: src/include/stdio.h,v 1.24.2.5 2002/11/09 08:07:20 imp Exp $
38   - * $DragonFly: src/include/stdio.h,v 1.13 2008/04/15 01:16:12 dillon Exp $
  38 + * $DragonFly: src/include/stdio.h,v 1.14 2008/06/05 17:53:10 swildner Exp $
39 39 */
40 40
41 41 #ifndef _STDIO_H_
@@ -54,9 +54,7 @@
54 54 typedef __size_t size_t;
55 55 #endif
56 56
57   -#ifndef NULL
58   -#define NULL 0
59   -#endif
  57 +#include <sys/_null.h>
60 58
61 59 typedef __off_t fpos_t;
62 60
6 include/stdlib.h
@@ -32,7 +32,7 @@
32 32 *
33 33 * @(#)stdlib.h 8.5 (Berkeley) 5/19/95
34 34 * $FreeBSD: src/include/stdlib.h,v 1.16.2.5 2002/12/13 01:34:00 tjr Exp $
35   - * $DragonFly: src/include/stdlib.h,v 1.21 2008/01/25 23:32:41 swildner Exp $
  35 + * $DragonFly: src/include/stdlib.h,v 1.22 2008/06/05 17:53:10 swildner Exp $
36 36 */
37 37
38 38 #ifndef _STDLIB_H_
@@ -74,9 +74,7 @@ typedef struct {
74 74 } lldiv_t;
75 75 #endif
76 76
77   -#ifndef NULL
78   -#define NULL 0
79   -#endif
  77 +#include <sys/_null.h>
80 78
81 79 #define EXIT_FAILURE 1
82 80 #define EXIT_SUCCESS 0
7 include/string.h
@@ -32,7 +32,7 @@
32 32 *
33 33 * @(#)string.h 8.1 (Berkeley) 6/2/93
34 34 * $FreeBSD: src/include/string.h,v 1.6.2.3 2001/12/25 00:36:57 ache Exp $
35   - * $DragonFly: src/include/string.h,v 1.8 2006/12/05 23:14:51 dillon Exp $
  35 + * $DragonFly: src/include/string.h,v 1.9 2008/06/05 17:53:10 swildner Exp $
36 36 */
37 37
38 38 #ifndef _STRING_H_
@@ -51,10 +51,7 @@
51 51 typedef __size_t size_t; /* open group */
52 52 #endif
53 53
54   -#ifndef NULL
55   -#define NULL 0
56   -#endif
57   -
  54 +#include <sys/_null.h>
58 55 #include <sys/cdefs.h>
59 56
60 57 __BEGIN_DECLS
6 include/time.h
@@ -36,7 +36,7 @@
36 36 * SUCH DAMAGE.
37 37 *
38 38 * @(#)time.h 8.3 (Berkeley) 1/21/94
39   - * $DragonFly: src/include/time.h,v 1.6 2008/04/09 07:05:54 hasso Exp $
  39 + * $DragonFly: src/include/time.h,v 1.7 2008/06/05 17:53:10 swildner Exp $
40 40 */
41 41
42 42 #ifndef _TIME_H_
@@ -61,9 +61,7 @@
61 61 /* Frequency of the clock ticks reported by clock(). */
62 62 #define CLOCKS_PER_SEC _BSD_CLOCKS_PER_SEC_
63 63
64   -#ifndef NULL
65   -#define NULL 0
66   -#endif
  64 +#include <sys/_null.h>
67 65
68 66 #ifndef _CLOCK_T_DECLARED
69 67 #define _CLOCK_T_DECLARED
7 include/unistd.h
@@ -32,7 +32,7 @@
32 32 *
33 33 * @(#)unistd.h 8.12 (Berkeley) 4/27/95
34 34 * $FreeBSD: src/include/unistd.h,v 1.35.2.10 2002/04/15 12:52:28 nectar Exp $
35   - * $DragonFly: src/include/unistd.h,v 1.23 2008/05/19 10:21:31 corecode Exp $
  35 + * $DragonFly: src/include/unistd.h,v 1.24 2008/06/05 17:53:10 swildner Exp $
36 36 */
37 37
38 38 #ifndef _UNISTD_H_
@@ -41,15 +41,12 @@
41 41 #include <sys/cdefs.h>
42 42 #include <sys/types.h>
43 43 #include <sys/unistd.h>
  44 +#include <sys/_null.h>
44 45
45 46 #define STDIN_FILENO 0 /* standard input file descriptor */
46 47 #define STDOUT_FILENO 1 /* standard output file descriptor */
47 48 #define STDERR_FILENO 2 /* standard error file descriptor */
48 49
49   -#ifndef NULL
50   -#define NULL 0 /* null pointer constant */
51   -#endif
52   -
53 50 #ifndef _POSIX_SOURCE
54 51 #define F_ULOCK 0 /* unlock locked section */
55 52 #define F_LOCK 1 /* lock a section for exclusive use */
7 include/wchar.h
... ... @@ -1,5 +1,5 @@
1 1 /* $NetBSD: src/include/wchar.h,v 1.20 2004/05/08 21:57:05 kleink Exp $ */
2   -/* $DragonFly: src/include/wchar.h,v 1.11 2008/03/10 12:01:50 hasso Exp $ */
  2 +/* $DragonFly: src/include/wchar.h,v 1.12 2008/06/05 17:53:10 swildner Exp $ */
3 3
4 4 /*-
5 5 * Copyright (c)1999 Citrus Project,
@@ -71,10 +71,7 @@
71 71 #include <machine/limits.h>
72 72
73 73 #include <stdio.h> /* for FILE* */
74   -
75   -#ifndef NULL
76   -#define NULL 0
77   -#endif
  74 +#include <sys/_null.h>
78 75
79 76 #ifndef _WCHAR_T_DECLARED
80 77 #define _WCHAR_T_DECLARED
6 sys/sys/param.h
@@ -37,7 +37,7 @@
37 37 *
38 38 * @(#)param.h 8.3 (Berkeley) 4/4/95
39 39 * $FreeBSD: src/sys/sys/param.h,v 1.61.2.38 2003/05/22 17:12:01 fjoe Exp $
40   - * $DragonFly: src/sys/sys/param.h,v 1.48 2008/05/19 10:19:49 corecode Exp $
  40 + * $DragonFly: src/sys/sys/param.h,v 1.49 2008/06/05 17:53:10 swildner Exp $
41 41 */
42 42
43 43 #ifndef _SYS_PARAM_H_
@@ -72,9 +72,7 @@
72 72 #define __FreeBSD_version 480101
73 73 #endif
74 74
75   -#ifndef NULL
76   -#define NULL 0
77   -#endif
  75 +#include <sys/_null.h>
78 76
79 77 #ifndef LOCORE
80 78 #include <sys/types.h>

0 comments on commit e4dcda4

Please sign in to comment.
Something went wrong with that request. Please try again.