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