From owner-cvs-lib Fri Apr 10 23:58:15 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA19772 for cvs-lib-outgoing; Fri, 10 Apr 1998 23:58:15 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA19540; Fri, 10 Apr 1998 23:57:47 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id XAA29836; Fri, 10 Apr 1998 23:57:34 -0700 (PDT) Date: Fri, 10 Apr 1998 23:57:34 -0700 (PDT) Message-Id: <199804110657.XAA29836@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/include libc_private.h Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/04/10 23:57:34 PDT Added files: lib/libc/include libc_private.h Log: Add a private header file for libc/libc_r/libpthread to contain definitions for things like locking etc. From owner-cvs-lib Sat Apr 11 00:03:27 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA21511 for cvs-lib-outgoing; Sat, 11 Apr 1998 00:03:27 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA21431; Sat, 11 Apr 1998 00:03:12 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA29903; Sat, 11 Apr 1998 00:02:59 -0700 (PDT) Date: Sat, 11 Apr 1998 00:02:59 -0700 (PDT) Message-Id: <199804110702.AAA29903@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/stdlib exit.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/04/11 00:02:59 PDT Modified files: lib/libc/stdlib exit.c Log: Add a global variable called __isthreaded that can be tested throughout libc to determine if locking is required. This is needed in libc for use with kernel threads, but until a thread is created, we don't really want to bother locking things. The variable was added here because the crt code calls exit(main()) so all programs will get the variable. Revision Changes Path 1.2 +9 -0 src/lib/libc/stdlib/exit.c From owner-cvs-lib Sat Apr 11 00:29:33 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA27623 for cvs-lib-outgoing; Sat, 11 Apr 1998 00:29:33 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA27483; Sat, 11 Apr 1998 00:29:06 -0700 (PDT) (envelope-from phk@FreeBSD.org) From: Poul-Henning Kamp Received: (from phk@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA29966; Sat, 11 Apr 1998 00:28:54 -0700 (PDT) Date: Sat, 11 Apr 1998 00:28:54 -0700 (PDT) Message-Id: <199804110728.AAA29966@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libftpio ftpio.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk phk 1998/04/11 00:28:53 PDT Modified files: lib/libftpio ftpio.c Log: Correctly figure out that the remove cannot do passive mode. PR: 6259 Reviewed & slightly modified by: phk Submitted by: Archie Cobbs Revision Changes Path 1.30 +3 -1 src/lib/libftpio/ftpio.c From owner-cvs-lib Sat Apr 11 00:38:09 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA29884 for cvs-lib-outgoing; Sat, 11 Apr 1998 00:38:09 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA29737; Sat, 11 Apr 1998 00:37:57 -0700 (PDT) (envelope-from phk@FreeBSD.org) From: Poul-Henning Kamp Received: (from phk@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA00265; Sat, 11 Apr 1998 00:37:44 -0700 (PDT) Date: Sat, 11 Apr 1998 00:37:44 -0700 (PDT) Message-Id: <199804110737.AAA00265@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/stdlib atof.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk phk 1998/04/11 00:37:44 PDT Modified files: lib/libc/stdlib atof.3 Log: Remove a nolonger implented "BUGS" description. PR: 6240 Reviewed by: phk Submitted by: Niall Smart rotel@indigo.ie Revision Changes Path 1.2 +0 -14 src/lib/libc/stdlib/atof.3 From owner-cvs-lib Sat Apr 11 00:41:16 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA00771 for cvs-lib-outgoing; Sat, 11 Apr 1998 00:41:16 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA00634; Sat, 11 Apr 1998 00:41:03 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA00617; Sat, 11 Apr 1998 00:40:50 -0700 (PDT) Date: Sat, 11 Apr 1998 00:40:50 -0700 (PDT) Message-Id: <199804110740.AAA00617@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/stdio _flock_stub.c Makefile.inc clrerr.c fclose.c fflush.c fgetc.c fgetpos.c fgets.c fpurge.c fputc.c fputs.c fread.c fscanf.c fseek.c ftell.c fwrite.c getc.c getchar.c putc.c putchar.c puts.c putw.c rewind.c scanf.c setvbuf.c ungetc.c ... Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/04/11 00:40:50 PDT Modified files: lib/libc/stdio Makefile.inc clrerr.c fclose.c fflush.c fgetc.c fgetpos.c fgets.c fpurge.c fputc.c fputs.c fread.c fscanf.c fseek.c ftell.c fwrite.c getc.c getchar.c putc.c putchar.c puts.c putw.c rewind.c scanf.c setvbuf.c ungetc.c vfprintf.c vscanf.c Added files: lib/libc/stdio _flock_stub.c Log: 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. Revision Changes Path 1.14 +11 -3 src/lib/libc/stdio/Makefile.inc 1.6 +4 -11 src/lib/libc/stdio/clrerr.c 1.6 +4 -11 src/lib/libc/stdio/fclose.c 1.6 +4 -11 src/lib/libc/stdio/fflush.c 1.6 +4 -11 src/lib/libc/stdio/fgetc.c 1.6 +4 -11 src/lib/libc/stdio/fgetpos.c 1.8 +6 -17 src/lib/libc/stdio/fgets.c 1.6 +4 -11 src/lib/libc/stdio/fpurge.c 1.6 +4 -11 src/lib/libc/stdio/fputc.c 1.6 +4 -11 src/lib/libc/stdio/fputs.c 1.6 +5 -11 src/lib/libc/stdio/fread.c 1.6 +4 -11 src/lib/libc/stdio/fscanf.c 1.7 +10 -26 src/lib/libc/stdio/fseek.c 1.9 +5 -14 src/lib/libc/stdio/ftell.c 1.6 +4 -11 src/lib/libc/stdio/fwrite.c 1.6 +4 -11 src/lib/libc/stdio/getc.c 1.6 +4 -11 src/lib/libc/stdio/getchar.c 1.6 +4 -11 src/lib/libc/stdio/putc.c 1.6 +4 -11 src/lib/libc/stdio/putchar.c 1.6 +4 -11 src/lib/libc/stdio/puts.c 1.6 +4 -11 src/lib/libc/stdio/putw.c 1.6 +4 -11 src/lib/libc/stdio/rewind.c 1.6 +4 -11 src/lib/libc/stdio/scanf.c 1.6 +5 -14 src/lib/libc/stdio/setvbuf.c 1.6 +9 -26 src/lib/libc/stdio/ungetc.c 1.18 +6 -17 src/lib/libc/stdio/vfprintf.c 1.6 +4 -11 src/lib/libc/stdio/vscanf.c From owner-cvs-lib Sat Apr 11 00:47:45 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA01462 for cvs-lib-outgoing; Sat, 11 Apr 1998 00:47:45 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA01386; Sat, 11 Apr 1998 00:47:37 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA00678; Sat, 11 Apr 1998 00:47:24 -0700 (PDT) Date: Sat, 11 Apr 1998 00:47:24 -0700 (PDT) Message-Id: <199804110747.AAA00678@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_create.c uthread_file.c uthread_info.c uthread_kern.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jb 1998/04/11 00:47:23 PDT Modified files: lib/libc_r/uthread pthread_private.h uthread_create.c uthread_file.c uthread_info.c uthread_kern.c Log: Change the FILE locking to be by FILE, not by the underlying fd as it was. Add a FILE_WAIT state and queue threads waiting for a FILE lock. Start using the sys/queue.h macros instead of the way that MIT pthreads did it. Add a thread name to the private thread structure and a non-POSIX function to set this. This helps (me at least) when sending a SIGINFO to a threaded process to get a /tmp/uthread.dump to see what the threads are doing this time. It is nice to be able to recognise (yes, I spell that with an 's' too) which threads are which. Revision Changes Path 1.9 +9 -2 src/lib/libc_r/uthread/pthread_private.h 1.8 +7 -0 src/lib/libc_r/uthread/uthread_create.c 1.2 +282 -48 src/lib/libc_r/uthread/uthread_file.c 1.3 +19 -8 src/lib/libc_r/uthread/uthread_info.c 1.8 +4 -1 src/lib/libc_r/uthread/uthread_kern.c