summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-20upas/smtp: handle temporary authentication failurescinap_lenrek
under heavy load, factotum can return a "too much activity" error, which upas/smtpd and upas/smtp should consider a temporary error instead of a permanent one.
2019-06-20rc-httpd: serve markdown with text/plain content-typeAlex Musolino
2019-06-20pc64: actually fix it, what was i THINKINGcinap_lenrek
2019-06-20pc64: fix compiler warning in rebootjump() entry calculationcinap_lenrek
2019-06-20stdio: fix putc(), plan9 versioncinap_lenrek
2019-06-19ape: fix stdio putc() macro, avoiding "result of operation not used" warningcinap_lenrek
moving _IO_CHMASK masking on the right hand side fixes it.
2019-06-19cc: remove nullwarn() from OCAST codegen, zap void castscinap_lenrek
implicit casts would cause spurious "result of operation not used" warnings such as ape's stdio putc() macro. make (void) casts non-ops when the casted expression has no side effects. this avoid spurious warning with ape's assert() macro.
2019-06-19cwfs: properly handle 64 bit qid pathcinap_lenrek
for historical reasons, kenfs stores directory entries in pre 9p2000 format with directories having the QPDIR bit 31 set in the qid path. however, the 64 bit fileserver allows 64 bit qid paths. given that we do not support pre 9p2000 clients and do not rely on the QPDIR, but want to keep the block check tags consistent, we will *INVERT* the QPDIR bit in directory entry qid paths for directories. this preserves the on-disk semantics (for < 31 bit qmax) but does not complicate qid generation and recovery. also makes it easy to convert between directory entry qid and 9p format.
2019-06-19pcc: back out -+ flag removal to allow gracefull upgrade path with new pcc ↵cinap_lenrek
but old cpp
2019-06-18Always turn on the -+ flag in cppOri Bernstein
C99 comments have been the default in compilers for something like 20 years now. This means we don't need to remember to turn it on when porting software, and gets rid of cryptic errors about unterminated character constants when someone writes something like: // Didn't need to... We still accept the flag to avoid breaking mkfiles, but we do nothing with it. This also removes the documentation, since the option does nothing now.
2019-06-18Import compiler warnings and bugfixes from Charles.Ori Bernstein
This change imports a few warnings and minor fixes from Charles branch here: https://bitbucket.org/plan9-from-bell-labs/plan9. The changes included here: changeset: 1374:9185dc017be0 summary: declare castucom; move a declaration into order; use cast instead of ULL suffix changeset: 1353:5fe8380b1818 summary: supporting functions: 1. castucom to match unlikely mask operation; 2. be sure to snap both sides of pointer subtraction completely; 3. add extra operators as side-effect free changeset: 1352:90058c092d66 summary: 1. correct result type for mixed-mode assignment operators 2. detect divide by zero (erik); 3. detect masks misformed by sign-extension; 4. diagnose mixed old/new prototypes
2019-06-18mergecinap_lenrek
2019-06-188c, 6c: fix INDEX node #reg calculationcinap_lenrek
2019-06-17Delete dead code.Ori Bernstein
Nothing is using (or even building) bound.[ch]
2019-06-17rc-httpd: set charset=utf-8 for all text/* content typesAlex Musolino
2019-06-17rc-httpd: only emit charset option for text/plain content typeAlex Musolino
2019-06-16Add test for pow.cOri Bernstein
2019-06-16Handle NaN and Inf edge cases as specified by posix, instead of barfing.Ori Bernstein
We're not a posix system, but the posix spec is a good reference for what we should do. Thanks Geoff for the inspiration for this patch.
2019-06-14mergecinap_lenrek
2019-06-14devdtracy: make machlocks and dtktab staticcinap_lenrek
2019-06-14bcm64: implement dtracy supportcinap_lenrek
2019-06-11vmx(1): update BUGSaiju
2019-06-11snoopy(8): add support for dhcp classless static routes optionAlex Musolino
To complement the new cl-routes field, the bootp static routes option has been renamed to cf-routes and the network/gateway pairs are separated with a right arrow.
2019-06-11snoopy(8): avoid extra spaces in dhcp filter outputAlex Musolino
2019-06-11snoopy(8): include dhcp.h instead of replicating bootp/dhcp options enumAlex Musolino
2019-06-08file(1): recognise unified diff outputAlex Musolino
2019-06-05rc-httpd(8): avoid duplicate log output in dir-index handlerAlex Musolino
Delay calling do_log until just before emitting the response. This avoids calling do_log before potentially handing control to the static-index handler, which also calls do_log.
2019-06-04Remove trailing whitespace.Ori Bernstein
2019-06-04Lost a trailing \nOri Bernstein
2019-06-04Make 'g' grep recursively by default.Ori Bernstein
2019-05-31plumber: loop will go out of bounds when *++s == '\0'; replace with strstrBurnZeZ
2019-05-27ssh: work around github.com's broken cipher negotiation code (thanks Ori_B)cinap_lenrek
key exchange with git@github.com fails as they appear to try to negotiate a mac algorithm even tho we use an AEAD cipher which does not use a mac algorithm. the work around is to supply a dummy mac algorithm that they can negotiate to make them happy.
2019-05-24/sys/src/cmd/mkfile: fix PCONLY exclude (thanks stefan)cinap_lenrek
2019-05-24awk: no need to call getargv() twice to get the value for FILENAMEcinap_lenrek
2019-05-24gs: fix missing type check in ztype (thanks jsmoody)cinap_lenrek
to reproduce: gs <<. null [[][][][][][][][][][][][][][][]] .type .
2019-05-23gs: apply fixes for CVE-2018-16509 (thanks jsmoody)cinap_lenrek
2019-05-22devip: if the server does not support TCP ws option, disable window scaling ↵cinap_lenrek
(thanks joe9) if the server responds without a window scale option in its syn-ack, disable window scaling alltogether as both sides need to understand the option.
2019-05-20upas/fs: remove read timeout via alarm(2) in pop3respAlex Musolino
The alarm note is not handled by upas/fs, so if and when it did fire, the pop3 client process would terminate rendering the entire fs unresponsive.
2019-05-19vmx: handle build arch exclude in /sys/src/cmd/mkfilecinap_lenrek
2019-05-19bcm, bcm64: fix cache operations for dma and emmccinap_lenrek
always clean AND invalidate caches before dma read, never just invalidate as the buffer might not be aligned to cache lines... we have to invalidate caches again *AFTER* the dma read has completed. the processor can bring in data speculatively into the cache while the dma in in flight.
2019-05-18sshnet(4): ... and incoming TCP callscinap_lenrek
2019-05-17mergecinap_lenrek
2019-05-17bcm64: remove unneccesary tlb flush on mmuidmap()cinap_lenrek
2019-05-17bcm64: no need to flush instruction cache when switching TTBR0cinap_lenrek
2019-05-17bcm64: switch to 64k page sizecinap_lenrek
2019-05-177l: don't hardcode 4k pagesize, use INITRNDcinap_lenrek
2019-05-17mergecinap_lenrek
2019-05-17mkone: fix man target (thanks Amavect)cinap_lenrek
Amavect wrote: > mkone and mkmany have backwards targets for installing man pages. > This patch makes 'mk man' actually work for mkfiles that include mkone. > mkmany is not easily fixed without breaking changes. > It may go without saying that external repos should write their own mkfiles.
2019-05-15draw(3): memlorigin23hiro
2019-05-15bcm64: generalize mmu codecinap_lenrek
make user page table list heads arrays so we can index into the right level avoiding the special cases for differen PTLEVELS.