diff options
author | jb <jb@FreeBSD.org> | 1998-04-11 07:40:47 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-04-11 07:40:47 +0000 |
commit | 0ff63017b40dda207b2aadc9881e0c93e7fd2753 (patch) | |
tree | 4819eff8a5c9bc5ae04aaf772d0d5b4f7bfaaebc /lib/libc/stdio/Makefile.inc | |
parent | 525c97c21dbcb3fd61a8a530a3f8df5e901bf1ab (diff) | |
download | FreeBSD-src-0ff63017b40dda207b2aadc9881e0c93e7fd2753.zip FreeBSD-src-0ff63017b40dda207b2aadc9881e0c93e7fd2753.tar.gz |
Add FILE locking stubs for libc.
Change the FILE locking to support kernel threads when linked with
libpthread (which you haven't see yet). This requires that libc become
thread-safe and thread-aware, testing __isthreaded before attempting
to do lock/unlock calls. The impact on non-threaded programs is minor.
This change works with libc_r, so it's the best compromise.
Diffstat (limited to 'lib/libc/stdio/Makefile.inc')
-rw-r--r-- | lib/libc/stdio/Makefile.inc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/libc/stdio/Makefile.inc b/lib/libc/stdio/Makefile.inc index dbceec4..3e5ecf1 100644 --- a/lib/libc/stdio/Makefile.inc +++ b/lib/libc/stdio/Makefile.inc @@ -1,10 +1,11 @@ # @(#)Makefile.inc 8.3 (Berkeley) 4/17/94 -# $Id: Makefile.inc,v 1.12 1998/02/13 02:13:23 imp Exp $ +# $Id: Makefile.inc,v 1.13 1998/03/12 12:05:14 bde Exp $ # stdio sources .PATH: ${.CURDIR}/../libc/stdio -SRCS+= asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c fflush.c \ +SRCS+= _flock_stub.c \ + asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c fflush.c \ fgetc.c fgetln.c fgetpos.c fgets.c fileno.c findfp.c flags.c fopen.c \ fprintf.c fpurge.c fputc.c fputs.c fread.c freopen.c fscanf.c \ fseek.c fsetpos.c ftell.c funopen.c fvwrite.c fwalk.c fwrite.c \ @@ -12,9 +13,16 @@ SRCS+= asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c fflush.c \ printf.c putc.c putchar.c puts.c putw.c refill.c remove.c rewind.c \ rget.c scanf.c setbuf.c setbuffer.c setvbuf.c snprintf.c sprintf.c \ sscanf.c stdio.c tempnam.c tmpfile.c tmpnam.c ungetc.c vasprintf.c \ - vfprintf.c vfscanf.c vprintf.c vscanf.c vsnprintf.c vsprintf.c \ + vfscanf.c vprintf.c vscanf.c vsnprintf.c vsprintf.c \ vsscanf.c wbuf.c wsetup.c +.if defined(NETBSD_SYSCALLS) +# XXX Temporary until FreeBSD's vfprintf is ported +SRCS+= netbsd_vfprintf.c +.else +SRCS+= vfprintf.c +.endif + .if ${LIB} == "c" MAN3+= fclose.3 ferror.3 fflush.3 fgetln.3 fgets.3 fopen.3 fputs.3 \ fread.3 fseek.3 funopen.3 getc.3 mktemp.3 printf.3 putc.3 remove.3 \ |