Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | in glob() initialize the glob_t before the first failure check. | 2015-06-13 | 1 | -4/+4 | ||
| | | | | | from j@pureftpd.org ok millert stsp | |||||
* | Reuse SYSENTRY_HIDDEN() in SYSENTRY(); no functional changes. | 2015-06-12 | 1 | -2/+2 | ||
| | ||||||
* | Remove unused parameter of load_locale_sub(). No assembly change on i386. | 2015-06-09 | 1 | -4/+4 | ||
| | | | | Diff from Sebastien Marie. objdump foo help from uwe | |||||
* | At some point arm moved to a unified syntax for arm and thumb instructions. | 2015-06-08 | 2 | -37/+41 | ||
| | | | | | | | | | While binutils supports both "unified" and "divided" syntax (defaulting to divided) the integrated assembler in clang only supports unified names so switch some files to unified syntax. Similiar changes were made in bitrig and freebsd. No difference in objdump -d output. tested on zaurus by deraadt@, ok miod@ | |||||
* | force reseeding if pid has changed. | 2015-06-04 | 1 | -2/+7 | ||
| | | | | ok deraadt@ | |||||
* | make sure to check for resolv.conf update the first time the resolver | 2015-06-04 | 2 | -2/+11 | ||
| | | | | | | is used after pid has changed. ok deraadt@ | |||||
* | snprintf(3) is available on all modern systems and asprintf(3) is | 2015-06-03 | 1 | -6/+4 | ||
| | | | | available on more systems these days. OK deraadt@ | |||||
* | Do not assume that asprintf() clears the pointer on failure, which | 2015-06-03 | 2 | -6/+12 | ||
| | | | | | is non-portable. Also add missing asprintf() return value checks. OK deraadt@ guenther@ doug@ | |||||
* | write Mobile IP{,v6} in a consistent way, as given in RFCs 5944 and 6275. | 2015-06-02 | 1 | -3/+3 | ||
| | | | | ok jmc@ | |||||
* | Since the __{div,rem}{l,q}{,u} special libc entry points use a specific | 2015-06-01 | 1 | -7/+46 | ||
| | | | | | | | | | | | calling convention which conflicts over t11 usage with the secureplt calling convention, force these symbols to be `notype' rather `function', so that the linker will not attempt to use plt relocations for them in the absence of explicit relocation information. Note that these symbols are still public and still callable with the old plt convention, so existing binaries will still work with an updated libc, and no libc version change is necessary. | |||||
* | Put END() matching _ENTRY() (== ENTRY() w/o prof). | 2015-06-01 | 1 | -1/+2 | ||
| | ||||||
* | Put END() matching ENTRY(). | 2015-06-01 | 1 | -1/+2 | ||
| | ||||||
* | Simple macro fixes (Fd -> In, Nm -> Fn) from Kaspars at Bankovskis dot net. | 2015-05-31 | 12 | -70/+70 | ||
| | | | | No content change. | |||||
* | Put END() where appropriate. | 2015-05-29 | 4 | -10/+12 | ||
| | | | | While here, kill redundant use of _C_LABEL() in ENTRY(). | |||||
* | Put obvious END() macros that match ENTRY() entries. | 2015-05-29 | 12 | -12/+51 | ||
| | ||||||
* | fix a possible off-by-one when reading /etc/hosts if it doesn't end | 2015-05-29 | 5 | -13/+20 | ||
| | | | | | | with a newline. ok jca@ | |||||
* | Sprinkle END() in some straightforward *.S files that have ENTRY(). The | 2015-05-29 | 10 | -5/+17 | ||
| | | | | resulting *.o have "FUNC" symbols with size set. | |||||
* | Bring back `1:' label removed by mistake in 1.7. Complained loudly about by gas | 2015-05-26 | 1 | -2/+2 | ||
| | | | | 2.17, while 2.15 didn't care, which just caused a cold shiver accross my spine. | |||||
* | simply use _PATH_HOSTS where appropriate | 2015-05-26 | 5 | -13/+7 | ||
| | ||||||
* | 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. |