Permalink
Browse files

#include "namespace.h"

  • Loading branch information...
1 parent a3c0130 commit 5bdf7931897cfc801cb95bce10a3888b2773f49c jtc committed May 2, 1995
Showing with 203 additions and 150 deletions.
  1. +4 −1 lib/libc/Makefile
  2. +2 −1 lib/libc/compat-43/creat.c
  3. +2 −1 lib/libc/compat-43/killpg.c
  4. +2 −1 lib/libc/compat-43/setpgrp.c
  5. +2 −1 lib/libc/compat-43/sigcompat.c
  6. +1 −0 lib/libc/db/btree/bt_close.c
  7. +1 −0 lib/libc/db/btree/bt_open.c
  8. +1 −0 lib/libc/db/hash/hash.c
  9. +1 −0 lib/libc/db/hash/hash_page.c
  10. +1 −0 lib/libc/db/mpool/mpool.c
  11. +1 −0 lib/libc/db/recno/rec_close.c
  12. +1 −0 lib/libc/db/recno/rec_open.c
  13. +4 −6 lib/libc/gen/Makefile.inc
  14. +2 −2 lib/libc/gen/closedir.c
  15. +2 −2 lib/libc/gen/ctermid.c
  16. +2 −1 lib/libc/gen/disklabel.c
  17. +9 −9 lib/libc/gen/err.c
  18. +3 −3 lib/libc/gen/errlist.c
  19. +6 −6 lib/libc/gen/exec.c
  20. +2 −1 lib/libc/gen/fstab.c
  21. +2 −1 lib/libc/gen/ftok.c
  22. +2 −1 lib/libc/gen/fts.c
  23. +2 −1 lib/libc/gen/getcwd.c
  24. +3 −2 lib/libc/gen/getpass.c
  25. +2 −1 lib/libc/gen/getpwent.c
  26. +2 −1 lib/libc/gen/getusershell.c
  27. +2 −1 lib/libc/gen/glob.c
  28. +2 −1 lib/libc/gen/nice.c
  29. +2 −2 lib/libc/gen/opendir.c
  30. +2 −1 lib/libc/gen/popen.c
  31. +2 −1 lib/libc/gen/psignal.c
  32. +2 −1 lib/libc/gen/pwcache.c
  33. +2 −1 lib/libc/gen/raise.c
  34. +2 −2 lib/libc/gen/readdir.c
  35. +2 −2 lib/libc/gen/rewinddir.c
  36. +2 −2 lib/libc/gen/seekdir.c
  37. +2 −1 lib/libc/gen/setmode.c
  38. +2 −1 lib/libc/gen/siginterrupt.c
  39. +2 −2 lib/libc/gen/siglist.c
  40. +2 −1 lib/libc/gen/signal.c
  41. +6 −6 lib/libc/gen/sigsetops.c
  42. +2 −1 lib/libc/gen/sleep.c
  43. +1 −0 lib/libc/gen/sysconf.c
  44. +2 −1 lib/libc/gen/syslog.c
  45. +2 −2 lib/libc/gen/telldir.c
  46. +2 −1 lib/libc/gen/termios.c
  47. +2 −1 lib/libc/gen/times.c
  48. +2 −1 lib/libc/gen/ttyname.c
  49. +2 −1 lib/libc/gen/ualarm.c
  50. +2 −1 lib/libc/gen/utime.c
  51. +2 −1 lib/libc/gen/wait.c
  52. +2 −1 lib/libc/gen/wait3.c
  53. +2 −1 lib/libc/gen/waitpid.c
  54. +2 −1 lib/libc/gmon/gmon.c
  55. +8 −0 lib/libc/include/namespace.h
  56. +2 −1 lib/libc/net/rcmd.c
  57. +2 −1 lib/libc/net/recv.c
  58. +2 −1 lib/libc/net/send.c
  59. +0 −7 lib/libc/nls/catclose.c
  60. +0 −7 lib/libc/nls/catgets.c
  61. +0 −7 lib/libc/nls/catopen.c
  62. +4 −4 lib/libc/nls/msgcat.c
  63. +2 −1 lib/libc/rpc/auth_unix.c
  64. +2 −1 lib/libc/rpc/bindresvport.c
  65. +2 −1 lib/libc/rpc/clnt_simple.c
  66. +2 −1 lib/libc/rpc/clnt_tcp.c
  67. +2 −1 lib/libc/rpc/clnt_udp.c
  68. +2 −1 lib/libc/rpc/get_myaddress.c
  69. +2 −1 lib/libc/rpc/pmap_clnt.c
  70. +2 −1 lib/libc/rpc/pmap_getmaps.c
  71. +2 −1 lib/libc/rpc/pmap_getport.c
  72. +2 −1 lib/libc/rpc/pmap_rmt.c
  73. +2 −1 lib/libc/rpc/svc_run.c
  74. +2 −1 lib/libc/rpc/svc_tcp.c
  75. +2 −1 lib/libc/rpc/svc_udp.c
  76. +2 −2 lib/libc/rpc/xdr_rec.c
  77. +4 −4 lib/libc/stdio/fgets.c
  78. +4 −2 lib/libc/stdlib/abort.c
  79. +2 −1 lib/libc/stdlib/getenv.c
  80. +2 −1 lib/libc/stdlib/malloc.c
  81. +2 −1 lib/libc/stdlib/realpath.c
  82. +2 −1 lib/libc/stdlib/setenv.c
  83. +1 −1 lib/libc/stdlib/strtoq.c
  84. +1 −1 lib/libc/stdlib/strtouq.c
  85. +3 −2 lib/libc/stdlib/system.c
  86. +13 −12 lib/libc/time/localtime.c
  87. +2 −1 lib/libc/yp/yplib.c
View
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31.2.1 1995/03/13 20:49:46 jtc Exp $
+# $NetBSD: Makefile,v 1.31.2.2 1995/05/02 19:33:52 jtc Exp $
# @(#)Makefile 8.2 (Berkeley) 2/3/94
#
# All library objects contain sccsid strings by default; they may be
@@ -88,4 +88,7 @@ tags: ${SRCS}
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> tags; sort -o tags tags
+NOMAN=
+NOPROFILE=
+NOPIC=
.include <bsd.lib.mk>
@@ -33,9 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)creat.c 5.3 (Berkeley) 2/24/91";*/
-static char *rcsid = "$Id: creat.c,v 1.4 1993/11/11 19:04:04 jtc Exp $";
+static char *rcsid = "$Id: creat.c,v 1.4.4.1 1995/05/02 19:34:01 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <fcntl.h>
int
@@ -33,9 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)killpg.c 5.3 (Berkeley) 2/24/91";*/
-static char *rcsid = "$Id: killpg.c,v 1.4 1993/11/11 19:04:06 jtc Exp $";
+static char *rcsid = "$Id: killpg.c,v 1.4.4.1 1995/05/02 19:34:03 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <signal.h>
#include <errno.h>
@@ -33,9 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)setpgrp.c 5.2 (Berkeley) 2/24/91";*/
-static char *rcsid = "$Id: setpgrp.c,v 1.4 1993/11/11 19:04:07 jtc Exp $";
+static char *rcsid = "$Id: setpgrp.c,v 1.4.4.1 1995/05/02 19:34:04 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <unistd.h>
@@ -33,9 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)sigcompat.c 5.3 (Berkeley) 2/24/91";*/
-static char *rcsid = "$Id: sigcompat.c,v 1.6 1994/02/24 06:10:57 cgd Exp $";
+static char *rcsid = "$Id: sigcompat.c,v 1.6.4.1 1995/05/02 19:34:06 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/param.h>
#include <signal.h>
@@ -38,6 +38,7 @@
static char sccsid[] = "@(#)bt_close.c 8.3 (Berkeley) 2/21/94";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/param.h>
#include <errno.h>
@@ -46,6 +46,7 @@ static char sccsid[] = "@(#)bt_open.c 8.7 (Berkeley) 6/16/94";
* is wholly independent of the Postgres code.
*/
+#include "namespace.h"
#include <sys/param.h>
#include <sys/stat.h>
View
@@ -38,6 +38,7 @@
static char sccsid[] = "@(#)hash.c 8.9 (Berkeley) 6/16/94";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/param.h>
#include <sys/stat.h>
@@ -54,6 +54,7 @@ static char sccsid[] = "@(#)hash_page.c 8.6 (Berkeley) 6/16/94";
* open_temp
*/
+#include "namespace.h"
#include <sys/types.h>
#include <errno.h>
@@ -35,6 +35,7 @@
static char sccsid[] = "@(#)mpool.c 8.2 (Berkeley) 2/21/94";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/param.h>
#include <sys/stat.h>
@@ -35,6 +35,7 @@
static char sccsid[] = "@(#)rec_close.c 8.3 (Berkeley) 2/21/94";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/mman.h>
@@ -38,6 +38,7 @@
static char sccsid[] = "@(#)rec_open.c 8.6 (Berkeley) 2/22/94";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
View
@@ -1,11 +1,11 @@
# from: @(#)Makefile.inc 5.21 (Berkeley) 5/24/91
-# $Id: Makefile.inc,v 1.63.2.1 1995/02/17 10:48:27 jtc Exp $
+# $Id: Makefile.inc,v 1.63.2.2 1995/05/02 19:34:27 jtc Exp $
# gen sources
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/gen ${.CURDIR}/gen
-SRCS+= alarm.c assert.c clock.c closedir.c confstr.c ctermid.c ctime.c \
- ctype_.c daemon.c devname.c difftime.c \
+SRCS+= alarm.c assert.c clock.c closedir.c confstr.c ctermid.c \
+ ctype_.c daemon.c devname.c \
disklabel.c err.c errlist.c errno.c exec.c fnmatch.c \
fstab.c ftok.c fts.c \
getbsize.c getcap.c getcwd.c getdomainname.c getgrent.c getgrouplist.c \
@@ -56,7 +56,7 @@ SRCS+= _setjmp.S fabs.S frexp.c isinf.c ldexp.c modf.c setjmp.S
SRCS+= sigsetjmp.S
.endif
-MAN+= alarm.3 clock.3 confstr.3 ctermid.3 ctime.3 ctype.3 \
+MAN+= alarm.3 clock.3 confstr.3 ctermid.3 ctype.3 \
daemon.3 devname.3 directory.3 err.3 exec.3 fnmatch.3 frexp.3 \
ftok.3 fts.3 \
getbsize.3 getcap.3 getcwd.3 getdomainname.3 getdiskbyname.3 \
@@ -75,8 +75,6 @@ MAN+= alarm.3 clock.3 confstr.3 ctermid.3 ctime.3 ctype.3 \
tolower.3 toupper.3 ttyname.3 tzset.3 \
ualarm.3 uname.3 unvis.3 usleep.3 utime.3 valloc.3 vis.3
-MLINKS+=ctime.3 asctime.3 ctime.3 difftime.3 ctime.3 gmtime.3 \
- ctime.3 localtime.3 ctime.3 mktime.3
MLINKS+=directory.3 closedir.3 directory.3 dirfd.3 directory.3 opendir.3 \
directory.3 readdir.3 directory.3 rewinddir.3 directory.3 seekdir.3 \
directory.3 telldir.3
View
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char sccsid[] = "from: @(#)closedir.c 8.1 (Berkeley) 6/10/93";*/
-static char rcsid[] = "$Id: closedir.c,v 1.2.4.2 1995/04/26 01:01:08 jtc Exp $";
+static char rcsid[] = "$Id: closedir.c,v 1.2.4.3 1995/05/02 19:34:30 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -59,5 +59,5 @@ closedir(dirp)
(void)free((void *)dirp);
return(close(fd));
}
-__weak_reference(_closedir,closedir);
+#pragma weak closedir=_closedir
View
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)ctermid.c 5.2 (Berkeley) 2/20/91";*/
-static char *rcsid = "$Id: ctermid.c,v 1.3 1993/08/26 00:44:20 jtc Exp $";
+static char *rcsid = "$Id: ctermid.c,v 1.3.4.1 1995/05/02 19:34:31 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@@ -47,7 +47,7 @@ ctermid(s)
static char def[] = _PATH_TTY;
if (s) {
- bcopy(def, s, sizeof(_PATH_TTY));
+ memcpy(s, def, sizeof(_PATH_TTY));
return(s);
}
return(def);
View
@@ -33,9 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)disklabel.c 5.17 (Berkeley) 2/23/91";*/
-static char *rcsid = "$Id: disklabel.c,v 1.6 1994/10/19 03:13:09 cgd Exp $";
+static char *rcsid = "$Id: disklabel.c,v 1.6.2.1 1995/05/02 19:34:33 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/param.h>
#include <sys/errno.h>
#include <ufs/ffs/fs.h>
View
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/* from: static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 6/4/93"; */
-static char *rcsid = "$Id: err.c,v 1.10.2.1 1995/02/17 10:41:37 jtc Exp $";
+static char *rcsid = "$Id: err.c,v 1.10.2.2 1995/05/02 19:34:35 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -68,7 +68,7 @@ verr(eval, fmt, ap)
(void)fprintf(stderr, "%s\n", strerror(sverrno));
exit(eval);
}
-__weak_reference(_verr,verr);
+#pragma weak verr=_verr
__dead void
@@ -93,7 +93,7 @@ err(va_alist)
verr(eval, fmt, ap);
va_end(ap);
}
-__weak_reference(_err,err);
+#pragma weak err=_err
__dead void
@@ -108,7 +108,7 @@ verrx(eval, fmt, ap)
(void)fprintf(stderr, "\n");
exit(eval);
}
-__weak_reference(_verrx,verrx);
+#pragma weak verrx=_verrx
__dead void
@@ -133,7 +133,7 @@ errx(va_alist)
verrx(eval, fmt, ap);
va_end(ap);
}
-__weak_reference(_errx,errx);
+#pragma weak errx=_errx
void
@@ -151,7 +151,7 @@ vwarn(fmt, ap)
}
(void)fprintf(stderr, "%s\n", strerror(sverrno));
}
-__weak_reference(_vwarn,vwarn);
+#pragma weak vwarn=_vwarn
void
@@ -174,7 +174,7 @@ warn(va_alist)
vwarn(fmt, ap);
va_end(ap);
}
-__weak_reference(_warn,warn);
+#pragma weak warn=_warn
void
@@ -187,7 +187,7 @@ vwarnx(fmt, ap)
(void)vfprintf(stderr, fmt, ap);
(void)fprintf(stderr, "\n");
}
-__weak_reference(_vwarnx,vwarnx);
+#pragma weak vwarnx=_vwarnx
void
@@ -210,4 +210,4 @@ warnx(va_alist)
vwarnx(fmt, ap);
va_end(ap);
}
-__weak_reference(_warnx,warnx);
+#pragma weak warnx=_warnx
View
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)errlst.c 5.10 (Berkeley) 2/19/91";*/
-static char *rcsid = "$Id: errlist.c,v 1.3.2.1 1995/02/17 10:40:28 jtc Exp $";
+static char *rcsid = "$Id: errlist.c,v 1.3.2.2 1995/05/02 19:34:37 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -140,5 +140,5 @@ const char *const sys_errlist[] = {
};
int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };
-__weak_reference(_sys_errlist,sys_errlist);
-__weak_reference(_sys_nerr,sys_nerr);
+#pragma weak sys_errlist=_sys_errlist
+#pragma weak sys_nerr=_sys_nerr
View
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)exec.c 5.9 (Berkeley) 6/17/91";*/
-static char *rcsid = "$Id: exec.c,v 1.5.4.2 1995/04/26 00:59:40 jtc Exp $";
+static char *rcsid = "$Id: exec.c,v 1.5.4.3 1995/05/02 19:34:39 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -110,7 +110,7 @@ execl(name, arg, va_alist)
errno = sverrno;
return(-1);
}
-__weak_reference(_execl,execl);
+#pragma weak execl=_execl
int
#if __STDC__
@@ -139,7 +139,7 @@ execle(name, arg, va_alist)
errno = sverrno;
return(-1);
}
-__weak_reference(_execle,execle);
+#pragma weak execle=_execle
int
#if __STDC__
@@ -168,7 +168,7 @@ execlp(name, arg, va_alist)
errno = sverrno;
return(-1);
}
-__weak_reference(_execlp,execlp);
+#pragma weak execlp=_execlp
int
execv(name, argv)
@@ -178,7 +178,7 @@ execv(name, argv)
(void)execve(name, argv, environ);
return(-1);
}
-__weak_reference(_execv,execv);
+#pragma weak execv=_execv
int
execvp(name, argv)
@@ -268,4 +268,4 @@ done: if (path)
free(path);
return(-1);
}
-__weak_reference(_execvp,execvp);
+#pragma weak execvp=_execvp
View
@@ -33,9 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)fstab.c 5.15 (Berkeley) 2/23/91";*/
-static char *rcsid = "$Id: fstab.c,v 1.5 1994/08/13 09:41:50 mycroft Exp $";
+static char *rcsid = "$Id: fstab.c,v 1.5.2.1 1995/05/02 19:34:41 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/uio.h>
View
@@ -26,9 +26,10 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$Id: ftok.c,v 1.2 1994/06/26 16:27:34 jtc Exp $";
+static char *rcsid = "$Id: ftok.c,v 1.2.4.1 1995/05/02 19:34:42 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ipc.h>
View
@@ -33,9 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/* from: static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; */
-static char *rcsid = "$Id: fts.c,v 1.11 1994/12/28 03:15:09 mycroft Exp $";
+static char *rcsid = "$Id: fts.c,v 1.11.2.1 1995/05/02 19:34:44 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/param.h>
#include <sys/stat.h>
View
@@ -33,9 +33,10 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)getcwd.c 5.11 (Berkeley) 2/24/91";*/
-static char *rcsid = "$Id: getcwd.c,v 1.3 1993/08/26 00:44:36 jtc Exp $";
+static char *rcsid = "$Id: getcwd.c,v 1.3.4.1 1995/05/02 19:34:46 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/param.h>
#include <sys/stat.h>
#include <errno.h>
Oops, something went wrong.

0 comments on commit 5bdf793

Please sign in to comment.