summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2017-08-22Remove mpool.libtp, it was part of the Berkeley DB tarball but notTodd C. Miller
present int the CSRG libc. It is only of historical interest and, given the amount of time passed, probably not even that anymore. OK deraadt@, prodded by miod@
2017-08-20two MALLOC_STATS only tweaks; one from David CARLIER, the other found by clangOtto Moerbeek
2017-08-19Use 0xcc trapsleds instead of default/nop/0xcc in BTC alignmentsTheo de Raadt
2017-08-19Don't need .text before ENTRY(), also minor spacing cleanupsTheo de Raadt
2017-08-19Put _map table into .rodata instead of .textTheo de Raadt
2017-08-15s/DEF_STD/DEF_STRONG/ to match namespace.h differences between librthreadPhilip Guenther
and libc
2017-08-15Wrap <sched.h> and <sys/futex.h> so that internal calls go directPhilip Guenther
2017-08-15Sort headers per style(9)Philip Guenther
2017-08-15Copy files from ../librthread in preparation for moving functionalityPhilip Guenther
from libpthread to libc. No changes to the build yet, just making it easier to review the substantive diffs. ok beck@ kettenis@ tedu@
2017-08-15Copy files from ../librthread in preparation for moving functionalityPhilip Guenther
from libpthread to libc. No changes to the build yet, just making it easier to review the substantive diffs. ok beck@ kettenis@ tedu@
2017-08-15fmt0 is a wchar_t *, so use %ls to reportTheo de Raadt
2017-08-14Use sendsyslog() directly instead of syslog_r() for the "backwards memcpy"Philip Guenther
messages, to avoid pulling in piles of other machinery unnecessarily problem observed by schwarze@ ok deraadt@ millert@
2017-08-13add fktrace to libcTed Unangst
2017-08-12Minimize #includes, particularly to avoid thread_private.hPhilip Guenther
ok tedu@
2017-08-12Instead of hardcoding a partial dependency list for the syscall stub objects,Philip Guenther
calculate them as done for other objects
2017-08-08Stop running nd6_expire every second.Florian Obser
We know when pltime or vltime decrease to zero. Run nd6_expire then. Input & OK mpi, bluhm
2017-08-08Kernel sendsyslog(2), libc syslog(3), and syslogd(8) restrict andAlexander Bluhm
truncate the length of a syslog message to 8192 bytes. Use one global define LOG_MAXLINE for all of them. OK deraadt@ millert@
2017-08-07Since sendsyslog(2) handles the LOG_CONS parameter, the variableAlexander Bluhm
conp in syslog(3) is unused. Remove dead code. OK jca@ deraadt@
2017-08-05We only support ASCII and UTF-8, so we never need toIngo Schwarze
change _ctype_, _tolower_tab_, and _toupper_tab_. No functional change. Suggested by and OK kettenis@
2017-08-01delete sigmask(3) from sigsetmask(3) SYNOPSIS and use .Xr ratherIngo Schwarze
than .Fn for it, it is documented sigblock(3) as noticed by jmc@; some minor typo and punctuation cleanup while here; OK jmc@
2017-08-01add missing and correct misspelled names, most in NAME sections;Ingo Schwarze
found with regress/usr.bin/mandoc/db/dbm_dump; OK jmc@
2017-07-27Use stdrup, to avoid clang whining about the length parameters beingTheo de Raadt
based upon input being used unsafely (they are safe) ok millert kettenis
2017-07-22Favor err() over perror() in example.anton
ok schwarze@
2017-07-22zap trailing whitespace;Jason McIntyre
2017-07-22rework the page a bit, clarify a few things, maybe better wordingTed Unangst
2017-07-20Accessing a mmap(2)ed file behind its end should result in a SIGBUSAlexander Bluhm
according to POSIX. Bring regression test and kernel in line for amd64 and i386. Other architectures have to follow. OK deraadt@ kettenis@
2017-07-20Rename TBUF_LEN and FMT_LEN to _SIZE as they contain a NUL byte.Alexander Bluhm
Change FMT_SIZE to 1024+1 for consistency. Do not loop over the format string if there is no output space left. OK deraadt@ millert@
2017-07-18Both syslog(3) and syslogd(8) truncate the message at 8192 bytes.Alexander Bluhm
Do the same in sendsyslog(2) and document the behavior. reported by Ilja Van Sprundel; OK millert@ deraadt@
2017-07-13Get rid of ip6.maxifprefixes and ip6.maxifdefrouters, the kernel noFlorian Obser
longer tracks prefixes or default routers from router advertisements. Pointed out by jmc. ports tree grepping sthen, who only found nsh OK mpi, sthen
2017-07-10one more instance of the previous commit; also initialize ->offset to aOtto Moerbeek
definite value in the size == 0 case
2017-07-10replace Fifos with FIFOs.David Gwynne
ok jmc@ visa@
2017-07-08update the little endian processor list to give it a chance of matchingTed Unangst
what the reader is using.
2017-07-07Only access offset if canaries are enabled *and* size > 0, otherwise offsetOtto Moerbeek
is not initialized. Problem spotted by Carlin Bingham; ok phessler@ tedu@
2017-07-06The 0x (or 0X) prefix in base 16 is optional so only skip over theTodd C. Miller
prefix if the character following it is a valid hex char. The C99 standard is clear that given the string "0xy" zero should be returned and endptr set to point to the "x". OK deraadt@ espie@
2017-07-06fix broken cross references; found with mandoc -TlintIngo Schwarze
2017-07-05void functions don't return 0Theo Buehler
From Klemens Nanni
2017-07-05fix cross references to self; found with mandoc -TlintIngo Schwarze
2017-07-041. mild deprecation noticeIngo Schwarze
2. point to getline (suggested by nicm@) 3. cross reference fgetc(3) rather than putc(3) 4. add missing error handling to the example code OK nicm@
2017-06-19port the RBT code to userland by making it part of libc.David Gwynne
src/lib/libc/gen/tree.c is a copy of src/sys/kern/subr_tree.c, but with annotations for symbol visibility. changes to one should be reflected in the other. the malloc debug code that uses RB code is ported to RBT. because libc provides the RBT code, procmap doesn't have to reach into the kernel and build subr_tree.c itself now. mild enthusiasm from many ok guenther@
2017-06-13no need for branding in .Nd lineTheo de Raadt
2017-06-12Add dprintf() and vdprintf() RETURN VALUES. OK deraadt@Todd C. Miller
2017-06-11request -> promises; from scott chelohaJason McIntyre
2017-06-10Fix broken markup of function pointer invocations; foundIngo Schwarze
with mandoc -Tlint. While here, delete .Tn macros.
2017-06-10fix a sentence that used unusual terminology, the wrong macro,Ingo Schwarze
and broken delimiter syntax; found with mandoc -Tlint
2017-06-07Add an acct(5) flag for pledge violations. Then lastcomm(1) showsAlexander Bluhm
when something went wrong. This allows to monitor whether the system is under attack and that the attack has been prevented by OpenBSD pledge(2). OK deraadt@ millert@ jmc@
2017-06-01Remove branch prediction hint from conditional branch instruction.Christian Weisgerber
These hints are not recognized by clang's builtin assembler. From the corresponding amd64 change. ok visa@ kettenis@
2017-05-31Add support for EV_RECEIPT and EV_DISPATCH flagsMike Belopuhov
From FreeBSD via Jan Schreiber <jes at posteo ! de>, thanks! OK tedu, bluhm
2017-05-31install futex(2), ok mpiStuart Henderson
2017-05-30getrlimit is now allowed by "stdio"Theo de Raadt
2017-05-30Don't fall back to heapsort() if we would otherwise switch toTodd C. Miller
insertion sort (when the number of elements is < 7).