add heapsort
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 5 Jun 1991 01:15:58 +0000 (17:15 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 5 Jun 1991 01:15:58 +0000 (17:15 -0800)
SCCS-vsn: lib/libc/stdlib/Makefile.inc 5.6
SCCS-vsn: include/stdlib.h 5.13

usr/src/include/stdlib.h
usr/src/lib/libc/stdlib/Makefile.inc

index 60ddd03..9b56d7b 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)stdlib.h    5.12 (Berkeley) %G%
+ *     @(#)stdlib.h    5.13 (Berkeley) %G%
  */
 
 #ifndef _STDLIB_H_
  */
 
 #ifndef _STDLIB_H_
@@ -83,6 +83,8 @@ extern         int opterr;
 int     getopt __P((int, char * const *, const char *));
 extern  char *suboptarg;               /* getsubopt(3) external variable */
 int     getsubopt __P((char **, char * const *, char **));
 int     getopt __P((int, char * const *, const char *));
 extern  char *suboptarg;               /* getsubopt(3) external variable */
 int     getsubopt __P((char **, char * const *, char **));
+int     heapsort __P((void *, size_t, size_t,
+           int (*)(const void *, const void *)));
 char   *initstate __P((unsigned, char *, int));
 int     radixsort __P((const u_char **, int, const u_char *, u_char));
 long    random __P((void));
 char   *initstate __P((unsigned, char *, int));
 int     radixsort __P((const u_char **, int, const u_char *, u_char));
 long    random __P((void));
index fbe6a37..0ba042d 100644 (file)
@@ -1,12 +1,12 @@
-#      @(#)Makefile.inc        5.5 (Berkeley) %G%
+#      @(#)Makefile.inc        5.6 (Berkeley) %G%
 
 # stdlib sources
 .PATH: ${.CURDIR}/${MACHINE}/stdlib ${.CURDIR}/stdlib
 
 SRCS+= abort.c atexit.c atoi.c atol.c bsearch.c calloc.c div.c exit.c \
 
 # stdlib sources
 .PATH: ${.CURDIR}/${MACHINE}/stdlib ${.CURDIR}/stdlib
 
 SRCS+= abort.c atexit.c atoi.c atol.c bsearch.c calloc.c div.c exit.c \
-       getenv.c getopt.c labs.c ldiv.c malloc.c multibyte.c putenv.c \
-       qsort.c radixsort.c rand.c random.c setenv.c strtol.c strtoul.c \
-       system.c
+       getenv.c getopt.c heapsort.c labs.c ldiv.c malloc.c multibyte.c \
+       putenv.c qsort.c radixsort.c rand.c random.c setenv.c strtol.c \
+       strtoul.c system.c
 
 .if   (${MACHINE} == "hp300")
 SRCS+= abs.s atof.c
 
 .if   (${MACHINE} == "hp300")
 SRCS+= abs.s atof.c
@@ -24,5 +24,6 @@ MAN+3=        abort.0 abs.0 alloca.0 atexit.0 atof.0 atoi.0 atol.0 bsearch.0 \
        strtod.0 strtol.0 strtoul.0 system.0
 
 MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3
        strtod.0 strtol.0 strtoul.0 system.0
 
 MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3
+MLINKS+=qsort.3 heapsort.3
 MLINKS+=rand.3 srand.3
 MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3
 MLINKS+=rand.3 srand.3
 MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3