summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-25pc64: cleanup mmuzapcinap_lenrek
2014-05-25games/md: first bug fixesaiju
2014-05-25added crude version of games/mdaiju
2014-05-24libauth: dont print blobs in auth_proxy error stringscinap_lenrek
2014-05-24cpu: remove duplicate environment and chdir($home) code (thanks qrstuv)cinap_lenrek
newns() (called by auth_chuid()) already prepares the environment variables and puts us in a sane working directory (as specified by the namespace file).
2014-05-24kernel: fix read size calculation in pio() demand loadcinap_lenrek
on amd64, the text segment is aligned and padded to 2MB, but segment granularity is 4K which can give us page faults that are beyond the highest file offset. this is perfectly valid, but was not handled correctly in pio().
2014-05-23libc: avoid static table and supurious reads in nsec()cinap_lenrek
use two per process memory slots, one for the pid and one for the fd instead of a global table avoiding the case when the table gets full. instead of calling pread() on the cached fd (dangerous as it has side effects when the fd was not closed), we check if the cached fd is still good using fd2path() when called the first time in this process.
2014-05-20libc: revert nsec() change, bring back filedescriptor cachingcinap_lenrek
theres big performance regression with this using cwfs. cwfs calls time() to update atime on every read/write which now causes walks on /dev. reverting to the previous version for now. in the long run, we'll use new _nsec() syscall but this has to wait for a later release once new kernels are established.
2014-05-20syscall: add missing _nsec() declarationcinap_lenrek
2014-05-20add _nsec() syscall 53 for binary compatibility with labs distributioncinap_lenrek
the new syscall is added under the symbol _nsec() for binary compatibility. nsec() is still a library function reading /dev/bintime.
2014-05-20libc: dont cache /dev/bintime filedescriptor for nsec()cinap_lenrek
2014-05-19init: dont interpret environment var contents as fmtstring, cleanupcinap_lenrek
2014-05-19pc64: remove cpuserver bigboy hack and honor *kernelpercent=cinap_lenrek
2014-05-19ip/torrent: use "torrent" as default user agentcinap_lenrek
2014-05-19ip/torrent: fix usage, add -A option to set user-agentcinap_lenrek
trackers do like the new default Mozilla/5.0 (compatible) user agent. so force useragent to hjdicks and give option to override it in case trackers get even more clever in the future.
2014-05-18ipconfig: fix dhcp watchcinap_lenrek
in dhcpwatch, the sleep time "secs" could become zero potentially freezing the lease time. give up when in Sinit state in dhcpquery() as this is a terminal state.
2014-05-16fortunes: 14:37 -!- kfx was kicked from #suckless by __20h__ [kfx]stanley lieber
2014-05-16sdiahci: fix (unused) hba reset function (thanks erik quanstro)cinap_lenrek
from the specification: software may reset the entire HBA by setting GHC.HR to '1'. When software sets the GHC.HR bit to '1', the HBA shall perform an internal reset action. The bit shall be cleared to '0' by the HBA when the reset is complete.
2014-05-16added devgpio (thanks Krystian!). Also added getrevision() to vcore which ↵Matthew Veety
allows you to get the raspberry pi board revision. I kept in the segment that allows direct access to the gpio memory
2014-05-14mergecinap_lenrek
2014-05-14play: set user-agent, otherwise server thinks we'r mozilla m(cinap_lenrek
2014-05-12sam(1): add ctrl+bftrvxmtrx
2014-05-12samterm: fix esc, change ctrl+b behaviour to a more useful one (thanks cinap)ftrvxmtrx
2014-05-12samterm: clean up key defines. use ctrl+b as in rioftrvxmtrx
2014-05-12usps: remove redundant uhtml pipelinecinap_lenrek
2014-05-12htmlfmt: use uhtml for character set conversioncinap_lenrek
2014-05-11doom: get rid of floating point code for divisioncinap_lenrek
2014-05-11pc, pc64: add simd error exception name in trap.ccinap_lenrek
2014-05-11pc, pc64: handle sse simd exceptionscinap_lenrek
2014-05-11tcs: handle surrogate pairscinap_lenrek
2014-05-11tcs: prevent accidents with runes beyond 16-bitcinap_lenrek
2014-05-10tcs: fix inplace 16 bit unicode conversioncinap_lenrek
inplace conversions do not work anymore as Rune is not unsigned short anymore.
2014-05-09webfs: use mozilla compatible user agent as defaultcinap_lenrek
sites like google return the wrong characterset when they do not recognize the user-agent. so setting default user agent to something thats likely to pass these idiotic browser tests.
2014-05-09abaco: need more stack on amd64cinap_lenrek
2014-05-08remove old copies of kernels l.s from cmd/?acinap_lenrek
2014-05-08abaco: remove strange linecinap_lenrek
2014-05-08tail: fix follow for empty files (thanks cinap_lenrek)ftrvxmtrx
2014-05-08tail: seek to EOF to check if seekable. fixes tail on /proc filesftrvxmtrx
2014-05-08hgfs: avoid revlogupdate() calls when reading root (thanks burnzez)cinap_lenrek
we do not need to check for revlog updates on every (directory) read when reading the root. only do it when reading from the start.
2014-05-07sed: remove unused ecmp functionftrvxmtrx
2014-05-06cc: fix spurious warning on comparsion with scope redeclared variable ↵cinap_lenrek
(thanks aiju) > warning: a.c:9 useless or misleading comparison: UINT < 0 the error can be observed by compiling the following code with warnings enabled: #include <u.h> #include <libc.h> uint r; void main(int argc, char *argv[]) { int r; if(r < 0){ exits(0); } } the offending code in the compiler is: - if(l->op == ONAME && l->sym->type){ - lt = l->sym->type; - if(lt->etype == TARRAY) - lt = lt->link; - } compiler handles scope by overwritin and reverting symbols while parsing. in the ccom phase, the nodes symbol (n->sym) is not in the right scope and we wrongly think r is uint instead of int. it is not clear to me what this code tried to accomplish in the first place nor could anyone answer me this question. the risk is small as this change doesnt affect the compiled program, only the warning, so removing the offending code.
2014-05-06pc64: fix embrassing typo in mmuzap()cinap_lenrek
2014-05-05gs: fix /undefined in --setcolor-- errors on amd64cinap_lenrek
2014-05-04mergeftrvxmtrx
2014-05-04vga font: hammer and sickleftrvxmtrx
2014-05-04fonts: add swastika to naga10. fixes swastika in default fontftrvxmtrx
2014-05-04gs: remove PStorage data type from ttf interpretercinap_lenrek
i dont see that pointers are stored in PStorage at all, so just use PLong directly avoding all this confusion.
2014-05-04gs: fix truetype interpreter for amd64cinap_lenrek
2014-05-03fix threadsetname usage in few placesftrvxmtrx
2014-05-03thread.h: varargck argpos for threadsetnameftrvxmtrx