summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-11-21grep: error if sbrk failsBurnZeZ
2019-11-20mergeOri Bernstein
2019-11-20improve language in delay(9)Ori Bernstein
give the reader enough context to know when to use and not use the delay family of functions.
2019-11-21mergecinap_lenrek
2019-11-21vac(1): assimilate manpage additions from plan9port and complete usage lines ↵cinap_lenrek
(thanks joe9) the usage lines in vac where out of sync with the implementation and the manpages. document the -a and -x options, from: https://github.com/9fans/plan9port/blob/master/man/man1/vac.1
2019-11-20mail(1): fix typoAlex Musolino
2019-11-20timezones: change DST timezone string for South AustraliaAlex Musolino
Use "CDT" for DST as distinct from "CST" for non-DST.
2019-11-19mergeOri Bernstein
2019-11-19add start of section 9 manpages (thanks rgl)Ori Bernstein
this change adds some of the kernel manpages from 9legacy, fixed and updated to match the changes in 9front.
2019-11-19rio: fix cons read breakage from previous commitcinap_lenrek
2019-11-19rio(4): update description of wctl file formatAlex Musolino
State strings are now padded to 12-characters. Remove ambiguous reference to "12-character style", instead referring the reader to image(6).
2019-11-19rio: pad window status strings in wctl filesAlex Musolino
This makes it possible to read the entire initial contents of the wctl files without blocking.
2019-11-19rio: fix bug causing short reads of wctl filesAlex Musolino
Previously, reads of wctl files would return one byte less than requested as the returned string must be null terminated. Now we pass the actual size of the allocated buffer to the handler, which is large enough to accommodate a trailing partial rune and terminating null byte.
2019-11-18document 'T' flag misbehavior (thanks rgl)Ori Bernstein
2019-11-17Specifiy the restrictions on 9boot file names more clearly.Ori Bernstein
2019-11-17Document 9bootfat limitation.Ori Bernstein
2019-11-17sdiahci: implement reset timeout for ahciencreset(), make blink() never ↵cinap_lenrek
block, fix map[] access in ledkproc() Ori_B reports that his controller gets stuck in the ahciencreset() wait loop. so we implement a 1000 ms timeout. we replace delay() with esleep() as we are always called from the ledkproc(). blink() could enter infinite delay loop as well, so instead of waiting for the message to get transmitted we exit making it non-blocking (we will get called again anyway). the access to the controller map[] was wrong in ledkproc(). the index is the controller number, not the drive number!
2019-11-17bootrc: for wireless netbooting, set the WPA/WPA2 preshard key with ↵cinap_lenrek
wpapsk=password boot parameter this allows automatic netbooting without password prompt for the wirelss network.
2019-11-15Parse global pax header in the right place.Ori Bernstein
2019-11-14Add pax extended header support to tar.Ori Bernstein
Support for 'path=', 'uname=', 'gname=', 'size=', and 'atime=' pax headers is useful. Others are ignored, possibly with a warning. We were running into missing support with the 'go' extraction. At the same time, this cleans up the way that we handle paths, getting rid of static buffers with hidden space at the front.
2019-11-12thread(2): fix manpage typos (thanks rgl)Ori Bernstein
2019-11-11draw(2): fix manpage typo (thanks rgl)Ori Bernstein
2019-11-10devip: use the routing table for local source ip address selectioncinap_lenrek
when making outgoing connections, the source ip was selected by just iterating from the first to the last interface and trying each local address until a route was found. the result was kind of hard to predict as it depends on the interface order. this change replaces the algorithm with the route lookup algorithm that we already have which takes more specific desination and source prefixes into account. so the order of interfaces does not matter anymore.
2019-11-05Fix directory heuristic for long file names.Ori Bernstein
Tar specifies that a filename ending with '/' is a directory. We were incorrectly looking at the short name. This meant that when we have long filenames with a '/' at the 100th character, we would decide it was a directory. This change uses the long name when deciding the size for extraction, and trusts the header size when just skipping forward in the stream.
2019-11-03games/turtle: do exit instead of crash in redraw() when there where no lines ↵cinap_lenrek
drawn
2019-11-03add games/linden and turtle to mkfileaiju
2019-11-03add games/linden and games/turtleaiju
2019-11-02tar: fix memory corruption in extract1 (thanks petter)cinap_lenrek
extract1() expects two extra bytes to be avilabe before fname buffer so it can prepend ./ before the name. this used to be the case with name(), but was violated when long name support was added and getname() was used in place of name() which did not reserve the 2 extra bytes. this change reserves two extra bytes in the getname()'s static buffer and also removes the extra copy as name() already makes a copy.
2019-11-02upasfs(4): fix manpage typo (thanks rgl)cinap_lenrek
2019-11-01file: add (very) basic support for detecting mpeg4 formatsAlex Musolino
2019-10-31upas/fs: fix handling of numeric timezone offsets in strtotmAlex Musolino
Since numeric timezone offsets are relative to GMT, initialise zone to GMT so tm2sec(2) does not assume local time. Note that if strtotm encounters a timezone *string* and consequently overwrites zone then we will end up in the same mess since tm2sec(2) only deals with GMT or local time.
2019-10-28Check if 'm' is null when updating messages.Ori Bernstein
2019-10-27bcm: fix software cursor avoidance for loadimage() case (thanks bitmapper)cinap_lenrek
2019-10-22ip/dhcpd: prevent client from increasing max reply size beyond the reply ↵cinap_lenrek
buffer capacity
2019-10-21Make ctrl+g focus text windows and cycle zeroxed copies (thanks kvik)Ori Bernstein
2019-10-22/sys/lib/plumb/basic: open nedmail windows with -noscrollAlex Musolino
This preserves the desired behaviour of *not* scrolling to the bottom of plumbed messages even when rio(1) is invoked with the -s flag.
2019-10-13ndb/dns: handle empty $DNSSERVERcinap_lenrek
when $DNSSERVER is empty, query ndb for local dns servers instead of not using any at all.
2019-10-13backup: Set execution bits in backup scriptsRoberto E. Vargas Caballero
2019-10-11ether82563: fix multicast for i210cinap_lenrek
MTA has 128 entries, according to section 8.10.15 in the datasheet. this fixes ipv6 in apu2 which has 3x i210 (8086/157b).
2019-10-10Fetch IMAP flags from server. This makes us sync read/answered/... flags ↵Ori Bernstein
with unix.
2019-10-09awk: make empty FS unicodely-correct.Ori Bernstein
2019-10-08sdiahci: force Hudson SATA Controller to AHCI modecinap_lenrek
2019-10-07sshfs: fix dir2attrib() memory leak in wstat error case (thanks BurnZeZ)cinap_lenrek
2019-10-07sshfs: fix race condition between sendproc() and recvproc()cinap_lenrek
there was a race between the sendproc putting the request on the sreqrd[] id and the recvproc handling the response, and potentially freeing the request before the sendproc() was finished with the request (or the fid). so we defer allocating a request id and putting it on the sreqrd[] stage after we have completely generated the request in vpack(). this prevents the handling of the request before it is even sent. this also means that the SReq should not be touched after calling sendpkt(), submitreq(), submitsreq(). secondly, putsfid() needs to acquire the RWLock to make sure sendproc() is finished with the request. the scenario is that recvproc() can call respond() on the request before sendproc() has unlocked the SFid.
2019-10-04cwfs: fix listen filedescriptor leakscinap_lenrek
2019-10-04lib9p: fix listensrv() filedescriptor leakscinap_lenrek
2019-10-04sshfs: use threadexits() instead of exits()cinap_lenrek
2019-10-03upas/fs: speedup mtree and henter()cinap_lenrek
move digest pointer into Mtree structrue and embed it into Idx struct (which is embedded in Message) to avoid one level of indirection during mtreecmp(). get rid of mtreeisdup(). instead we have mtreeadd() return the old message in case of a collision. this avoids double lookup. increase the hash table size for henter() and make it a prime.
2019-10-02pc: move low-level allocation details out of mmu.c into memory.c rampage() ↵cinap_lenrek
function
2019-10-02vgai81x: use vmap() for uncached access to cursor data instead of ↵cinap_lenrek
manipulating kernel page table on 386, the kernel memory region is mapped using huge 4MB pages (when supported by the cpu). so the uncached pte manipulation does not work to map the cursor data with uncached attribute. instead, we allocate a memory page using newpage() and map it globally using vmap(), which maps it uncached.