summaryrefslogtreecommitdiff
path: root/sys/src/libc
AgeCommit message (Collapse)Author
2013-09-21libc: change tas/sleep locks to cas/semacquire/semrelease locks (from sources)cinap_lenrek
spinlocks have been changed to use the new semacquire/semrelease syscalls in combination with atomic compare and swap operations.
2013-09-06libc: set malloctag for runesmprint()cinap_lenrek
2013-08-14libc: Prevent infinite recursion when modf is called with NaN or Inf ↵cinap_lenrek
argument. (apply richard millers / modf-nan patch from sources)
2013-08-11tm2sec: assume local timezone when Tm.zone[0] == 0 (fixes dossrv, zipfs ↵cinap_lenrek
timestamps) from the manual: Tm2sec converts a broken-down time to seconds since the start of the epoch. It ignores wday, and assumes the local time zone if zone is not GMT. so we can assume localtime if Tm.zone is not set to GMT. all code that wants no localtime conversion should set Tm.zone explicitely to GMT. (see previous commits) tm2sec() now does the reverse of localtime() when Tm.zone[0] == 0 which seems to be what the calling code (dossrv, zipfs) assumes. this also makes sense because theres no simple way todo it outside of libc as theres otherwise no access to the timezone structure with the daylight saving periods.
2013-06-19libc: fix compiler warning for mips canlock() and _tas()cinap_lenrek
2013-06-14pool: use splaying to balance free node treecinap_lenrek
use splaytree algorithm to balance the tree of free allocations as an optimization. the data structures are unchanged by this optimization.
2013-06-10acid: fix dumptree() acid function to work in kernel debug, update ↵cinap_lenrek
malloc.acid and pool.acid files
2013-05-31pool: do poolcheck when free nodes get corrupted instead of assertcinap_lenrek
doing poolcheck should give us better context to figure out what memory blocks / owners corrupted the blocks after free. this is for hunting down a memory corruption seen in connection with usb serial.
2013-05-01frexp: handle NaN values (from sources)cinap_lenrek
2013-04-03pushtls: remove unneccesary include <auth.h> (from sources)cinap_lenrek
2013-03-03fltfmt: make %g print decimal numbers less than 1 with a leading zeroppatience0
2013-03-03fltfmt: %.0g should print with one significant figureppatience0
2013-03-01fltfmt: fix %g not printing as %e in some cases when it shouldppatience0
2013-02-27fltfmt: %.ng is supposed to print a number with n significant figures, but ↵ppatience0
it prints it with n+1. This fixes that behaviour.
2013-01-26libc: update atomic ops and fp code for arm (from sources)cinap_lenrek
2013-01-25libc: set malloctag for runestrdup()cinap_lenrek
2012-12-31fix utf and rune handling in preparation for 32bit runescinap_lenrek
2012-09-01isodate in libc? revert every commit for great justice!cinap_lenrek
2012-09-02Add isotime() and isodate() functions to libc.google
2012-09-02Fix date formatting in asctime after year 2099.google
2012-08-19calloc: check multiplication overflowcinap_lenrek
2012-07-29add tsemacquire syscall for gocinap_lenrek
2012-05-22allow # netpath in dial stringcinap_lenrek
2012-01-10libc: restoring simple sequential version of dial()cinap_lenrek
2011-09-05strdup: set malloctagcinap_lenrek
2011-08-20getpid: use tosaiju
2011-08-17fix broken perm formatcinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen