Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Kill outdated comment. | 2015-05-25 | 1 | -2/+2 | |
| | | | | ok eric@ | ||||
* | Skip search domains iteration if RES_DNSRCH and/or RES_DEFNAMES is unset. | 2015-05-25 | 2 | -4/+13 | |
| | | | | | prodded by Brad ok jca@ | ||||
* | getnameinfo(3) doesn't need to initialize the resolver when it's only used | 2015-05-25 | 1 | -1/+150 | |
| | | | | | | for address/port formatting (e.g. NI_NUMERICHOST). ok deraadt@ jca@ | ||||
* | swap calloc() arguments for clarity | 2015-05-18 | 1 | -2/+2 | |
| | |||||
* | Of course, fcntl errno case returns -1, which must be converted to 0 | 2015-05-17 | 1 | -2/+2 | |
| | | | | with guenther | ||||
* | isatty() is used by stdio to determine the buffering mode. Add a F_ISATTY | 2015-05-17 | 1 | -6/+3 | |
| | | | | | | | option to fcntl(), so that isatty() can use this rather than than the bloated ioctl() interface. Reducing uses of ioctl() by libc makes it easier to constrain programs with various kinds of systrace sandboxes. ok guenther, previously discussed as a concept with nicm | ||||
* | Use fcntl() to set non-blocking-mode, rather ioctl(). This has a better | 2015-05-17 | 1 | -4/+20 | |
| | | | | | chance of working in systrace restricted environments. ok guenther | ||||
* | Make index/rindex weak aliases of strchr/strrchr since they are not | 2015-05-15 | 21 | -126/+44 | |
| | | | | | part of the ISO C standard and have also been dropped from POSIX. OK guenther@ kettenis@ | ||||
* | Use STRONG_ALIAS instead of ALTENTRY. | 2015-05-14 | 2 | -4/+6 | |
| | | | | ok millert@ | ||||
* | rev 1.3 introduced a check to an if statement without adding braces. | 2015-05-14 | 1 | -3/+1 | |
| | | | | | | | Claudio points out the size is checked by an earlier test so just remove it to restore the original handling of the partial octet case. Discussed with claudio and gilles. | ||||
* | If crypt(3) is called with an unknown setting, return NULL instead | 2015-05-13 | 1 | -1/+3 | |
| | | | | | of some undefined value. OK tedu@ | ||||
* | Add dlclose(3) to SEE ALSO | 2015-05-12 | 1 | -2/+3 | |
| | | | | ok millert@ jmc@ schwarze@ | ||||
* | Put the right number of leading underscores in ___cerror and __cerror, for | 2015-05-12 | 1 | -2/+3 | |
| | | | | | the sake of libpthread. Probably missed during the a.out->ELF switch, I can't believe this went unnoticed for so long. | ||||
* | chflagsat() is also async-signal-safe | 2015-05-12 | 2 | -4/+6 | |
| | |||||
* | Whoops, need to pass through O_ACCMODE flags to the underlying __*_open() | 2015-05-11 | 1 | -3/+3 | |
| | | | | problem pointed out by Mark Patruck (mark (at) wrapped.cx) | ||||
* | When checking flags that will be passed to open(), test the O_ACCMODE portion | 2015-05-11 | 3 | -8/+13 | |
| | | | | | | separately to avoid false negatives. ok miod@ millert@ | ||||
* | fix a fd leak in an error path in code under #ifdef DEBUG | 2015-05-06 | 1 | -1/+2 | |
| | |||||
* | AI_ADDRCONFIG: skip loopback addresses, not loopback interfaces. | 2015-05-05 | 1 | -4/+10 | |
| | | | | | | | This is what RFC3493 suggests. Fixes AI_ADDRCONFIG on setups where global addresses are configured only on loopback interfaces. Discussed with and ok eric@ gilles@ | ||||
* | Move the AI_ADDRCONFIG setup to its own function. | 2015-05-05 | 1 | -18/+41 | |
| | | | | Input from and ok gilles@ eric@ | ||||
* | Make argument name consistent and use .Fn rather than .Nm in section 3. | 2015-05-05 | 1 | -5/+5 | |
| | | | | Patch from <Kaspars at Bankovskis dot net>. | ||||
* | Document that shm_open() accepts O_CLOEXEC and O_NOFOLLOW as extensions | 2015-05-05 | 1 | -3/+10 | |
| | | | | ok miod@ | ||||
* | Use the size of the buffer not the pointer in a call to mem_free(). | 2015-05-04 | 1 | -2/+2 | |
| | | | | ok miod@ and guenther@ who both pointed out this argument is unused. | ||||
* | Cut the aliases part of /etc/rpc lines before feeding them to strtonum(), for | 2015-04-25 | 1 | -6/+7 | |
| | | | | it will fail otherwise; ok deraadt@ millert@ | ||||
* | Eliminate the last uses of *fork's second syscall return register; the pid | 2015-04-21 | 2 | -6/+6 | |
| | | | | | | is zero in the child ok deraadt@ miod@ | ||||
* | Convert many atoi() calls to strtonum(), adding range checks and failure | 2015-04-18 | 1 | -2/+6 | |
| | | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert | ||||
* | Tweaks utimensat/futimens handling to always update ctime, even when both | 2015-04-17 | 1 | -14/+11 | |
| | | | | | | | atime and mtime are UTIME_OMIT (at least for ufs, tmpfs, and ext2fs), and to correctly handle a timestamp of -1. ok millert@ | ||||
* | Another couple of commas in the wrong place, ok jmc | 2015-04-14 | 1 | -3/+3 | |
| | |||||
* | Fix sa_sigaction() handler example. The third argument is void * and | 2015-04-14 | 1 | -9/+15 | |
| | | | | should be cast to ucontext_t * to actually use it. OK deraadt@ | ||||
* | Let nl_langinfo(CODESET) return "US-ASCII" as the name of the | 2015-04-12 | 1 | -1/+1 | |
| | | | | | | | | | | character codeset for the POSIX/C default locale. This is the preferred IANA name and also used by FreeBSD. The previous value "646" was an obscure reference to ISO 646 (= ASCII) and was not recognized by GNU iconv out of the box. ok millert@, stsp@ | ||||
* | Add support for setting tm_zone now that we have the timezone symbol. | 2015-04-07 | 1 | -4/+5 | |
| | |||||
* | Remove obsolete timezone() function. | 2015-04-07 | 5 | -202/+7 | |
| | | | | Add timezone and daylight symbols for XSI compatibility. | ||||
* | Make pthread_atfork() track the DSO that called it like atexit() does, | 2015-04-07 | 35 | -64/+436 | |
| | | | | | | | | | | unregistering callbacks if the DSO is unloaded. Move the callback handling from libpthread to libc, though libpthread still overrides the inner call to handle locking and thread-library reinitialization. Major version bump for both libc and libpthread. verification that this fixes various ports ajacoutot@ asm assistance miod@; ok millert@ deraadt@ | ||||
* | bludgeon DES support out of crypt. long live the bcrypt. | 2015-04-06 | 2 | -761/+9 | |
| | |||||
* | improve realloc. when expanding a region, actually use the free page cache | 2015-04-06 | 1 | -7/+16 | |
| | | | | | instead of simply zapping it. this can save many syscalls in a program that repeatedly grows and shrinks a buffer, as observed in the wild. | ||||
* | tidy up by inlining next level included makefiles | 2015-04-06 | 7 | -51/+38 | |
| | | | | ok deraadt guenther | ||||
* | seems unlikely that a new release will be made available for us to import | 2015-04-05 | 2 | -68/+1 | |
| | |||||
* | Stop encoding the syscall number in the swi instruction - this has been | 2015-03-31 | 1 | -4/+3 | |
| | | | | | | | unused for around 8 years, when the kernel ABI was changed to use the syscall number specified in r12. ok miod@ jsg@ | ||||
* | Simplify fork/vfork logic: the kernel has handled returning zero in the child | 2015-03-31 | 24 | -243/+43 | |
| | | | | | | | for a long time, so there's no need to test the second return register here in the asm stub. ok and testing of many archs by krw@ miod@ | ||||
* | Use -> instead of a right arrow when referring to C's -> operator. | 2015-03-26 | 1 | -3/+3 | |
| | | | | with input from jmc@ schwarze@ | ||||
* | Make rcmdsh(3) not fail if it is passed a non resolvable hostname. | 2015-03-23 | 3 | -20/+16 | |
| | | | | | | | Instead, silently ignore the fact and instead let the underlying ssh (or $RSH) command handle it. ok millert@ | ||||
* | fix memory leaks in tempnam(3) error paths | 2015-03-23 | 1 | -5/+6 | |
| | | | | ok miod@ millert@ krw@ guenther@ | ||||
* | differentiate between a failed read, returning -1, and encountering | 2015-03-22 | 1 | -2/+4 | |
| | | | | | | | end-of-file, returning 0, in order not to print an unrelated strerror(errno) in the latter case ok millert@ | ||||
* | Resolve a mandoc -Tlint warning about trailing whitespace. | 2015-03-22 | 1 | -2/+2 | |
| | |||||
* | More wide character string function man page improvements based on feedback | 2015-03-22 | 3 | -24/+15 | |
| | | | | by Kaspars Bankovskis. ok jmc@ | ||||
* | unmute rcmd hostname lookup failure | 2015-03-22 | 1 | -3/+2 | |
| | | | | ok millert@ jung@ | ||||
* | according to javad kouhi, freebsd pr #198612, vfork appeared first in bsd 3.0; | 2015-03-21 | 1 | -3/+3 | |
| | | | | thanks sobrado for verifying (and okaying this) | ||||
* | zap #if 0'd code that's been dead since '96 | 2015-03-19 | 1 | -7/+0 | |
| | | | | ok todd@ | ||||
* | better wording, from andre smagin; ok stsp | 2015-03-19 | 3 | -12/+12 | |
| | |||||
* | use 4x buffer size for opendir. speeds up large directory reading, and | 2015-03-18 | 1 | -2/+2 | |
| | | | | | increased memory use is minimal. ok deraadt logan | ||||
* | TZ_MAX_CHARS in the old tzfile.h bears no resemblence to the actual | 2015-03-14 | 1 | -3/+3 | |
| | | | | | | max time zone length used by libc/time. Just use PATH_MAX for now (since zone files are path names). This function is slated to be removed at the next libc major bump. |