missing-func-news-960625.newsos421.diff
---------------------------------------

  missing-func-news-960625 ¤Ï NEWS-OS 4.2.1a+ ¤Ç³«È¯¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ç¡¢
  °ìÉô¤Ë ANSI C ·Á¼°¤Î°ú¿ôÀë¸À¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¡£¤³¤Î¤¿¤á¡¢¤½¤Î¤Þ¤Þ¤Ç¤Ï NEWS-OS
  4.2.1 ¤Ç¤Ï¥³¥ó¥Ñ¥¤¥ë¤Ç¤­¤Ê¤¤¡£

  ËÜ¥Ñ¥Ã¥Á¤Ï

* ¾åµ­ÌäÂêÅÀ¡¢¤ª¤è¤Ó
* Makefile ¤Î°ìÉôÉÔ¶ñ¹ç

  ¤ò½¤Àµ¤¹¤ë¡£NEWS-OS 4.2.1C ¤Ë¤Æ³ÎÇ§¤·¤¿¤¬¡¢NEWS-OS 4.x Á´ÈÌ¤Ç
  Í­¸ú¤À¤È»×¤¦¡£

- KOJIMA Hajime/¾®ÅçÈ¥ <kjm@rins.ryukoku.ac.jp>

diff -ur missing.dist/Makefile missing/Makefile
--- missing.dist/Makefile	Tue May  7 12:56:20 1996
+++ missing/Makefile	Thu Nov  6 17:22:23 1997
@@ -5,7 +5,7 @@
 # Which compiler to use
 CC = cc
 #CC = gcc -fpcc-struct-return
-CFLAGS = -O
+CFLAGS = "-O -DVOIDARG="
 
 # Where to install
 prefix = /usr/local
@@ -21,7 +21,8 @@
 
 # options to others
 MDEFS = LIBDIR=$(LIBDIR) INCDIR=$(INCDIR) MANDIR=$(MANDIR) \
-	INSTALL=$(INSTALL) RANLIB=$(RANLIB) RM=$(RM) RMFLAGS=$(RMFLAGS)
+	INSTALL=$(INSTALL) RANLIB=$(RANLIB) RM=$(RM) RMFLAGS=$(RMFLAGS) \
+	CFLAGS=$(CFLAGS)
 
 all:
 	@echo ""
diff -ur missing.dist/include/Makefile missing/include/Makefile
--- missing.dist/include/Makefile	Tue Jun 25 17:06:22 1996
+++ missing/include/Makefile	Thu Nov  6 18:40:02 1997
@@ -8,6 +8,6 @@
 
 install: missing.h sys/utsname.h
 	if [ ! -d $(INCDIR) ]; then mkdir $(INCDIR); fi
-	if [ ! -d $(INCDIR)/sys ]; then mkdir $(INCDIR); fi
+	if [ ! -d $(INCDIR)/sys ]; then mkdir $(INCDIR)/sys; fi
 	$(INSTALL) -c -m 444 missing.h $(INCDIR)
 	$(INSTALL) -c -m 444 sys/utsname.h $(INCDIR)/sys
diff -ur missing.dist/lib/_rand48.c missing/lib/_rand48.c
--- missing.dist/lib/_rand48.c	Fri Sep 23 02:37:44 1994
+++ missing/lib/_rand48.c	Thu Nov  6 17:15:31 1997
@@ -26,7 +26,8 @@
 unsigned short _rand48_add = RAND48_ADD;
 
 void
-_dorand48(unsigned short xseed[3])
+_dorand48(xseed)
+    unsigned short xseed[3];
 {
 	unsigned long accu;
 	unsigned short temp[2];
diff -ur missing.dist/lib/drand48.c missing/lib/drand48.c
--- missing.dist/lib/drand48.c	Fri Sep 23 02:37:45 1994
+++ missing/lib/drand48.c	Thu Nov  6 17:16:08 1997
@@ -16,7 +16,7 @@
 extern unsigned short _rand48_seed[3];
 
 double
-drand48(void)
+drand48(VOIDARG)
 {
 	return erand48(_rand48_seed);
 }
diff -ur missing.dist/lib/erand48.c missing/lib/erand48.c
--- missing.dist/lib/erand48.c	Fri Sep 23 02:37:46 1994
+++ missing/lib/erand48.c	Thu Nov  6 17:16:30 1997
@@ -14,7 +14,8 @@
 #include "rand48.h"
 
 double
-erand48(unsigned short xseed[3])
+erand48(xseed)
+    unsigned short xseed[3];
 {
 	_dorand48(xseed);
 	return ldexp((double) xseed[0], -48) +
diff -ur missing.dist/lib/jrand48.c missing/lib/jrand48.c
--- missing.dist/lib/jrand48.c	Fri Sep 23 02:37:47 1994
+++ missing/lib/jrand48.c	Thu Nov  6 17:16:52 1997
@@ -14,7 +14,8 @@
 #include "rand48.h"
 
 long
-jrand48(unsigned short xseed[3])
+jrand48(xseed)
+    unsigned short xseed[3];
 {
 	_dorand48(xseed);
 	return ((long) xseed[2] << 16) + (long) xseed[1];
diff -ur missing.dist/lib/lcong48.c missing/lib/lcong48.c
--- missing.dist/lib/lcong48.c	Fri Sep 23 02:37:48 1994
+++ missing/lib/lcong48.c	Thu Nov  6 17:17:11 1997
@@ -18,7 +18,8 @@
 extern unsigned short _rand48_add;
 
 void
-lcong48(unsigned short p[7])
+lcong48(p)
+    unsigned short p[7];
 {
 	_rand48_seed[0] = p[0];
 	_rand48_seed[1] = p[1];
diff -ur missing.dist/lib/lrand48.c missing/lib/lrand48.c
--- missing.dist/lib/lrand48.c	Fri Sep 23 02:37:49 1994
+++ missing/lib/lrand48.c	Thu Nov  6 17:17:29 1997
@@ -16,7 +16,7 @@
 extern unsigned short _rand48_seed[3];
 
 long
-lrand48(void)
+lrand48(VOIDARG)
 {
 	_dorand48(_rand48_seed);
 	return ((long) _rand48_seed[2] << 15) + ((long) _rand48_seed[1] >> 1);
diff -ur missing.dist/lib/mkfifo.c missing/lib/mkfifo.c
--- missing.dist/lib/mkfifo.c	Mon May  6 23:22:41 1996
+++ missing/lib/mkfifo.c	Thu Nov  6 17:17:58 1997
@@ -11,7 +11,9 @@
 
 typedef     unsigned short  mode_t;         /* file mode bits */
 
-int mkfifo(const char *path, mode_t mode)
+int mkfifo(path, mode)
+    const char *path;
+    mode_t mode;
 {
   return mknod(path, mode | S_IFIFO, 0);
 }
diff -ur missing.dist/lib/mrand48.c missing/lib/mrand48.c
--- missing.dist/lib/mrand48.c	Fri Sep 23 02:37:50 1994
+++ missing/lib/mrand48.c	Thu Nov  6 17:18:13 1997
@@ -16,7 +16,7 @@
 extern unsigned short _rand48_seed[3];
 
 long
-mrand48(void)
+mrand48(VOIDARG)
 {
 	_dorand48(_rand48_seed);
 	return ((long) _rand48_seed[2] << 16) + (long) _rand48_seed[1];
diff -ur missing.dist/lib/nrand48.c missing/lib/nrand48.c
--- missing.dist/lib/nrand48.c	Fri Sep 23 02:37:51 1994
+++ missing/lib/nrand48.c	Thu Nov  6 17:18:41 1997
@@ -14,7 +14,8 @@
 #include "rand48.h"
 
 long
-nrand48(unsigned short xseed[3])
+nrand48(xseed)
+    unsigned short xseed[3];
 {
 	_dorand48(xseed);
 	return ((long) xseed[2] << 15) + ((long) xseed[1] >> 1);
diff -ur missing.dist/lib/seed48.c missing/lib/seed48.c
--- missing.dist/lib/seed48.c	Fri Sep 23 02:37:54 1994
+++ missing/lib/seed48.c	Thu Nov  6 17:19:38 1997
@@ -18,7 +18,8 @@
 extern unsigned short _rand48_add;
 
 unsigned short *
-seed48(unsigned short xseed[3])
+seed48(xseed)
+    unsigned short xseed[3];
 {
 	static unsigned short sseed[3];
 
diff -ur missing.dist/lib/sigprocmask.c missing/lib/sigprocmask.c
--- missing.dist/lib/sigprocmask.c	Mon May  6 13:17:55 1996
+++ missing/lib/sigprocmask.c	Thu Nov  6 17:20:08 1997
@@ -12,7 +12,10 @@
 #include "missing.h"
 
 int
-sigprocmask(int how, const sigset_t *set, sigset_t *oset)
+sigprocmask(how, set, oset)
+    int how;
+    const sigset_t *set;
+    sigset_t *oset;
 {
 	int mask;
 
diff -ur missing.dist/lib/srand48.c missing/lib/srand48.c
--- missing.dist/lib/srand48.c	Fri Sep 23 02:37:55 1994
+++ missing/lib/srand48.c	Thu Nov  6 17:20:20 1997
@@ -18,7 +18,8 @@
 extern unsigned short _rand48_add;
 
 void
-srand48(long seed)
+srand48(seed)
+    long seed;
 {
 	_rand48_seed[0] = RAND48_SEED_0;
 	_rand48_seed[1] = (unsigned short) seed;
