summaryrefslogtreecommitdiffstats
path: root/libc/misc/utmp
Commit message (Collapse)AuthorAgeFilesLines
* clean up O_CLOEXEC handlingMike Frysinger2009-10-161-19/+4
| | | | | | | | Drop the "#ifndef O_CLOEXEC" cruft, enable O_CLOEXEC in most fcntl.h headers, and import __ASSUME_O_CLOEXEC from glibc. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* not-cancel: use *_not_cancel variants directlyAustin Foxley2009-09-212-41/+0
| | | | | | add a no threads version of not-cancel.h to fallback on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-181-9/+10
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* open_not_cancel macro requires all three argsAustin Foxley2009-09-181-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* wtmp code: style fixes, no code changesDenys Vlasenko2009-09-181-21/+10
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failureDenys Vlasenko2009-09-181-16/+23
| | | | | | | | | | | | | text data bss dec hex filename - 370 0 0 370 172 libc/misc/dirent/opendir.o + 366 0 0 366 16e libc/misc/dirent/opendir.o - 375 4 0 379 17b libc/pwd_grp/lckpwdf.o + 356 4 0 360 168 libc/pwd_grp/lckpwdf.o - 248 0 0 248 f8 librt/shm.o + 209 0 0 209 d1 librt/shm.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* utent.c: fix a few bugs, and shrink a bitDenys Vlasenko2009-09-181-58/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug #1: static_fd = -1; close(static_fd); DOH! bug #2: if (utmp_fd == -1) { __setutent(); } if (utmp_fd == -1) { return NULL; } if utmp_fd == -1, we call _setutent(). if __setutent() opens a fd, utmp_fd (a parameter) wouldn't change, the second check is bogus. We need to use static_fd instead in second check. Which makes clear that having utmp_fd parameter is wrong. See the patch for a complete fix. Shrink comes from simplifying fcntl(static_fd, F_SETFD, FD_CLOEXEC): text data bss dec hex filename - 661 8 384 1053 41d libc/misc/utmp/utent.o + 604 8 384 996 3e4 libc/misc/utmp/utent.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* support building out-of-treeBernhard Reutner-Fischer2009-08-191-0/+2
| | | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Get non nptl threads compiled on x86.Khem Raj2008-12-231-4/+0
|
* Synch with trunk @ 24165Carmelo Amoroso2008-11-272-12/+12
| | | | | Step 17: libc_hidden_proto removal (almost all). and other minor changes (inline keyword, extra character)
* Synch with trunk @ 24087Carmelo Amoroso2008-11-182-2/+2
| | | | Step 10: libc_hidden_removal
* Synch with trunk @ 24075.Carmelo Amoroso2008-11-171-4/+4
| | | | | Step 5 Various Makefile.in
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-092-58/+72
| | | | NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix Makefile.in and synch them with trunk. Signed-off-by: Carmelo Amoroso ↵Carmelo Amoroso2007-11-201-2/+0
| | | | <carmelo.amoroso@st.com>
* Merge from trunk and bring in NPTL code in the various 'misc' subsystems."Steven J. Hill"2006-08-243-1/+53
|
* Merge from trunk."Steven J. Hill"2006-02-283-76/+78
|
* Big fricking merge from trunk."Steven J. Hill"2006-01-072-8/+8
|
* Merge from trunk."Steven J. Hill"2005-12-101-0/+2
|
* Merge from trunk."Steven J. Hill"2005-12-081-26/+21
|
* Big merge from trunk. Stop the madness!"Steven J. Hill"2005-12-062-7/+4
|
* Merge from trunk. More to come you betcha'."Steven J. Hill"2005-12-023-56/+26
|
* Mini-merge from trunk. Not as fun as a Mini Cooper, but oh well."Steven J. Hill"2005-12-011-2/+5
|
* Massive merge from trunk."Steven J. Hill"2005-11-171-1/+0
|
* Copy from trunk."Steven J. Hill"2005-10-301-0/+26
|
* merge parallel build supportMike Frysinger2005-01-251-4/+4
|
* Revert Peter's __lib_gettimeofday patch. There's the minor issue ofManuel Novoa III2004-10-311-1/+1
| | | | | | adding cruft to include/sys/time.h. But also, there's no sense in making changes like this until we decide how we're going to approach the hidden symbol transition.
* Peter S. Mazinger writes:Eric Andersen2004-10-191-1/+1
| | | | | | | | | | | Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
* 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.
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-1/+1
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* 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-173-90/+210
| | | | | | 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-152-2/+14
|
* Don't print an error if the utmp file doesn't exist, getutent will returnDavid McCullough2002-01-171-1/+0
| | | | NULL as expected.
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-191-0/+1
|
* Update to accomodate the header file changesEric Andersen2001-09-271-5/+7
|
* Ok, this should finish off my massive ro-organization. The sourceEric Andersen2001-05-121-2/+1
| | | | | | | | | tree is less messy now (which helps), all libraries are placed into uClibc/lib when compiling, all libraries now use a consistant mechanism for being built, all libraries use a consistant naming scheme where the lib name includes the uClibc version number, which makes ldconfig happy and willing to work with us. -Erik
* Move stuff out if pwd_gep that doesn't belong there (getpass, utmp stuff)Eric Andersen2000-12-232-0/+178