summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
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-05- Remove the userland data limit check. It's mmap(2)'s job.Thierry Deval
- When malloc_abort==0 (MALLOC_OPTIONS=a), don't abort in wrterror(). fine deraadt@
2004-08-04Missing check for NULL.Thierry Deval
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-08-03It's not really possible to make strtonum() deal with unsigned longTodd C. Miller
long values properly so don't bother trying. This greatly simplifies the code. tedu@ OK with input from otto@ and others.
2004-08-02Fix typo (SIGEV_EVENT -> SIGEV_KEVENT)Brad Smith
From FreeBSD
2004-08-02s/kqueue/kevent/ in correct place.Brad Smith
From FreeBSD
2004-08-01After a long gestation period, here comes our custom version of malloc(3)Thierry Deval
using mmap(2) instead of sbrk(2). To make a long story short, using mmap(2) in malloc(3) allows us to draw all the benefits from our mmap(2)'s randomization feature, closing the effort we did for returning memory blocks from random addresses. Tested for a long time by many, thanks to them. Go for it ! deraadt@
2004-07-29we no longer need to query ip6.int for reverse lookup. pvalchev okJun-ichiro itojun Hagino
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-28Use less stack space for temporary storage and C code invocation, afterMiod Vallat
the ABI change.
2004-07-28Update stack frame processing after ABI change.Miod Vallat
2004-07-26- change some lists from -column to -tag (-column not needed) and adjustJason McIntyre
for a decent -width - document MSG_DONTWAIT (from FreeBSD) - simplify macros - document EHOSTUNREACH, EHOSTDOWN, and ENETDOWN; spotted by henning@ - .Xr connect 2 ok henning@ millert@
2004-07-24Xr _Exit(3)Todd C. Miller
2004-07-22typo;Jason McIntyre
2004-07-22Do not overallocate stack space, and keep the stack on a 16-byte boundary.Miod Vallat
2004-07-18fix memory leak; ok millert@ tdeval@Jakob Schlyter
2004-07-18return EINVAL if ftruncate(2) is passed a negative offsetAnil Madhavapeddy
ok millert@, miod@, marius@
2004-07-17add PD statement. Requested by espie@, OK millert@Marco S Hyman
2004-07-17remove K&R stub supportTheo de Raadt
2004-07-16Do not forget to test the lower bound if the upper bound > LLONG_MAX.Otto Moerbeek
ok millert@
2004-07-16Avoid comparing unsigned and signed long longs since the signedTodd C. Miller
one will get implicitly cast to unsigned. Fixes a bug with negative minval noticed by mjc@. Similar to a diff from miod@. OK miod@.
2004-07-15remove references to removed pages: clnp(4), esis(4), and iso(4);Jason McIntyre
2004-07-15add minimal __syscall() proto for lintTheo de Raadt
2004-07-14MAXNAMELEN -> MAXNAMLENJean-Francois Brousseau
ok jmc@
2004-07-13Remove iso_addr() and iso_ntoa() as part of the netiso removal.Todd C. Miller
From henning@, OK deraadt@
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-13Sync with NetBSD, picking up fixes to correctly reset status bits returningMark Kettenis
the old status bits. ok deraadt@
2004-07-10typo; from patrick latifiJakob Schlyter
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-05update(8) is an in-kernel process;Jason McIntyre
from jared yanovich;
2004-07-05typo from jared yanovich;Jason McIntyre
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-02kill dead .Xr to memory(3);Jason McIntyre
from kjell@
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-28merge in tzcode2004aTodd C. Miller
2004-06-26wording and formatting from jared yanovich;Jason McIntyre
2004-06-24change note as to when thread lib needs updating. OK deraadt@Marco S Hyman
2004-06-24hsearch API/ABI u_int -> size_t -> crank majors; ok millertTheo de Raadt
2004-06-24Working hcreate(3) et al from NetBSD (cgd) via ray at cyth dot net.Todd C. Miller
Now passes the regress tests.
2004-06-22Cosmetic clean-up.Marc Espie
Simpler licence, update copyright years, trim empty lines, ISO declarations. okay miod@
2004-06-22Make the `filename' parameter to HASHFile() and HASHFileChunk() constJean-Francois Brousseau
ok pedro@, millert@
2004-06-21another errno -> err in a structure. OK deraadt@Marco S Hyman
2004-06-21errno -> err in a structure. OK deraadt@Marco S Hyman