1: /*-
   2:  * Copyright (c) 1990, 1993
   3:  *	The Regents of the University of California.  All rights reserved.
   4:  *
   5:  * Redistribution and use in source and binary forms, with or without
   6:  * modification, are permitted provided that the following conditions
   7:  * are met:
   8:  * 1. Redistributions of source code must retain the above copyright
   9:  *    notice, this list of conditions and the following disclaimer.
  10:  * 2. Redistributions in binary form must reproduce the above copyright
  11:  *    notice, this list of conditions and the following disclaimer in the
  12:  *    documentation and/or other materials provided with the distribution.
  13:  * 3. All advertising materials mentioning features or use of this software
  14:  *    must display the following acknowledgement:
  15:  *	This product includes software developed by the University of
  16:  *	California, Berkeley and its contributors.
  17:  * 4. Neither the name of the University nor the names of its contributors
  18:  *    may be used to endorse or promote products derived from this software
  19:  *    without specific prior written permission.
  20:  *
  21:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  22:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  25:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  27:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  28:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31:  * SUCH DAMAGE.
  32:  *
  33:  *	@(#)stdlib.h	8.3.2 (2.11BSD) 1996/1/12
  34:  *
  35:  * Adapted from the 4.4-Lite CD.  The odds of a ANSI C compiler for 2.11BSD
  36:  * being slipped under the door are not distinguishable from 0 - so the
  37:  * prototypes and ANSI ifdefs have been removed from this file.
  38:  *
  39:  * Some functions (strtoul for example) do not exist yet but are retained in
  40:  * this file because additions to libc.a are anticipated shortly.
  41:  */
  42: 
  43: #ifndef _STDLIB_H_
  44: #define _STDLIB_H_
  45: 
  46: /* #include <machine/ansi.h> */
  47: 
  48: #ifdef  notyet
  49: typedef struct {
  50:     int quot;       /* quotient */
  51:     int rem;        /* remainder */
  52: } div_t;
  53: 
  54: typedef struct {
  55:     long quot;      /* quotient */
  56:     long rem;       /* remainder */
  57: } ldiv_t;
  58: #endif
  59: 
  60: #ifndef NULL
  61: #define NULL    0
  62: #endif
  63: 
  64: #define EXIT_FAILURE    1
  65: #define EXIT_SUCCESS    0
  66: 
  67: #define RAND_MAX    0x7fff
  68: 
  69: void    abort();
  70: int abs();
  71: int atexit();
  72: double  atof();
  73: int atoi();
  74: long    atol();
  75: void    *calloc();
  76: void    exit();
  77: void    free();
  78: char    *getenv();
  79: void    *malloc();
  80: void    qsort();
  81: int rand();
  82: void    *realloc();
  83: void    srand();
  84: double  strtod();
  85: long    strtol();
  86: unsigned long strtoul();
  87: int system();
  88: 
  89: int putenv();
  90: int setenv();
  91: 
  92: void    *alloca();
  93: 
  94: int daemon();
  95: char    *devname();
  96: int getloadavg();
  97: 
  98: extern char *optarg;            /* getopt(3) external variables */
  99: extern int opterr, optind, optopt;
 100: int getopt();
 101: 
 102: extern char *suboptarg;         /* getsubopt(3) external variable */
 103: int getsubopt();
 104: 
 105: long    random();
 106: char    *setstate();
 107: void    srandom();
 108: void    unsetenv();
 109: 
 110: #endif /* _STDLIB_H_ */

Defined macros

EXIT_FAILURE defined in line 64; never used
EXIT_SUCCESS defined in line 65; never used
NULL defined in line 61; used 216 times
RAND_MAX defined in line 67; never used
_STDLIB_H_ defined in line 44; used 1 times
  • in line 43

Usage of this include

stdlib.h used 80 times
Last modified: 1996-01-13
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 489
Valid CSS Valid XHTML 1.0 Strict