Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-04-09 | libc: allow announce address of the form #I1/tcp!*!564 | cinap_lenrek | |
we allow protocol path to begin with # for dial, so should allow this for announce as well. this is primarily usefull when booting the fileserver to listen on alternate ip stack. | |||
2014-02-25 | csdial: avoid useless werrstr() call on success (thanks mischief) | cinap_lenrek | |
2014-02-17 | prof: properly save and restore RARG for amd64 | cinap_lenrek | |
amd64 passes first argument in RARG (BP) register which has the be preserved duing _profin() and _profout() calls. to handle this we introduce _saveret() and _savearg(). _saveret() returns AX, _savearg() returns RARG (BP). for archs other and amd64, _saveret() and _savearg() are the same function, doing nothing. restoing works with dummy function: uintptr _restore(uintptr, uintptr ret) { return ret; } ... ret = _saveret(); arg = _savearg(); ... return _restore(arg, ret); as we pass arg as the first argument, RARG (BP) is restored. | |||
2014-02-14 | libc: remove malloc.acid and pool.acid | cinap_lenrek | |
2014-02-06 | pool: use uintptr for pool size | cinap_lenrek | |
note, arenas and blocks still use ulong for sizes. so we have to check for overflow when attempting to merge arenas. | |||
2014-02-02 | malloctag: only store lower 32bit of malloc tag, fix getrealloctag | cinap_lenrek | |
as erik quanstro suggests, theres not much of a point in storing the full 64bit pc as one cannot get a code segment bigger than 4G and amd64 makes it hard to use a pc that isnt 64bit sign extension of 32bit. instead, we only store ulong (as originally), but sign extend back when returning in getmalloctag() and getrealloctag(). getrealloctag() used to be broken. its now fixed. | |||
2014-02-02 | mallocalign: make sure alignptr offset is modulo align when -offset > align | cinap_lenrek | |
2014-02-01 | libc and ape support for amd64 | cinap_lenrek | |
2014-01-20 | malloc: change malloc and realloc tag types to uintptr | cinap_lenrek | |
2013-12-17 | pool: update debug log format string for poolallocalign() | cinap_lenrek | |
2013-10-17 | libc: updated acid files for 21 bit rune change | cinap_lenrek | |
2013-10-08 | libc: remove doprint | cinap_lenrek | |
2013-09-26 | reverting semaphore lock changes from sources (r41ccd6d221da, rb28756e5ba29) | cinap_lenrek | |
semaphore locks have much higher overhead than initially presented in the "Semaphores in Plan9" paper. until the reason for it has been found out i will revert the changes. | |||
2013-09-21 | libc: 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-06 | libc: set malloctag for runesmprint() | cinap_lenrek | |
2013-08-14 | libc: Prevent infinite recursion when modf is called with NaN or Inf ↵ | cinap_lenrek | |
argument. (apply richard millers / modf-nan patch from sources) | |||
2013-08-11 | tm2sec: 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-19 | libc: fix compiler warning for mips canlock() and _tas() | cinap_lenrek | |
2013-06-14 | pool: use splaying to balance free node tree | cinap_lenrek | |
use splaytree algorithm to balance the tree of free allocations as an optimization. the data structures are unchanged by this optimization. | |||
2013-06-10 | acid: fix dumptree() acid function to work in kernel debug, update ↵ | cinap_lenrek | |
malloc.acid and pool.acid files | |||
2013-05-31 | pool: do poolcheck when free nodes get corrupted instead of assert | cinap_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-01 | frexp: handle NaN values (from sources) | cinap_lenrek | |
2013-04-03 | pushtls: remove unneccesary include <auth.h> (from sources) | cinap_lenrek | |
2013-03-03 | fltfmt: make %g print decimal numbers less than 1 with a leading zero | ppatience0 | |
2013-03-03 | fltfmt: %.0g should print with one significant figure | ppatience0 | |
2013-03-01 | fltfmt: fix %g not printing as %e in some cases when it should | ppatience0 | |
2013-02-27 | fltfmt: %.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-26 | libc: update atomic ops and fp code for arm (from sources) | cinap_lenrek | |
2013-01-25 | libc: set malloctag for runestrdup() | cinap_lenrek | |
2012-12-31 | fix utf and rune handling in preparation for 32bit runes | cinap_lenrek | |
2012-09-01 | isodate in libc? revert every commit for great justice! | cinap_lenrek | |
2012-09-02 | Add isotime() and isodate() functions to libc. | ||
2012-09-02 | Fix date formatting in asctime after year 2099. | ||
2012-08-19 | calloc: check multiplication overflow | cinap_lenrek | |
2012-07-29 | add tsemacquire syscall for go | cinap_lenrek | |
2012-05-22 | allow # netpath in dial string | cinap_lenrek | |
2012-01-10 | libc: restoring simple sequential version of dial() | cinap_lenrek | |
2011-09-05 | strdup: set malloctag | cinap_lenrek | |
2011-08-20 | getpid: use tos | aiju | |
2011-08-17 | fix broken perm format | cinap_lenrek | |
2011-03-30 | Import sources from 2011-03-30 iso image - lib | Taru Karttunen | |
2011-03-30 | Import sources from 2011-03-30 iso image | Taru Karttunen | |