Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 05:01:47 -0800 (PST)
From:      Daniel Eischen <deischen@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc Makefile src/lib/libc/alpha SYS.h src/lib/libc/alpha/gen _setjmp.S setjmp.S sigsetjmp.S src/lib/libc/alpha/sys setlogin.S src/lib/libc/compat-43 creat.c sigcompat.c src/lib/libc/db/btree bt_close.c bt_open.c ...
Message-ID:  <200101241301.f0OD1mt36593@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
deischen    2001/01/24 05:01:47 PST

  Modified files:
    lib/libc             Makefile 
    lib/libc/alpha       SYS.h 
    lib/libc/alpha/gen   _setjmp.S setjmp.S sigsetjmp.S 
    lib/libc/alpha/sys   setlogin.S 
    lib/libc/compat-43   creat.c sigcompat.c 
    lib/libc/db/btree    bt_close.c bt_open.c 
    lib/libc/db/hash     hash.c hash_buf.c hash_page.c 
    lib/libc/db/mpool    mpool.c 
    lib/libc/db/recno    rec_close.c rec_open.c 
    lib/libc/gen         Makefile.inc _spinlock_stub.c 
                         arc4random.c closedir.c daemon.c 
                         devname.c disklabel.c exec.c fstab.c 
                         fts.c getcap.c getcwd.c getlogin.c 
                         getpass.c getpwent.c getvfsent.c isatty.c 
                         lockf.c nlist.c opendir.c pause.c popen.c 
                         posixshm.c pselect.c psignal.c readdir.c 
                         scandir.c seekdir.c setjmperr.c setmode.c 
                         siginterrupt.c signal.c sleep.c syslog.c 
                         telldir.c telldir.h termios.c ttyname.c 
                         usleep.c vis.c wait.c wait3.c waitpid.c 
    lib/libc/gmon        gmon.c 
    lib/libc/i386        SYS.h 
    lib/libc/i386/gen    _setjmp.S setjmp.S sigsetjmp.S 
    lib/libc/i386/sys    Ovfork.S setlogin.S 
    lib/libc/ia64        SYS.h 
    lib/libc/ia64/gen    _setjmp.S modf.c setjmp.S sigsetjmp.S 
    lib/libc/include     libc_private.h 
    lib/libc/locale      big5.c collate.c mskanji.c none.c rune.c 
                         utf2.c 
    lib/libc/net         getaddrinfo.c gethostbyht.c 
                         gethostnamadr.c getifaddrs.c 
                         getnetbydns.c getnetnamadr.c herror.c 
                         map_v4v6.c name6.c rcmd.c recv.c 
                         res_mkupdate.c res_send.c res_update.c 
                         send.c 
    lib/libc/nls         msgcat.c 
    lib/libc/rpc         auth_time.c bindresvport.c clnt_generic.c 
                         clnt_simple.c clnt_tcp.c clnt_udp.c 
                         clnt_unix.c get_myaddress.c key_call.c 
                         pmap_clnt.c pmap_getmaps.c pmap_getport.c 
                         pmap_rmt.c rpc_dtablesize.c rtime.c svc.c 
                         svc_auth_des.c svc_run.c svc_tcp.c 
                         svc_udp.c svc_unix.c 
    lib/libc/stdio       _flock_stub.c clrerr.c fclose.c fdopen.c 
                         fflush.c fgetc.c fgetpos.c fgets.c 
                         findfp.c flags.c fopen.c fpurge.c fputc.c 
                         fputs.c fread.c freopen.c fscanf.c 
                         fseek.c ftell.c funopen.c fvwrite.c 
                         fwalk.c fwrite.c getc.c getchar.c gets.c 
                         local.h makebuf.c mktemp.c perror.c 
                         putc.c putchar.c puts.c putw.c refill.c 
                         rewind.c scanf.c setvbuf.c stdio.c 
                         tmpfile.c ungetc.c vasprintf.c vfprintf.c 
                         vfscanf.c vscanf.c vsnprintf.c vsprintf.c 
                         wbuf.c 
    lib/libc/stdlib      abort.c exit.c malloc.c random.c 
                         realpath.c system.c 
    lib/libc/stdtime     asctime.c difftime.c localtime.c 
                         strftime.c strptime.c timelocal.c 
    lib/libc/sys         __error.c ftruncate.c lseek.c 
    lib/libc/yp          yplib.c 
  Added files:
    lib/libc/gen         _pthread_stubs.c _thread_init.c 
    lib/libc/include     namespace.h un-namespace.h 
  Log:
  Remove _THREAD_SAFE and make libc thread-safe by default by
  adding (weak definitions to) stubs for some of the pthread
  functions.  If the threads library is linked in, the real
  pthread functions will pulled in.
  
  Use the following convention for system calls wrapped by the
  threads library:
  	__sys_foo - actual system call
  	_foo - weak definition to __sys_foo
  	foo - weak definition to __sys_foo
  
  Change all libc uses of system calls wrapped by the threads
  library from foo to _foo.  In order to define the prototypes
  for _foo(), we introduce namespace.h and un-namespace.h
  (suggested by bde).  All files that need to reference these
  system calls, should include namespace.h before any standard
  includes, then include un-namespace.h after the standard
  includes and before any local includes.  <db.h> is an exception
  and shouldn't be included in between namespace.h and
  un-namespace.h  namespace.h will define foo to _foo, and
  un-namespace.h will undefine foo.
  
  Try to eliminate some of the recursive calls to MT-safe
  functions in libc/stdio in preparation for adding a mutex
  to FILE.  We have recursive mutexes, but would like to avoid
  using them if possible.
  
  Remove uneeded includes of <errno.h> from a few files.
  
  Add $FreeBSD$ to a few files in order to pass commitprep.
  
  Approved by:	-arch
  
  Revision  Changes    Path
  1.26      +16 -3     src/lib/libc/Makefile
  1.13      +14 -23    src/lib/libc/alpha/SYS.h
  1.7       +2 -10     src/lib/libc/alpha/gen/_setjmp.S
  1.14      +5 -13     src/lib/libc/alpha/gen/setjmp.S
  1.7       +4 -12     src/lib/libc/alpha/gen/sigsetjmp.S
  1.2       +3 -1      src/lib/libc/alpha/sys/setlogin.S
  1.6       +4 -10     src/lib/libc/compat-43/creat.c
  1.8       +8 -5      src/lib/libc/compat-43/sigcompat.c
  1.6       +3 -1      src/lib/libc/db/btree/bt_close.c
  1.9       +6 -4      src/lib/libc/db/btree/bt_open.c
  1.9       +6 -3      src/lib/libc/db/hash/hash.c
  1.5       +2 -1      src/lib/libc/db/hash/hash_buf.c
  1.6       +5 -3      src/lib/libc/db/hash/hash_page.c
  1.8       +4 -2      src/lib/libc/db/mpool/mpool.c
  1.5       +4 -2      src/lib/libc/db/recno/rec_close.c
  1.5       +4 -2      src/lib/libc/db/recno/rec_open.c
  1.73      +3 -3      src/lib/libc/gen/Makefile.inc
  1.5       +13 -5     src/lib/libc/gen/_spinlock_stub.c
  1.5       +3 -1      src/lib/libc/gen/arc4random.c
  1.9       +12 -2     src/lib/libc/gen/closedir.c
  1.4       +6 -4      src/lib/libc/gen/daemon.c
  1.5       +1 -2      src/lib/libc/gen/devname.c
  1.10      +1 -2      src/lib/libc/gen/disklabel.c
  1.16      +9 -7      src/lib/libc/gen/exec.c
  1.9       +4 -2      src/lib/libc/gen/fstab.c
  1.16      +5 -3      src/lib/libc/gen/fts.c
  1.14      +5 -2      src/lib/libc/gen/getcap.c
  1.20      +4 -2      src/lib/libc/gen/getcwd.c
  1.6       +11 -14    src/lib/libc/gen/getlogin.c
  1.9       +5 -3      src/lib/libc/gen/getpass.c
  1.59      +3 -1      src/lib/libc/gen/getpwent.c
  1.15      +2 -1      src/lib/libc/gen/getvfsent.c
  1.4       +3 -14     src/lib/libc/gen/isatty.c
  1.6       +4 -2      src/lib/libc/gen/lockf.c
  1.13      +5 -3      src/lib/libc/gen/nlist.c
  1.13      +11 -10    src/lib/libc/gen/opendir.c
  1.5       +2 -4      src/lib/libc/gen/pause.c
  1.15      +10 -8     src/lib/libc/gen/popen.c
  1.3       +4 -2      src/lib/libc/gen/posixshm.c
  1.3       +6 -4      src/lib/libc/gen/pselect.c
  1.6       +3 -1      src/lib/libc/gen/psignal.c
  1.9       +33 -25    src/lib/libc/gen/readdir.c
  1.6       +5 -1      src/lib/libc/gen/scandir.c
  1.4       +9 -1      src/lib/libc/gen/seekdir.c
  1.4       +3 -1      src/lib/libc/gen/setjmperr.c
  1.6       +5 -4      src/lib/libc/gen/setmode.c
  1.3       +7 -2      src/lib/libc/gen/siginterrupt.c
  1.2       +6 -1      src/lib/libc/gen/signal.c
  1.30      +4 -3      src/lib/libc/gen/sleep.c
  1.22      +8 -6      src/lib/libc/gen/syslog.c
  1.7       +10 -2     src/lib/libc/gen/telldir.c
  1.2       +4 -3      src/lib/libc/gen/telldir.h
  1.11      +17 -16    src/lib/libc/gen/termios.c
  1.11      +55 -69    src/lib/libc/gen/ttyname.c
  1.26      +3 -1      src/lib/libc/gen/usleep.c
  1.8       +2 -1      src/lib/libc/gen/vis.c
  1.5       +6 -6      src/lib/libc/gen/wait.c
  1.2       +5 -1      src/lib/libc/gen/wait3.c
  1.5       +5 -11     src/lib/libc/gen/waitpid.c
  1.9       +4 -1      src/lib/libc/gmon/gmon.c
  1.19      +15 -18    src/lib/libc/i386/SYS.h
  1.13      +4 -7      src/lib/libc/i386/gen/_setjmp.S
  1.19      +6 -16     src/lib/libc/i386/gen/setjmp.S
  1.21      +6 -19     src/lib/libc/i386/gen/sigsetjmp.S
  1.13      +7 -8      src/lib/libc/i386/sys/Ovfork.S
  1.7       +3 -3      src/lib/libc/i386/sys/setlogin.S
  1.2       +10 -25    src/lib/libc/ia64/SYS.h
  1.3       +3 -11     src/lib/libc/ia64/gen/_setjmp.S
  1.2       +1 -2      src/lib/libc/ia64/gen/modf.c
  1.3       +6 -15     src/lib/libc/ia64/gen/setjmp.S
  1.2       +3 -11     src/lib/libc/ia64/gen/sigsetjmp.S
  1.4       +3 -3      src/lib/libc/include/libc_private.h
  1.5       +1 -2      src/lib/libc/locale/big5.c
  1.22      +5 -2      src/lib/libc/locale/collate.c
  1.4       +1 -2      src/lib/libc/locale/mskanji.c
  1.3       +2 -1      src/lib/libc/locale/none.c
  1.6       +5 -1      src/lib/libc/locale/rune.c
  1.5       +1 -2      src/lib/libc/locale/utf2.c
  1.16      +7 -5      src/lib/libc/net/getaddrinfo.c
  1.14      +1 -2      src/lib/libc/net/gethostbyht.c
  1.18      +2 -5      src/lib/libc/net/gethostnamadr.c
  1.3       +6 -5      src/lib/libc/net/getifaddrs.c
  1.15      +1 -2      src/lib/libc/net/getnetbydns.c
  1.14      +1 -2      src/lib/libc/net/getnetnamadr.c
  1.9       +4 -2      src/lib/libc/net/herror.c
  1.6       +1 -2      src/lib/libc/net/map_v4v6.c
  1.17      +11 -9     src/lib/libc/net/name6.c
  1.31      +20 -14    src/lib/libc/net/rcmd.c
  1.2       +5 -1      src/lib/libc/net/recv.c
  1.3       +1 -2      src/lib/libc/net/res_mkupdate.c
  1.39      +14 -12    src/lib/libc/net/res_send.c
  1.3       +1 -2      src/lib/libc/net/res_update.c
  1.2       +5 -1      src/lib/libc/net/send.c
  1.37      +4 -2      src/lib/libc/nls/msgcat.c
  1.5       +8 -6      src/lib/libc/rpc/auth_time.c
  1.13      +9 -7      src/lib/libc/rpc/bindresvport.c
  1.10      +3 -3      src/lib/libc/rpc/clnt_generic.c
  1.13      +3 -1      src/lib/libc/rpc/clnt_simple.c
  1.15      +7 -5      src/lib/libc/rpc/clnt_tcp.c
  1.16      +9 -7      src/lib/libc/rpc/clnt_udp.c
  1.6       +10 -8     src/lib/libc/rpc/clnt_unix.c
  1.19      +6 -4      src/lib/libc/rpc/get_myaddress.c
  1.4       +4 -2      src/lib/libc/rpc/key_call.c
  1.12      +3 -1      src/lib/libc/rpc/pmap_clnt.c
  1.12      +4 -1      src/lib/libc/rpc/pmap_getmaps.c
  1.11      +3 -1      src/lib/libc/rpc/pmap_getport.c
  1.17      +13 -10    src/lib/libc/rpc/pmap_rmt.c
  1.11      +2 -2      src/lib/libc/rpc/rpc_dtablesize.c
  1.6       +8 -6      src/lib/libc/rpc/rtime.c
  1.15      +1 -2      src/lib/libc/rpc/svc.c
  1.4       +2 -1      src/lib/libc/rpc/svc_auth_des.c
  1.11      +5 -3      src/lib/libc/rpc/svc_run.c
  1.19      +13 -11    src/lib/libc/rpc/svc_tcp.c
  1.14      +9 -7      src/lib/libc/rpc/svc_udp.c
  1.8       +13 -11    src/lib/libc/rpc/svc_unix.c
  1.4       +4 -4      src/lib/libc/stdio/_flock_stub.c
  1.8       +4 -2      src/lib/libc/stdio/clrerr.c
  1.9       +12 -4     src/lib/libc/stdio/fclose.c
  1.4       +3 -1      src/lib/libc/stdio/fdopen.c
  1.8       +32 -11    src/lib/libc/stdio/fflush.c
  1.8       +3 -1      src/lib/libc/stdio/fgetc.c
  1.9       +3 -1      src/lib/libc/stdio/fgetpos.c
  1.10      +3 -1      src/lib/libc/stdio/fgets.c
  1.8       +41 -18    src/lib/libc/stdio/findfp.c
  1.7       +3 -2      src/lib/libc/stdio/flags.c
  1.4       +7 -4      src/lib/libc/stdio/fopen.c
  1.8       +3 -1      src/lib/libc/stdio/fpurge.c
  1.8       +3 -1      src/lib/libc/stdio/fputc.c
  1.8       +3 -1      src/lib/libc/stdio/fputs.c
  1.8       +3 -1      src/lib/libc/stdio/fread.c
  1.6       +5 -3      src/lib/libc/stdio/freopen.c
  1.8       +3 -1      src/lib/libc/stdio/fscanf.c
  1.10      +28 -22    src/lib/libc/stdio/fseek.c
  1.12      +3 -1      src/lib/libc/stdio/ftell.c
  1.2       +3 -0      src/lib/libc/stdio/funopen.c
  1.11      +4 -4      src/lib/libc/stdio/fvwrite.c
  1.7       +12 -6     src/lib/libc/stdio/fwalk.c
  1.8       +3 -1      src/lib/libc/stdio/fwrite.c
  1.8       +3 -5      src/lib/libc/stdio/getc.c
  1.8       +3 -1      src/lib/libc/stdio/getchar.c
  1.10      +3 -1      src/lib/libc/stdio/gets.c
  1.2       +25 -17    src/lib/libc/stdio/local.h
  1.2       +6 -2      src/lib/libc/stdio/makebuf.c
  1.21      +3 -1      src/lib/libc/stdio/mktemp.c
  1.4       +5 -1      src/lib/libc/stdio/perror.c
  1.8       +9 -4      src/lib/libc/stdio/putc.c
  1.8       +11 -3     src/lib/libc/stdio/putchar.c
  1.8       +3 -1      src/lib/libc/stdio/puts.c
  1.8       +3 -1      src/lib/libc/stdio/putw.c
  1.9       +2 -1      src/lib/libc/stdio/refill.c
  1.8       +7 -5      src/lib/libc/stdio/rewind.c
  1.8       +3 -1      src/lib/libc/stdio/scanf.c
  1.8       +3 -1      src/lib/libc/stdio/setvbuf.c
  1.10      +3 -1      src/lib/libc/stdio/stdio.c
  1.5       +5 -3      src/lib/libc/stdio/tmpfile.c
  1.8       +28 -20    src/lib/libc/stdio/ungetc.c
  1.12      +3 -2      src/lib/libc/stdio/vasprintf.c
  1.24      +50 -63    src/lib/libc/stdio/vfprintf.c
  1.15      +32 -18    src/lib/libc/stdio/vfscanf.c
  1.8       +3 -1      src/lib/libc/stdio/vscanf.c
  1.13      +3 -2      src/lib/libc/stdio/vsnprintf.c
  1.7       +3 -2      src/lib/libc/stdio/vsprintf.c
  1.7       +5 -3      src/lib/libc/stdio/wbuf.c
  1.6       +16 -17    src/lib/libc/stdlib/abort.c
  1.4       +6 -3      src/lib/libc/stdlib/exit.c
  1.56      +3 -1      src/lib/libc/stdlib/malloc.c
  1.14      +3 -1      src/lib/libc/stdlib/random.c
  1.10      +3 -1      src/lib/libc/stdlib/realpath.c
  1.7       +14 -12    src/lib/libc/stdlib/system.c
  1.8       +4 -0      src/lib/libc/stdtime/asctime.c
  1.5       +4 -0      src/lib/libc/stdtime/difftime.c
  1.26      +77 -109   src/lib/libc/stdtime/localtime.c
  1.28      +3 -1      src/lib/libc/stdtime/strftime.c
  1.19      +10 -15    src/lib/libc/stdtime/strptime.c
  1.11      +6 -2      src/lib/libc/stdtime/timelocal.c
  1.2       +3 -1      src/lib/libc/sys/__error.c
  1.4       +2 -15     src/lib/libc/sys/ftruncate.c
  1.4       +2 -16     src/lib/libc/sys/lseek.c
  1.35      +14 -11    src/lib/libc/yp/yplib.c


  Modified files:
    include              dirent.h stdio.h 
  Log:
  Add a lock to DIR to make telldir and friends MT-safe.
  
  Clean up stdio.h a bit and remove _THREAD_SAFE.  Some of the
  usual macros getc, putc, getchar, putchar are no longer macros.
  
  Approved by:	-arch
  
  Revision  Changes    Path
  1.10      +2 -1      src/include/dirent.h
  1.25      +5 -55     src/include/stdio.h



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101241301.f0OD1mt36593>