Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib back out the #ifdef _DIAGNOSTIC argument checks; too man...



details:   https://anonhg.NetBSD.org/src/rev/625b221597cc
branches:  trunk
changeset: 476562:625b221597cc
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Sep 20 04:38:56 1999 +0000

description:
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.

diffstat:

 lib/libc/compat-43/creat.c      |   10 +--
 lib/libc/compat-43/getwd.c      |    8 +--
 lib/libc/gen/__fts13.c          |   39 +-------------
 lib/libc/gen/__glob13.c         |   18 +-----
 lib/libc/gen/closedir.c         |   10 +--
 lib/libc/gen/disklabel.c        |    8 +--
 lib/libc/gen/execvp.c           |   11 +---
 lib/libc/gen/fnmatch.c          |    9 +--
 lib/libc/gen/fstab.c            |   12 +---
 lib/libc/gen/ftok.c             |   10 +--
 lib/libc/gen/getbsize.c         |    8 +--
 lib/libc/gen/getcap.c           |   46 +----------------
 lib/libc/gen/getcwd.c           |   14 +----
 lib/libc/gen/getdomainname.c    |   10 +--
 lib/libc/gen/getgrent.c         |    8 +--
 lib/libc/gen/getgrouplist.c     |    8 +--
 lib/libc/gen/gethostname.c      |   10 +--
 lib/libc/gen/getloadavg.c       |   10 +--
 lib/libc/gen/getmntinfo.c       |   10 +--
 lib/libc/gen/getnetgrent.c      |   24 +--------
 lib/libc/gen/getsubopt.c        |    8 +--
 lib/libc/gen/getttyent.c        |    8 +--
 lib/libc/gen/initgroups.c       |    8 +--
 lib/libc/gen/isatty.c           |   10 +--
 lib/libc/gen/nlist.c            |   20 +------
 lib/libc/gen/nlist_aout.c       |   14 +----
 lib/libc/gen/nlist_ecoff.c      |   14 +----
 lib/libc/gen/nlist_elf32.c      |   12 +----
 lib/libc/gen/opendir.c          |   14 +----
 lib/libc/gen/popen.c            |   16 +-----
 lib/libc/gen/pw_scan.c          |    8 +--
 lib/libc/gen/readdir.c          |   10 +--
 lib/libc/gen/rewinddir.c        |    8 +--
 lib/libc/gen/scandir.c          |   10 +--
 lib/libc/gen/seekdir.c          |    8 +--
 lib/libc/gen/setdomainname.c    |   10 +--
 lib/libc/gen/sethostname.c      |   10 +--
 lib/libc/gen/setmode.c          |    8 +--
 lib/libc/gen/sysctl.c           |   10 +--
 lib/libc/gen/telldir.c          |    8 +--
 lib/libc/gen/times.c            |   10 +--
 lib/libc/gen/ttyname.c          |   10 +--
 lib/libc/gen/uname.c            |   10 +--
 lib/libc/gen/unvis.c            |   12 +---
 lib/libc/gen/utime.c            |   10 +--
 lib/libc/gen/vis.c              |   16 +-----
 lib/libc/hash/sha1.c            |   18 +------
 lib/libc/hash/sha1hl.c          |   16 +-----
 lib/libc/locale/ctypeio.c       |   11 +---
 lib/libc/md/md4c.c              |   14 +----
 lib/libc/md/md5c.c              |   14 +----
 lib/libc/md/mdXhl.c             |   14 +----
 lib/libc/net/base64.c           |   12 +---
 lib/libc/net/ethers.c           |   28 +----------
 lib/libc/net/getaddrinfo.c      |   12 +----
 lib/libc/net/gethnamaddr.c      |   25 +--------
 lib/libc/net/getnetnamadr.c     |   12 +---
 lib/libc/net/getprotoname.c     |    8 +--
 lib/libc/net/getservbyname.c    |    8 +--
 lib/libc/net/hesiod.c           |   34 +-----------
 lib/libc/net/ifname.c           |   18 +------
 lib/libc/net/inet_net_ntop.c    |   10 +--
 lib/libc/net/inet_net_pton.c    |   10 +--
 lib/libc/net/inet_neta.c        |   10 +--
 lib/libc/net/inet_network.c     |    8 +--
 lib/libc/net/inet_ntop.c        |   10 +--
 lib/libc/net/inet_pton.c        |   18 +-----
 lib/libc/net/ip6opt.c           |   26 +---------
 lib/libc/net/iso_addr.c         |   12 +---
 lib/libc/net/linkaddr.c         |   12 +---
 lib/libc/net/ns_addr.c          |    8 +--
 lib/libc/net/nsap_addr.c        |   12 +---
 lib/libc/net/nsdispatch.c       |   20 +------
 lib/libc/net/rcmd.c             |   36 +------------
 lib/libc/net/res_comp.c         |   48 +-----------------
 lib/libc/net/res_debug.c        |   64 +----------------------
 lib/libc/net/res_mkquery.c      |   11 +---
 lib/libc/net/res_query.c        |   26 +--------
 lib/libc/net/res_send.c         |   22 +-------
 lib/libc/net/rthdr.c            |   26 +---------
 lib/libc/regex/regcomp.c        |    8 +--
 lib/libc/regex/regerror.c       |    8 +--
 lib/libc/regex/regexec.c        |    8 +--
 lib/libc/regex/regfree.c        |    8 +--
 lib/libc/rpc/authunix_prot.c    |    8 +--
 lib/libc/rpc/clnt_generic.c     |   11 +---
 lib/libc/rpc/clnt_perror.c      |   26 +--------
 lib/libc/rpc/clnt_simple.c      |    8 +--
 lib/libc/rpc/clnt_tcp.c         |   11 +---
 lib/libc/rpc/clnt_udp.c         |   11 +---
 lib/libc/rpc/get_myaddress.c    |    8 +--
 lib/libc/rpc/getrpcent.c        |    8 +--
 lib/libc/rpc/getrpcport.c       |    8 +--
 lib/libc/rpc/pmap_getmaps.c     |    8 +--
 lib/libc/rpc/pmap_getport.c     |    8 +--
 lib/libc/rpc/pmap_prot.c        |    8 +--
 lib/libc/rpc/pmap_prot2.c       |    8 +--
 lib/libc/rpc/pmap_rmt.c         |   18 +-----
 lib/libc/rpc/rpc_callmsg.c      |    8 +--
 lib/libc/rpc/rpc_prot.c         |   32 +-----------
 lib/libc/rpc/svc.c              |   52 +------------------
 lib/libc/rpc/svc_auth.c         |    8 +--
 lib/libc/rpc/svc_auth_unix.c    |    8 +--
 lib/libc/rpc/svc_tcp.c          |   14 +----
 lib/libc/stdio/asprintf.c       |   10 +--
 lib/libc/stdio/clrerr.c         |    8 +--
 lib/libc/stdio/fclose.c         |   10 +--
 lib/libc/stdio/fdopen.c         |   10 +--
 lib/libc/stdio/feof.c           |    8 +--
 lib/libc/stdio/ferror.c         |    8 +--
 lib/libc/stdio/fflush.c         |    8 +--
 lib/libc/stdio/fgetc.c          |   10 +--
 lib/libc/stdio/fgetln.c         |   12 +---
 lib/libc/stdio/fgetpos.c        |   10 +--
 lib/libc/stdio/fgets.c          |    8 +--
 lib/libc/stdio/fileno.c         |   10 +--
 lib/libc/stdio/flags.c          |    8 +--
 lib/libc/stdio/fopen.c          |    8 +--
 lib/libc/stdio/fprintf.c        |   14 +----
 lib/libc/stdio/fpurge.c         |   10 +--
 lib/libc/stdio/fputc.c          |   10 +--
 lib/libc/stdio/fputs.c          |   14 +----
 lib/libc/stdio/fread.c          |   14 +----
 lib/libc/stdio/freopen.c        |   18 +-----
 lib/libc/stdio/fscanf.c         |   14 +----
 lib/libc/stdio/fseek.c          |   10 +--
 lib/libc/stdio/fsetpos.c        |   14 +----
 lib/libc/stdio/ftell.c          |   11 +---
 lib/libc/stdio/fvwrite.c        |   14 +----
 lib/libc/stdio/fwalk.c          |   10 +--
 lib/libc/stdio/fwrite.c         |   14 +----
 lib/libc/stdio/getc.c           |   16 +-----
 lib/libc/stdio/gets.c           |   10 +--
 lib/libc/stdio/gettemp.c        |   10 +--
 lib/libc/stdio/getw.c           |   10 +--
 lib/libc/stdio/makebuf.c        |   12 +---
 lib/libc/stdio/mkdtemp.c        |   10 +--
 lib/libc/stdio/mkstemp.c        |   10 +--
 lib/libc/stdio/mktemp.c         |   16 +-----
 lib/libc/stdio/printf.c         |   11 +---
 lib/libc/stdio/putc.c           |   16 +-----
 lib/libc/stdio/puts.c           |   10 +--
 lib/libc/stdio/putw.c           |   10 +--
 lib/libc/stdio/refill.c         |   10 +--
 lib/libc/stdio/remove.c         |   10 +--
 lib/libc/stdio/rewind.c         |   10 +--
 lib/libc/stdio/rget.c           |   10 +--
 lib/libc/stdio/scanf.c          |   10 +--
 lib/libc/stdio/setbuf.c         |   10 +--
 lib/libc/stdio/setbuffer.c      |   16 +-----
 lib/libc/stdio/setvbuf.c        |   10 +--
 lib/libc/stdio/snprintf.c       |   10 +--
 lib/libc/stdio/sprintf.c        |   10 +--
 lib/libc/stdio/sscanf.c         |   10 +--
 lib/libc/stdio/stdio.c          |   36 +------------
 lib/libc/stdio/ungetc.c         |   10 +--
 lib/libc/stdio/vasprintf.c      |   10 +--
 lib/libc/stdio/vfprintf.c       |   14 +----
 lib/libc/stdio/vfscanf.c        |   14 +----
 lib/libc/stdio/vprintf.c        |   10 +--
 lib/libc/stdio/vscanf.c         |   10 +--
 lib/libc/stdio/vsnprintf.c      |   10 +--
 lib/libc/stdio/vsprintf.c       |   10 +--
 lib/libc/stdio/vsscanf.c        |   10 +--
 lib/libc/stdio/wbuf.c           |   10 +--
 lib/libc/stdio/wsetup.c         |   10 +--
 lib/libc/stdlib/_rand48.c       |    6 +-
 lib/libc/stdlib/a64l.c          |    6 +-
 lib/libc/stdlib/atexit.c        |   10 +--
 lib/libc/stdlib/atof.c          |    8 +--
 lib/libc/stdlib/atoi.c          |    8 +--
 lib/libc/stdlib/atol.c          |    8 +--
 lib/libc/stdlib/bsearch.c       |   10 +--
 lib/libc/stdlib/erand48.c       |    6 +-
 lib/libc/stdlib/getenv.c        |   10 +--
 lib/libc/stdlib/getopt.c        |   11 +---
 lib/libc/stdlib/getopt_long.c   |   13 ----
 lib/libc/stdlib/getsubopt.c     |    8 +--
 lib/libc/stdlib/heapsort.c      |   10 +--
 lib/libc/stdlib/jrand48.c       |    6 +-
 lib/libc/stdlib/l64a.c          |   10 +--
 lib/libc/stdlib/lcong48.c       |    6 +-
 lib/libc/stdlib/merge.c         |   10 +--
 lib/libc/stdlib/multibyte.c     |    8 +--
 lib/libc/stdlib/nrand48.c       |    6 +-
 lib/libc/stdlib/putenv.c        |   10 +--
 lib/libc/stdlib/qsort.c         |   10 +--
 lib/libc/stdlib/radixsort.c     |   10 +--
 lib/libc/stdlib/rand_r.c        |    8 +--
 lib/libc/stdlib/random.c        |   12 +---
 lib/libc/stdlib/seed48.c        |    6 +-
 lib/libc/stdlib/setenv.c        |   14 +----
 lib/libc/stdlib/strtol.c        |   10 +--
 lib/libc/stdlib/strtoq.c        |   10 +--
 lib/libc/stdlib/strtoul.c       |   10 +--
 lib/libc/stdlib/strtouq.c       |   10 +--
 lib/libc/stdlib/tdelete.c       |    8 +--
 lib/libc/stdlib/tfind.c         |    8 +--
 lib/libc/stdlib/tsearch.c       |    8 +--
 lib/libc/string/__strerror.c    |    8 +--
 lib/libc/string/__strsignal.c   |    8 +--
 lib/libc/string/bcmp.c          |    8 +--
 lib/libc/string/bcopy.c         |   10 +--
 lib/libc/string/bm.c            |   18 +-----
 lib/libc/string/index.c         |    8 +--
 lib/libc/string/memccpy.c       |    8 +--
 lib/libc/string/memchr.c        |    8 +--
 lib/libc/string/memcmp.c        |    8 +--
 lib/libc/string/memset.c        |    8 +--
 lib/libc/string/rindex.c        |    8 +--
 lib/libc/string/strcasecmp.c    |    8 +--
 lib/libc/string/strcat.c        |    8 +--
 lib/libc/string/strcmp.c        |    8 +--
 lib/libc/string/strcoll.c       |    8 +--
 lib/libc/string/strcpy.c        |    8 +--
 lib/libc/string/strcspn.c       |    8 +--
 lib/libc/string/strdup.c        |   10 +--
 lib/libc/string/strlcat.c       |    8 +--
 lib/libc/string/strlcpy.c       |    8 +--
 lib/libc/string/strlen.c        |    8 +--
 lib/libc/string/strmode.c       |    8 +--
 lib/libc/string/strncat.c       |    8 +--
 lib/libc/string/strncmp.c       |    8 +--
 lib/libc/string/strncpy.c       |    8 +--
 lib/libc/string/strpbrk.c       |    8 +--
 lib/libc/string/strsep.c        |    8 +--
 lib/libc/string/strspn.c        |    8 +--
 lib/libc/string/strstr.c        |    8 +--
 lib/libc/string/strtok.c        |    8 +--
 lib/libc/string/strtok_r.c      |    8 +--
 lib/libc/string/strxfrm.c       |    8 +--
 lib/libc/string/swab.c          |    8 +--
 lib/libc/termios/cfgetispeed.c  |    8 +--
 lib/libc/termios/cfgetospeed.c  |    8 +--
 lib/libc/termios/cfmakeraw.c    |    8 +--
 lib/libc/termios/cfsetispeed.c  |    8 +--
 lib/libc/termios/cfsetospeed.c  |    8 +--
 lib/libc/termios/cfsetspeed.c   |    8 +--
 lib/libc/termios/tcdrain.c      |   10 +--
 lib/libc/termios/tcflow.c       |   10 +--
 lib/libc/termios/tcflush.c      |   10 +--
 lib/libc/termios/tcgetattr.c    |   14 +----
 lib/libc/termios/tcgetpgrp.c    |   10 +--
 lib/libc/termios/tcgetsid.c     |   10 +--
 lib/libc/termios/tcsendbreak.c  |   10 +--
 lib/libc/termios/tcsetattr.c    |   14 +----
 lib/libc/termios/tcsetpgrp.c    |   10 +--
 lib/libc/yp/xdryp.c             |  108 +---------------------------------------
 lib/libc/yp/yplib.c             |    8 +--
 lib/libcompat/4.1/ftime.c       |    8 +--
 lib/libcompat/4.1/gtty.c        |   12 +----
 lib/libcompat/4.1/stty.c        |   12 +----
 lib/libcompat/4.3/insque.c      |    6 +-
 lib/libcompat/4.3/lsearch.c     |   14 +----
 lib/libcompat/4.3/regex.c       |   10 +---
 lib/libcompat/4.3/remque.c      |    6 +-
 lib/libcompat/4.3/rexec.c       |    8 +--
 lib/libcompat/4.3/ruserpass.c   |    8 +--
 lib/libcompat/regexp/regerror.c |    6 +-
 lib/librmt/rmtlib.c             |   58 +---------------------
 lib/libterm/termcap.c           |   20 +------
 lib/libterm/tputs.c             |    8 +--
 lib/libusb/data.c               |   10 +---
 lib/libusb/descr.c              |    8 +--
 lib/libusb/parse.c              |   22 +-------
 lib/libutil/fparseln.c          |   14 +----
 lib/libutil/login.c             |    8 +--
 lib/libutil/login_tty.c         |   10 +--
 lib/libutil/logout.c            |    8 +--
 lib/libutil/logwtmp.c           |    8 +--
 lib/libutil/opendisk.c          |   10 +--
 lib/libutil/passwd.c            |    8 +--
 lib/libutil/pidlock.c           |   22 +-------
 lib/libutil/pty.c               |   16 +-----
 lib/libutil/ttyaction.c         |    6 +-
 lib/libutil/ttymsg.c            |   12 +---
 lib/liby/yyerror.c              |    6 +-
 277 files changed, 520 insertions(+), 2865 deletions(-)

diffs (truncated from 10311 to 300 lines):

diff -r c95a2d6faddd -r 625b221597cc lib/libc/compat-43/creat.c
--- a/lib/libc/compat-43/creat.c        Mon Sep 20 04:12:16 1999 +0000
+++ b/lib/libc/compat-43/creat.c        Mon Sep 20 04:38:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: creat.c,v 1.7 1999/09/16 11:44:54 lukem Exp $  */
+/*     $NetBSD: creat.c,v 1.8 1999/09/20 04:38:56 lukem Exp $  */
 
 /*
  * Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)creat.c    8.1 (Berkeley) 6/2/93";
 #else
-__RCSID("$NetBSD: creat.c,v 1.7 1999/09/16 11:44:54 lukem Exp $");
+__RCSID("$NetBSD: creat.c,v 1.8 1999/09/20 04:38:56 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -57,12 +57,6 @@
 {
 
        _DIAGASSERT(path != NULL);
-#ifdef _DIAGNOSTIC
-       if (path == NULL || *path == '\0') {
-               errno = ENOENT;
-               return (-1);
-       }
-#endif
 
        return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
 }
diff -r c95a2d6faddd -r 625b221597cc lib/libc/compat-43/getwd.c
--- a/lib/libc/compat-43/getwd.c        Mon Sep 20 04:12:16 1999 +0000
+++ b/lib/libc/compat-43/getwd.c        Mon Sep 20 04:38:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getwd.c,v 1.10 1999/09/16 11:44:54 lukem Exp $ */
+/*     $NetBSD: getwd.c,v 1.11 1999/09/20 04:38:56 lukem Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)getwd.c    8.1 (Berkeley) 6/2/93";
 #else
-__RCSID("$NetBSD: getwd.c,v 1.10 1999/09/16 11:44:54 lukem Exp $");
+__RCSID("$NetBSD: getwd.c,v 1.11 1999/09/20 04:38:56 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -63,10 +63,6 @@
        char *p;
 
        _DIAGASSERT(buf != NULL);
-#ifdef _DIAGNOSTIC
-       if (buf == NULL)
-               return((char *)NULL);
-#endif
 
        if ((p = getcwd(buf, MAXPATHLEN)) != NULL)
                return(p);
diff -r c95a2d6faddd -r 625b221597cc lib/libc/gen/__fts13.c
--- a/lib/libc/gen/__fts13.c    Mon Sep 20 04:12:16 1999 +0000
+++ b/lib/libc/gen/__fts13.c    Mon Sep 20 04:38:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __fts13.c,v 1.26 1999/09/16 11:44:55 lukem Exp $       */
+/*     $NetBSD: __fts13.c,v 1.27 1999/09/20 04:38:57 lukem Exp $       */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)fts.c      8.6 (Berkeley) 8/14/94";
 #else
-__RCSID("$NetBSD: __fts13.c,v 1.26 1999/09/16 11:44:55 lukem Exp $");
+__RCSID("$NetBSD: __fts13.c,v 1.27 1999/09/20 04:38:57 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -126,13 +126,6 @@
        size_t len;
 
        _DIAGASSERT(argv != NULL);
-#ifdef _DIAGNOSTIC
-       /* compar may be NULL */
-       if (argv == NULL) {
-               errno = ENOENT;
-               return (NULL);
-       }
-#endif
 
        /* Options check. */
        if (options & ~FTS_OPTIONMASK) {
@@ -267,12 +260,6 @@
        int saved_errno = 0;
 
        _DIAGASSERT(sp != NULL);
-#ifdef _DIAGNOSTIC
-       if (sp == NULL) {
-               errno = EBADF;
-               return (-1);
-       }
-#endif
 
        /*
         * This still works if we haven't read anything -- the dummy structure
@@ -332,12 +319,6 @@
        int saved_errno;
 
        _DIAGASSERT(sp != NULL);
-#ifdef _DIAGNOSTIC
-       if (sp == NULL) {
-               errno = EBADF;
-               return (NULL);
-       }
-#endif
 
        /* If finished or unrecoverable error, return NULL. */
        if (sp->fts_cur == NULL || ISSET(FTS_STOP))
@@ -533,16 +514,6 @@
 
        _DIAGASSERT(sp != NULL);
        _DIAGASSERT(p != NULL);
-#ifdef _DIAGNOSTIC
-       if (sp == NULL) {
-               errno = EBADF;
-               return (-1);
-       }
-       if (p == NULL) {
-               errno = EFAULT;
-               return (-1);
-       }
-#endif
 
        if (instr && instr != FTS_AGAIN && instr != FTS_FOLLOW &&
            instr != FTS_NOINSTR && instr != FTS_SKIP) {
@@ -562,12 +533,6 @@
        int fd;
 
        _DIAGASSERT(sp != NULL);
-#ifdef _DIAGNOSTIC
-       if (sp == NULL) {
-               errno = EBADF;
-               return (NULL);
-       }
-#endif
 
        if (instr && instr != FTS_NAMEONLY) {
                errno = EINVAL;
diff -r c95a2d6faddd -r 625b221597cc lib/libc/gen/__glob13.c
--- a/lib/libc/gen/__glob13.c   Mon Sep 20 04:12:16 1999 +0000
+++ b/lib/libc/gen/__glob13.c   Mon Sep 20 04:38:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __glob13.c,v 1.11 1999/09/16 11:44:55 lukem Exp $      */
+/*     $NetBSD: __glob13.c,v 1.12 1999/09/20 04:38:57 lukem Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)glob.c     8.3 (Berkeley) 10/13/93";
 #else
-__RCSID("$NetBSD: __glob13.c,v 1.11 1999/09/16 11:44:55 lukem Exp $");
+__RCSID("$NetBSD: __glob13.c,v 1.12 1999/09/20 04:38:57 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -185,16 +185,6 @@
        Char *bufnext, *bufend, patbuf[MAXPATHLEN+1];
 
        _DIAGASSERT(pattern != NULL);
-#ifdef _DIAGNOSTIC
-       /* errfunc may be NULL */
-       _DIAGASSERT(pglob != NULL);
-       if (pattern == NULL || pglob == NULL) {
-               if (errfunc || (flags & GLOB_ERR))
-                       return GLOB_ABORTED;
-               else
-                       return GLOB_NOMATCH;
-       }
-#endif
 
        patnext = (const u_char *) pattern;
        if (!(flags & GLOB_APPEND)) {
@@ -819,10 +809,6 @@
        char **pp;
 
        _DIAGASSERT(pglob != NULL);
-#ifdef _DIAGNOSTIC
-       if (pglob == NULL)
-               return;
-#endif
 
        if (pglob->gl_pathv != NULL) {
                pp = pglob->gl_pathv + pglob->gl_offs;
diff -r c95a2d6faddd -r 625b221597cc lib/libc/gen/closedir.c
--- a/lib/libc/gen/closedir.c   Mon Sep 20 04:12:16 1999 +0000
+++ b/lib/libc/gen/closedir.c   Mon Sep 20 04:38:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: closedir.c,v 1.8 1999/09/16 11:44:56 lukem Exp $       */
+/*     $NetBSD: closedir.c,v 1.9 1999/09/20 04:38:58 lukem Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)closedir.c 8.1 (Berkeley) 6/10/93";
 #else
-__RCSID("$NetBSD: closedir.c,v 1.8 1999/09/16 11:44:56 lukem Exp $");
+__RCSID("$NetBSD: closedir.c,v 1.9 1999/09/20 04:38:58 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -65,12 +65,6 @@
        int fd;
 
        _DIAGASSERT(dirp != NULL);
-#ifdef _DIAGNOSTIC
-       if (dirp == NULL) {
-               errno = EBADF;
-               return (-1);
-       }
-#endif
 
        seekdir(dirp, dirp->dd_rewind); /* free seekdir storage */
        fd = dirp->dd_fd;
diff -r c95a2d6faddd -r 625b221597cc lib/libc/gen/disklabel.c
--- a/lib/libc/gen/disklabel.c  Mon Sep 20 04:12:16 1999 +0000
+++ b/lib/libc/gen/disklabel.c  Mon Sep 20 04:38:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disklabel.c,v 1.24 1999/09/16 11:44:56 lukem Exp $     */
+/*     $NetBSD: disklabel.c,v 1.25 1999/09/20 04:38:58 lukem Exp $     */
 
 /*
  * Copyright (c) 1983, 1987, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)disklabel.c        8.2 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: disklabel.c,v 1.24 1999/09/16 11:44:56 lukem Exp $");
+__RCSID("$NetBSD: disklabel.c,v 1.25 1999/09/20 04:38:58 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -99,10 +99,6 @@
        long f;
 
        _DIAGASSERT(name != NULL);
-#ifdef _DIAGNOSTIC
-       if (name == NULL)
-               return NULL;
-#endif
 
        if (cgetent(&buf, db_array, name) < 0)
                return NULL;
diff -r c95a2d6faddd -r 625b221597cc lib/libc/gen/execvp.c
--- a/lib/libc/gen/execvp.c     Mon Sep 20 04:12:16 1999 +0000
+++ b/lib/libc/gen/execvp.c     Mon Sep 20 04:38:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: execvp.c,v 1.14 1999/09/16 11:44:56 lukem Exp $        */
+/*     $NetBSD: execvp.c,v 1.15 1999/09/20 04:38:58 lukem Exp $        */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)exec.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: execvp.c,v 1.14 1999/09/16 11:44:56 lukem Exp $");
+__RCSID("$NetBSD: execvp.c,v 1.15 1999/09/20 04:38:58 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -77,13 +77,6 @@
        const char *bp;
 
        _DIAGASSERT(name != NULL);
-#ifdef _DIAGNOSTIC
-       if (name == NULL) {
-               errno = EFAULT;
-               path = NULL;
-               goto done;
-       }
-#endif
 
        /* "" is not a valid filename; check this before traversing PATH. */
        if (name[0] == '\0') {
diff -r c95a2d6faddd -r 625b221597cc lib/libc/gen/fnmatch.c
--- a/lib/libc/gen/fnmatch.c    Mon Sep 20 04:12:16 1999 +0000
+++ b/lib/libc/gen/fnmatch.c    Mon Sep 20 04:38:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fnmatch.c,v 1.15 1999/09/16 11:44:56 lukem Exp $       */
+/*     $NetBSD: fnmatch.c,v 1.16 1999/09/20 04:38:58 lukem Exp $       */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)fnmatch.c  8.2 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: fnmatch.c,v 1.15 1999/09/16 11:44:56 lukem Exp $");



Home | Main Index | Thread Index | Old Index