Print this page
10078 smatch fixes for UCB


  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  27 /*        All Rights Reserved   */
  28 
  29 /*
  30  * Portions of this source code were derived from Berkeley 4.3 BSD
  31  * under license from the Regents of the University of California.
  32  */
  33 




  34 /*LINTLIBRARY*/
  35 
  36 #include        <sys/types.h>
  37 #include        <stdio.h>
  38 #include        <unistd.h>
  39 #include        <stdlib.h>
  40 #include        <strings.h>
  41 #include        <malloc.h>
  42 #include        <sys/stat.h>
  43 #include        <sys/fcntl.h>
  44 #include        <dbm.h>
  45 #include        <errno.h>
  46 
  47 /* forward declarations */
  48 /* could be all static if not were for older *.a releases */
  49 void chkblk(char buf[PBLKSIZ]);
  50 void delitem(char buf[PBLKSIZ], int n);
  51 void dbm_access(long hash);
  52 int getbit(void);
  53 int setbit(void);




  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  27 /*        All Rights Reserved   */
  28 
  29 /*
  30  * Portions of this source code were derived from Berkeley 4.3 BSD
  31  * under license from the Regents of the University of California.
  32  */
  33 
  34 /*
  35  * Copyright (c) 2018, Joyent, Inc.
  36  */
  37 
  38 /*LINTLIBRARY*/
  39 
  40 #include        <sys/types.h>
  41 #include        <stdio.h>
  42 #include        <unistd.h>
  43 #include        <stdlib.h>
  44 #include        <strings.h>
  45 #include        <malloc.h>
  46 #include        <sys/stat.h>
  47 #include        <sys/fcntl.h>
  48 #include        <dbm.h>
  49 #include        <errno.h>
  50 
  51 /* forward declarations */
  52 /* could be all static if not were for older *.a releases */
  53 void chkblk(char buf[PBLKSIZ]);
  54 void delitem(char buf[PBLKSIZ], int n);
  55 void dbm_access(long hash);
  56 int getbit(void);
  57 int setbit(void);