summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2014-05-03bio.h: add varargck argpos pragma for Berrorftrvxmtrx
2014-05-03uniq: document -s option (thanks heaumer)ftrvxmtrx
2014-05-03uniq: use Bsize for buffersftrvxmtrx
2014-05-03cwfs: fix 1GB memsize limitationcinap_lenrek
the malloc pool allocator is limited in its allocation size. as almost all data structures in cwfs are never freed, use brk() in ialloc() instead of mallocalign(). this means memory returned by ialloc() cannot be freed! to make sure we do not call free by accident, remove the #define malloc(n) ialloc(n, 0) macro and use ialloc() directly as in the original code to show the intend of permanent allocations.
2014-05-03wc: simplify and avoid buffer overflow on long filenamesftrvxmtrx
2014-05-021l, 2l, 7l, kl, vl: add missing setmalloctag() dummy in compat.ccinap_lenrek
2014-05-02bio: Brdstr, Bopen: set malloc tag to the callerftrvxmtrx
2014-05-02sdide: never timeout or retry scsi commands from the controller drivercinap_lenrek
this was a big mistake. we should never attempt to timeout or retry a scsi command from the controller driver because theres no way to tell how long a command would take or if a command has side effects when being retried.