You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

199 lines
3.8 KiB

  1. --- a/disklib/dump.h
  2. +++ b/disklib/dump.h
  3. @@ -110,9 +110,7 @@ extern long dev_bsize; /* block size of
  4. extern int dev_bshift; /* log2(dev_bsize) */
  5. extern int tp_bshift; /* log2(TP_BSIZE) */
  6. -#ifndef __P
  7. -#include <sys/cdefs.h>
  8. -#endif
  9. +#define __P(x) x
  10. /* operator interface functions */
  11. void broadcast __P((char *message));
  12. --- a/dump.tproj/unctime.c
  13. +++ b/dump.tproj/unctime.c
  14. @@ -64,9 +64,7 @@
  15. #include <string.h>
  16. #endif
  17. -#ifndef __P
  18. -#include <sys/cdefs.h>
  19. -#endif
  20. +#define __P(x) x
  21. /*
  22. * Convert a ctime(3) format string into a system format date.
  23. --- a/fdisk.tproj/getrawpartition.c
  24. +++ b/fdisk.tproj/getrawpartition.c
  25. @@ -59,7 +59,6 @@
  26. * POSSIBILITY OF SUCH DAMAGE.
  27. */
  28. -#include <sys/cdefs.h>
  29. #if defined(LIBC_SCCS) && !defined(lint)
  30. __RCSID("$NetBSD: getrawpartition.c,v 1.4 1999/07/02 15:49:12 simonb Exp $");
  31. #endif
  32. --- a/fdisk.tproj/util.h
  33. +++ b/fdisk.tproj/util.h
  34. @@ -59,9 +59,10 @@
  35. #ifndef _UTIL_H_
  36. #define _UTIL_H_
  37. -#include <sys/cdefs.h>
  38. #include <sys/types.h>
  39. +#define __P(x) x
  40. +
  41. /*
  42. * fparseln() specific operation flags.
  43. */
  44. --- a/fsck_hfs.tproj/fsck_hfs.h
  45. +++ b/fsck_hfs.tproj/fsck_hfs.h
  46. @@ -24,7 +24,7 @@
  47. #include "cache.h"
  48. -#include <sys/cdefs.h>
  49. +#define __P(x) x
  50. const extern char *cdevname; /* name of device being checked */
  51. extern char *progname;
  52. --- a/fsck_msdos.tproj/boot.c
  53. +++ b/fsck_msdos.tproj/boot.c
  54. @@ -54,8 +54,6 @@
  55. */
  56. -#include <sys/cdefs.h>
  57. -
  58. #include <stdlib.h>
  59. #include <string.h>
  60. #include <ctype.h>
  61. --- a/fsck_msdos.tproj/check.c
  62. +++ b/fsck_msdos.tproj/check.c
  63. @@ -54,8 +54,6 @@
  64. */
  65. -#include <sys/cdefs.h>
  66. -
  67. #include <stdlib.h>
  68. #include <string.h>
  69. #include <ctype.h>
  70. --- a/fsck_msdos.tproj/dir.c
  71. +++ b/fsck_msdos.tproj/dir.c
  72. @@ -56,8 +56,6 @@
  73. */
  74. -#include <sys/cdefs.h>
  75. -
  76. #include <stdio.h>
  77. #include <stdlib.h>
  78. #include <string.h>
  79. @@ -109,6 +107,7 @@
  80. #define DD_YEAR_MASK 0xFE00 /* year - 1980 */
  81. #define DD_YEAR_SHIFT 9
  82. +#define __P(x) x
  83. /* dir.c */
  84. static struct dosDirEntry *newDosDirEntry __P((void));
  85. --- a/fsck_msdos.tproj/fat.c
  86. +++ b/fsck_msdos.tproj/fat.c
  87. @@ -54,8 +54,6 @@
  88. */
  89. -#include <sys/cdefs.h>
  90. -
  91. #include <stdlib.h>
  92. #include <string.h>
  93. #include <ctype.h>
  94. @@ -67,6 +65,8 @@
  95. #include "ext.h"
  96. #include "fsutil.h"
  97. +#define __P(x) x
  98. +
  99. /*
  100. * The following value should be a multiple of the sector size in bytes. The
  101. * Microsoft supported sector sizes are 512, 1024, 2048, and 4096, which means
  102. --- a/fsck_msdos.tproj/fsutil.c
  103. +++ b/fsck_msdos.tproj/fsutil.c
  104. @@ -54,8 +54,6 @@
  105. * SUCH DAMAGE.
  106. */
  107. -#include <sys/cdefs.h>
  108. -
  109. #include <stdio.h>
  110. #include <string.h>
  111. #include <stdlib.h>
  112. @@ -74,6 +72,8 @@
  113. #include "ext.h"
  114. #include "fsutil.h"
  115. +#define __P(x) x
  116. +
  117. static const char *dev = NULL;
  118. static int hot = 0;
  119. /*static int preen = 0;*/
  120. --- a/fsck_msdos.tproj/main.c
  121. +++ b/fsck_msdos.tproj/main.c
  122. @@ -54,8 +54,6 @@
  123. */
  124. -#include <sys/cdefs.h>
  125. -
  126. #include <stdlib.h>
  127. #include <string.h>
  128. #include <ctype.h>
  129. @@ -68,6 +66,8 @@
  130. #include <varargs.h>
  131. #endif
  132. +#define __P(x) x
  133. +
  134. #include "fsutil.h"
  135. #include "ext.h"
  136. --- a/newfs_hfs.tproj/makehfs.c
  137. +++ b/newfs_hfs.tproj/makehfs.c
  138. @@ -28,7 +28,6 @@
  139. */
  140. -#include <sys/cdefs.h>
  141. #include <sys/param.h>
  142. #include <sys/types.h>
  143. #include <sys/time.h>
  144. @@ -80,6 +79,7 @@ extern Boolean _CFStringGetFileSystemRep
  145. #define kJournalFileType 0x6a726e6c /* 'jrnl' */
  146. +#define __P(x) x
  147. typedef HFSMasterDirectoryBlock HFS_MDB;
  148. --- a/newfs_hfs.tproj/newfs_hfs.c
  149. +++ b/newfs_hfs.tproj/newfs_hfs.c
  150. @@ -34,7 +34,6 @@
  151. #include <syslog.h>
  152. #include <unistd.h>
  153. -#include <sys/cdefs.h>
  154. #include <sys/ioctl.h>
  155. #include <sys/mount.h>
  156. #include <sys/param.h>
  157. @@ -62,6 +61,8 @@
  158. #define ROUNDUP(x,y) (((x)+(y)-1)/(y)*(y))
  159. +#define __P(x) x
  160. +
  161. static void getnodeopts __P((char* optlist));
  162. static void getclumpopts __P((char* optlist));
  163. static gid_t a_gid __P((char *));