-# Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+# Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
subdir := misc
-headers := sys/uio.h sys/ioctl.h sys/ptrace.h ioctls.h sys/file.h \
+headers := sys/uio.h iovec.h sys/ioctl.h sys/ptrace.h ioctls.h sys/file.h\
a.out.h nlist.h stab.h stab.def sgtty.h sys/dir.h sys/cdefs.h \
- ttyent.h syscall.h syslog.h
+ ttyent.h syscall.h syslog.h sys/syslog.h paths.h sys/reboot.h \
+ sys/mman.h sys/param.h fstab.h mntent.h search.h utmp.h \
+ err.h error.h sys/queue.h sysexits.h
routines := brk sbrk sstk ioctl \
- __brk __sbrk __ioctl \
readv writev \
setreuid setregid \
- __setreuid __setregid \
seteuid setegid \
- getpgsz \
- __getpgsz \
+ getpagesize \
getdtsz \
- __getdtsz \
- __gethstnm gethstnm sethostnam \
- __select select \
+ gethostname sethostname getdomain setdomain \
+ select \
acct chroot fsync sync reboot \
gethostid sethostid \
- mknod __mknod \
- swapon vhangup mktemp \
+ revoke vhangup \
+ swapon mktemp mkstemp \
ualarm usleep \
gtty stty \
- ptrace \
- nlist \
+ ptrace nlist \
+ fstab mntent \
utimes \
- __utimes \
truncate ftruncate \
chflags fchflags \
- insremque getttyent getusersh getpass ttyslot \
- syslog
-aux := data_start progname
+ insremque getttyent getusershell getpass ttyslot \
+ syslog syscall daemon \
+ mmap munmap mprotect msync madvise \
+ efgcvt efgcvt_r \
+ hsearch hsearch_r tsearch \
+ err error
+aux := init-misc
distribute := bsd-compat.c
-install-lib := libbsd-compat.a
+extra-objs := bsd-compat.o
+install-lib := libbsd-compat.a libg.a
+non-lib.a := libbsd-compat.a
+gpl2lgpl := error.c error.h
+
+# Build the -lutil library with these extra functions.
+extra-libs := libutil
+libutil-routines:= login login_tty logout logwtmp pty
+
include ../Rules
+
$(objpfx)libbsd-compat.a: $(objpfx)bsd-compat.o
rm -f $@
ln $< $@
+
+$(objpfx)libg.a: $(dep-dummy-lib); $(make-dummy-lib)