summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2013-10-06Remove an unnecessary (void *) castPhilip Guenther
2013-10-06fdopendir() needs to set dd_curpos so that an immediate telldir() works.Philip Guenther
pointed out by and ok matthew@
2013-10-06Add CLOCK_UPTIME, a clock which measures time-running-not-suspended, soPhilip Guenther
that mlarkin@ can fix programs that report rates-over-uptime. ok kettenis@ manpage corrections jmc@ (which I've probably broken again)
2013-10-04a couple of warning fixes and an RCS marker; ok markus@Damien Miller
2013-10-04_thread_sys_tcdrain() doesn't exist and isn't usedPhilip Guenther
2013-10-01replace rc4 with ChaCha20; inspired by Nick Mathewson's work on libottery;Markus Friedl
feedback and ok djm@
2013-10-01Fix FILE * leak in error path if fprintf fails. Found by and OK gilles@Todd C. Miller
2013-09-30Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,Todd C. Miller
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
2013-09-25Add examples to show why this is a terrible API. OK jmc@ henning@Todd C. Miller
2013-09-25According to POSIX, if the src and dst strings overlap, the behaviorTodd C. Miller
is undefined. Add a warning to that effect. OK deraadt@ jmc@
2013-09-21Fix an ino_t inconsistency in libfuse. This commit unbreakSylvestre Gallon
the build for libfuse. ok guenther@
2013-09-21Bump major to 26, regen .pc and header with new version info.James Turner
2013-09-21Merge conflictsJames Turner
2013-09-21Update sqlite to 3.8.0.2. A list of changes are available here:James Turner
http://sqlite.org/changes.html. Tested in a bulk and ok landry@ ok espie@
2013-09-14- bit clearer about sysctls/securelevel (text lifted from i386_iopl(2))Jason McIntyre
- EPERM only applies to _set_ioperm help kettenis original diff From: Paul Kelly
2013-09-11switch to using arc4random, as prompted by deraadt@.Marc Espie
also, OMIT_BUILTIN_TEST, since we're just a production library (duh) bump shlib_version accordingly okay reyk@, thanks for looking at this!
2013-09-11Correct type of tv_sec to time_t.Kenneth R Westerback
Pointed out by Dawe via tech@.
2012-04-14sqlite 3.7.11 library, vendor sourcesMarc Espie
2013-09-08Remove a.out leftovers. (it's september now)Miod Vallat
2013-09-08Remove the `let's zero %r2 if %r3 is nonzero' dance. It's been more than 10Miod Vallat
years that fork() returns through child_return(), which takes care of zeroing %r2.
2013-08-28Following the ARM manuals and cookbooks, ldrex/strex don't have implicitPatrick Wildt
barriers. Therefore it is required to add a memory berrier, so that it is ensured that all observers observed the change. ok rapha@
2013-08-28Allow setlocale(LC_MESSAGES, ...); to succeed. This always returned anStefan Sperling
error, but that makes some ports (e.g. GNOME) freak out. We can allow any message language to be used as long as the encoding specified as part of the locale name is supported (i.e. listed in locale -m output). The primary users of LC_MESSAGES are catopen(3) and gettext(3), which already worked without this change. ok ajacoutot, naddy, matthew
2013-08-28oops, we forgot to remove the .El in previous; sorry stefan (though youJason McIntyre
should have run this through mandoc -Tlint ;)
2013-08-28Cosmetic tweaks of wcrtomb(3) RETURN VALUES section. ok jmcStefan Sperling
2013-08-26Use %r27 as the thread control block pointer, allowing for __get_tcb() callsMiod Vallat
in libpthread to be optimized away. While there, follow DG/UX's example of using more than one register for thread purposes (after all, the ABI reserves four of them), and also use %r26 to store a pointer to the current thread's errno. Since it is not possible to initialize %r26 at thread creation without intrusive and potentially race-prone changes, have __tfork() reset %r26 to zero, and libpthread's __cerror lazy initialize it. As soon as %r26 is nonzero, it will be used instead of calling __errno(). This means that binaries linked against HEAD libpthread need to run on HEAD kernels, and we are belatedly jumping on the 64-bit time_t bump (since there are no 64-bit time_t m88k snapshots yet). Joint work with guenther@; "Your love of asm is sick and wrong, and yet beautiful." and ok guenther@
2013-08-24Move underrun/overrun recovery code from the sun-api back-end toAlexandre Ratchov
the the generic code, so it can be used by other back-ends as well. No behavior change (hopefully).
2013-08-24replace random() with arc4random.David Gwynne
blambert didnt like stuff linking to libevent getting warnings about use of an unsafe api. ok blambert@ mikeb@ deraadt@ millert@
2013-08-17Use %lld and cast to (long long) when printing time_t values and atoll()Philip Guenther
when parsing them. Add a couple [ug]id_t --> u_int casts for consistency with rest of code. Based on a diff from Nathanael Rensen (nathanael (at) polymorpheus.com)
2013-08-16seekdir()/rewinddir() must update the position returned by telldir()Philip Guenther
2013-08-15Align stack yp buffers to 64-bit boundaries now, for they might containMiod Vallat
a struct passwd. ok deraadt@ guenther@ kettenis@
2013-08-14use Bsx;Jason McIntyre
from jan stary
2013-08-14ident and data members of struct kevent changed types: ident toPhilip Guenther
uintptr_t, so it can hold pointers for EVFILT_TIMER and _AIO, and data to quad_t, so it can hold file offets.
2013-08-14more Bx;Jason McIntyre
From: Jan Stary
2013-08-14some Bx/Ox conversion;Jason McIntyre
From: Jan Stary
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
2013-08-10Plug fd and mem leak in fuse_open's error path. ok syl@Jeremie Courreges-Anglas
2013-08-10Remove some useless DPRINTF.Sylvestre Gallon
2013-08-08sync with recent name changes;Jason McIntyre
2013-08-08rename fuse docs after existent functions;Jason McIntyre
2013-08-08Prep for big ino_t: cast to unsigned long long and format with %ll or %qPhilip Guenther
httpd correction and ok kettenis@
2013-08-07Document lgamma_r, lgammaf_r, and lgammal_r.Todd C. Miller
Prodded by espie@, OK martynas@
2013-08-07simple inaccurate implementation of lrint* functions on vax, just soMarc Espie
we have them. Compiles on vax. okay martynas@
2013-08-06When writing a new record in pw_copy() print the uid and gid asTodd C. Miller
unsigned, just like we do the existing records. OK deraadt@
2013-08-06Remove support for COMPILER_VERSION == gcc2.Miod Vallat
Change the logic depending upon COMPILER_VERSION everywhere, to assume gcc4 is the norm and to explicitely test for gcc3 when a different behaviour is required. No functional change intended. Be sure to `make install' in share/mk before attempting to do anything.
2013-08-06scalbnf on vax, okay miod@Marc Espie
2013-08-05tgamma(+-0) == +-InfMark Kettenis
ok martynas@
2013-08-03KERN_PROC_BYPID --> KERN_FILE_BYPIDPhilip Guenther
pointed out by Dominique Laigle (dlaigle (at) gmail.com)
2013-08-02Fix a couple of corner cases in the implementation of pow(3) to make itMark Kettenis
compatible with C99. Most notably: - 1**y == 1, even if y is NaN - (-1)**+-Inf == 1 and adjust the cephes testsuite to test for the right thing here. ok martynas@
2013-08-01Add linker warnings for rand() and random() and various related functions.Mark Kettenis
ok deraadt@