summaryrefslogtreecommitdiff
path: root/lib/libc/gen
AgeCommit message (Collapse)Author
2005-05-24Restoration of terminal settings can be broken by a well-timed signal,Todd C. Miller
e.g. a terminating scp killing its ssh child so retry on EINTR. From peak@argo.troja.mff.cuni.cz via portable openssh bugzilla #905
2005-04-02/bin/ksh is now in the builtin list; noticed by otto@Todd C. Miller
2005-04-02Add /bin/ksh to builtin list of OK shells.Todd C. Miller
2005-03-25deregister (and deauto!). ok millert@ marco@Otto Moerbeek
2005-03-08handle snprintf() returning -1.Moritz Jodeit
ok cloder@ henning@ hshoexer@
2005-03-08handle snprintf() returning -1.Moritz Jodeit
ok cloder@ henning@ hshoexer@
2005-03-02Consistent #if protection of rcs ids; Francois PerradTodd C. Miller
2005-03-01Update struct _ftsent to match with fts.h.Marco Pfatschbacher
Input from jaredy@; ok deraadt@, miod@
2005-03-01Set errno right before return(), so that it does not risk being resetMiod Vallat
by any other functions we will invoke in-between. Fix from Andrey Matveev <andrushock@korovino.net>
2005-02-27use PW_SIZE and PW_COPY macros for simplified reading.Patrick Latifi
ok otto millert
2005-02-25Be correct in our man pages when talking about NUL termination (that is,Chad Loder
termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
2005-02-01Replace broken frexp() with a working one from FreeBSD. There'sTodd C. Miller
no need to have a copy for each platform with ieee floating point, only vax needs a special version (which probably has similar bugs). OK and with help from otto@
2005-01-06Replace bcopy() with memcpy() and memmove() so it is obvious whatTodd C. Miller
is a move and what is a copy. Also remove an unneeded variable. No functional change.
2005-01-05Fix handling of memory allocation. Both the initial value of eupOtto Moerbeek
and the new value of bup after realloc() were bogus. This bug has been here since the net.2 days. Additionally, make the initial size of the malloc'ed pieces of mem more sane and kill a redundant test before free(). getcwd(3) is now able to return really long paths. Problem spotted by Peter Philipp <philipp at scan-plus dot de> ok millert@ deraadt@
2005-01-04restrict forwarding to ipsec processed traffic of ip.forwarding==2Markus Friedl
ok deraadt, henning, fgsch, mcbride
2004-12-30SIGSTOP needs .Dv, not .Ev;Jason McIntyre
from freebsd pr docs/75615;
2004-12-17slight sync w/ fbsd;Jason McIntyre
ok marc@ jaredy@ millert@
2004-12-02Restart waitpid() if we are interupted by a signal. OK deraadt@Todd C. Miller
2004-11-25Don't use strlcpy() to copy just part of a string, it make the code tooTodd C. Miller
confusing. While in here make the code more readable. Ok pat@
2004-10-17implement strnunvis(3), a bounded version of strunvis(3). ok millert@Otto Moerbeek
2004-10-07Kill register and fix some whilespace goofs in a do {} while loop.Todd C. Miller
2004-10-01add some missing $, ok djm@ 'That looks fine to me' millert@Jonathan Gray
2004-09-16unused variable killedTheo de Raadt
2004-09-15prettyTheo de Raadt
2004-09-04password databases -> group databases;Jason McIntyre
from netbsd -r 1.20; ok millert@
2004-08-30Use CMSG_SPACE when allocating space for the control message.Todd C. Miller
Fixes fd passing problems on sparc and sparc64. OK henning@
2004-08-10Only expand a tilde for strings like "~", "~/..", "~user" and "~user/".Todd C. Miller
For the PATH, only expand a tilde that is at the beginning of the path name. This is similar to the behavior prior to my commit here yesterday.
2004-08-09Support the "setenv" capability in login.conf ala FreeBSD. FollowingTodd C. Miller
FreeBSD's example, a '~' in an environment variable is replaced with the user's homedir. A '$' is replaced by the user's login name. Both can be escaped with a backslash to get the literal char. OK deraadt@
2004-08-09Add my copyright.Todd C. Miller
2004-08-07Honor vmemoryuse resouce limit if RLIMIT_VMEM is defined.Todd C. Miller
2004-08-06in pclose(), only fclose() a stream if it has been opened by popen(), soPedro Martelletto
that applications doing: 'ok = (pclose(f) != -1) || (fclose(f) == 0)' can work safely and avoid a double-close of a stream. ok millert@
2004-08-03Add support for passing a file descriptor back and forth betweenTodd C. Miller
the parent program and the login script. This will be used by login scripts that need to maintain state, for instance keeping a record locked during authentication while using separate challenge and response authentication with S/Key. OK deraadt@ marius@ henning@
2004-07-28This touches only MI code, and adds new time keeping code. TheThorsten Lockert
code is all conditionalized on __HAVE_TIMECOUNTER, and not enabled on any platforms. adjtime(2) support exists, courtesy of nordin@, sysctl(2) support and a concept of quality for each time source attached exists. High quality time sources exists for PIIX4 ACPI timer as well as some AMD power management chips. This will have to be redone once we actually add ACPI support (at that time we need to use the ACPI interfaces to get at these clocks). ok art@ ken@ miod@ jmc@ and many more
2004-07-17add PD statement. Requested by espie@, OK millert@Marco S Hyman
2004-07-13errno changes, lib major version bumps, and general flag dayMarco S Hyman
To build you must: cd /usr/src && make obj && make includes cd lib/libc && make depend && make && NOMAN=1 sudo make install cd /usr/src && make build
2004-07-07If fts_close() fails and we have not yet seen an error, return -1.Todd C. Miller
2004-07-06Set path in declaration to avoid an ugly cast in fts_open()Todd C. Miller
Set FTS_LOGICAL in flags if we didn't set FTS_PHYSICAL as required by fts(3)
2004-07-02whitespace;Jason McIntyre
2004-07-02deregister, better use of strtoul and always set ERANGE on invalid octalOtto Moerbeek
permission. ok millert@; man page ok jmc@
2004-07-01Initialize cmd when processing octal only. Failing to do that resultsOtto Moerbeek
in rare cases of bogus permissions; noted when using mtree(8) with mmap malloc. ok tdeval@ millert@
2004-06-07major bump to libc and libpthread to break the dependency of aMarco S Hyman
particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
2004-06-03cross-Xref to make pathconf/sysconf easy to find.Marc Espie
twiddling and okay jmc@ millert@
2004-05-18ansify function definitions and zap some `register'Jean-Francois Brousseau
ok millert@
2004-05-07Document _SC_XOPEN_SHM, SEM_NSEMS_MAX and SEM_VALUE_MAX.Todd C. Miller
2004-05-07Implement _SC_SEM_NSEMS_MAX and _SC_SEM_VALUE_MAX.Todd C. Miller
Based on a diff from Jean-GĂ©rard Pailloncy.
2004-05-03XPG specifies bsd_signal(3) so make it an alias for signal(3); OK deraadt@Todd C. Miller
2004-04-30Mention siginterrupt; OK deraadt@Todd C. Miller
2004-04-20kern.maxclusters. ok beck@ deraadt@ jmc@Ted Unangst
2004-04-16more display/list fixes, and a little whitespace;Jason McIntyre
2004-03-31note that hw.cpuspeed displays the current cpu frequency (from cpu(4));Jason McIntyre
ok deraadt@