summaryrefslogtreecommitdiffstats
path: root/libc/misc/utmp/utent.c
Commit message (Collapse)AuthorAgeFilesLines
* some more fixes from rholzmann in Bug 716 ... make sure the code actually ↵Mike Frysinger2006-03-221-21/+41
| | | | functions, then we worry about shrinking it ...
* make sure we reset static_fd after it's closed in utmpname()Mike Frysinger2006-02-151-2/+2
|
* fix fcntl() call so that it actually forces file to be closed on exec()Mike Frysinger2006-02-151-1/+1
|
* rholzmann writes in Bug 716:Mike Frysinger2006-02-111-13/+12
| | | | utent.c has a few problems with mutex locking when used in a binary that was linked with pthreads. The are a few deadlock conditions where functions may be called which lock the utmplock but never release it and where a function that hold the lock calls other functions which try to relock the same lock. For example, notice in the __getutent function the error condition does not unlock the semaphore. The problem is not visible when pthreads isn't used since the lock/unlock functions are NOOP functions.
* make gcc4 happy w/ hidden_def/proto, correct some typosPeter S. Mazinger2006-01-151-3/+4
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-21/+30
| | | | missing headers, other jump relocs removed
* Convert all users of earlier hiddensPeter S. Mazinger2005-12-131-6/+6
|
* Hide morePeter S. Mazinger2005-12-071-26/+21
|
* macro out the thread funcs in libc if threading is disabledMike Frysinger2005-12-061-6/+3
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-11/+11
|
* Correct typoPeter S. Mazinger2005-11-291-1/+1
|
* Hiding againPeter S. Mazinger2005-11-291-2/+5
|
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-271-2/+2
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* Remove some noiseEric Andersen2002-08-071-13/+0
|
* Do not assume NULL termination on the ut_id field. ThanksEric Andersen2002-07-161-1/+1
| | | | to mac12@po.cwru.edu for spotting this one.
* Some cleanups so utmp/wtmp behaves. Fix potential use ofEric Andersen2002-06-171-89/+149
| | | | | | uninitialized memory. Prepare to reentrantify the utmp stuff. -Erik
* Richard June <rjune@bravegnuworld.com> noticed that pututlineEric Andersen2002-04-031-6/+4
| | | | | | was only writing the first sizeof-a-pointer bytes to the utmp file. oops. -Erik
* Richard June <rjune@bravegnuworld.com> noticed that setutentEric Andersen2002-04-031-1/+1
| | | | was only opening utmp readonly. Oops.
* Add missing updwtmp() and fix broken makefileEric Andersen2002-03-151-0/+12
|
* Don't print an error if the utmp file doesn't exist, getutent will returnDavid McCullough2002-01-171-1/+0
| | | | NULL as expected.
* Update to accomodate the header file changesEric Andersen2001-09-271-5/+7
|
* Move stuff out if pwd_gep that doesn't belong there (getpass, utmp stuff)Eric Andersen2000-12-231-0/+135