summaryrefslogtreecommitdiff
path: root/sys/src
AgeCommit message (Collapse)Author
2022-12-23usbd: use dprint() report to standard-error instad of standard-outcinap_lenrek
2022-12-23aux/timesync: don't bind #r twice (already done in inittime())cinap_lenrek
2022-12-19sleep: good night.cinap_lenrek
; (0x7fffffff/1000)*1000 + 999 0x8000015f oh no! ; 0x80000000-1024 0x7ffffc00 ; (0x7ffffc00/1000)*1000 + 999 0x7ffffd77 fixed.
2022-12-19ethervgbe: reduce console spam (thanks Arne Meyer)Ori Bernstein
this patch turns "no Tx entry available" messages into an ifstats counter to reduce console spam. While here, remove tx/rx offloading from the todo list to not give people ideas.
2022-12-19cifs: remove redundant memsets after emalloc9p (thanks Arne Meyer)Ori Bernstein
2022-12-18vncs: use procsetname() instead of rolling your owncinap_lenrek
2022-12-18troff2html: handle more html attributes (thanks k0ga)cinap_lenrek
2022-12-18aux/depend: post to /srv instead of #scinap_lenrek
2022-12-185e: access /proc instead of #pcinap_lenrek
2022-12-18sleep: long sleepcinap_lenrek
Instead of waking up every second, sleep the maximum amount possible for long timeouts. Waking up every second is slow with thousands of processes hammering the timer.
2022-12-18bzfs: post to /srv instead of #scinap_lenrek
2022-12-18cwfs: write /env/timezone instead of #e/timezonecinap_lenrek
2022-12-18scram, aux/acpi: open /proc/$pid/ctl instead of #p/$pid/ctl for wirecpu0()cinap_lenrek
2022-12-18aux/mouse: use /dev/eia* instead of #t/eia*, should be bound by termrccinap_lenrek
2022-12-18aux/consolefs: post to /srv instead of #scinap_lenrek
2022-12-18cifs: use procsetname() instead of rolling your owncinap_lenrek
2022-12-18lnfs: post to /srv instead of #scinap_lenrek
2022-12-18ext2srv: leave stderr alonecinap_lenrek
2022-12-18dossrv: post to /srv instead of #s, leave stderror alonecinap_lenrek
2022-12-18ndb/dns: procgetname(): use /proc instead of #pcinap_lenrek
2022-12-18paqfs: post to /srv, not #scinap_lenrek
2022-12-18upas/fs, imap4d: make setname() use /proc instead of #pcinap_lenrek
2022-12-18venti/srv: open /proc instead of #pcinap_lenrek
2022-12-18aux/listen: tweak per service namespacesJacob Moody
move in to the namespace earlier before the announce. Only attempt and complain to syslog when the file already exists, but if building the new namespace fails we should bail.
2022-12-18devgpio/bcm: (Raspberry Pi3/4, revision 2, bcm scheme) (thans Matt!)cinap_lenrek
Submitted by Matt: *Explain the problem that your change solves. Explain why your change solves the problem well.* The problem is that when using 9front on an Rpi3/Rpi4, on a revision 2 board, in bcm scheme, you cannot use GPIO5 nor GPIO6. If you look at the pinout, https://pinout.xyz/pinout/, you can see GPIO5 and GPIO6 are both GPIO pins - so, you should be able to use them. As you can see in the patch, "5" and "6" were both missing from the bcmtableR2 definition. The changes noted above fix this issue by adding GPIO5 ("5") and GPIO6 ("6") to the bcmtableR2 definition. I specifically only addressed r2 boards b/c I don't have an r1 board and don't want to make any speculations. * If applicable, explain how you tested the patch, and give us a way of reproducing the issue.* I tested this / you can reproduce this by: - Trying using GPIO5 and GPIO6 without the patch. You can do this by: bind -a '#G' /dev cd /dev/gpio echo 'scheme bcm' > ctl echo 'function out 5' > ctl echo 'function out 6' > ctl read -c 1 5 read -c 1 6 - Note that the `read` command above reads '0' from file 5 and from file 6. - Now try to change the GPIO pins from 0 (off) to 1 (on) echo '1' > 5 echo '1' > 6 read -c 1 5 read -c 1 6 - Note that the pins still read '0' - Now, apply the patch and repeat the steps above. Except, after you `echo '1' > 5` and `echo '1' > 6`, and then read files "5" and "6", you will see that the pins now read "1" as intended. Thanks, Matt
2022-12-18cwfs: remove noauth and nonone commans from fileserver consolecinap_lenrek
The noauth and nonone commands are only valid in config mode. The problem is that some people assumed that issuing the noauth command in the runtime fileserver console would be persistent across reboots, which is not the case. To avoid this confusion, we remove these commands from the fileserver console. To still give a way to disable authentication at runtime, define a authdisabled flag that can be toggled at runtime.
2022-12-18cwfs: post to /srv instead of #scinap_lenrek
2022-12-18libjson: correctly escape strings in JSONfmt()Ori Bernstein
2022-12-18devip: fix icmp bugscinap_lenrek
icmpdontfrag() was not working properly, need to pass the gating source interface. in fact, we now always pass the source interface to all icmp*() functions, which is used to determine source ip address of the icmp reply. also dont generate a icmp response for packets going to non-unicast addresses (such as broadcast). increase the amount of icmp response payload, but keep icmp responses below the minimum ipv4 mtu (68 bytes). regularize icmpv6 function names. move icmp unreachable codes to icmpv6.c. provide the mtu value for icmppkttoobig6(). dont advise announced udp connections. avoid code duplication in icmp.c and icmpv6.c, by having single send function with type, code and arg parameters. maintain statistics for sent ipv4 icmp types. avoid route lookup in ipout*() by passing Routehint* to icmpnohost*(). iladvise()... more like ill advice.
2022-12-14vt: add OSC 7 support for plumbing of remote files without mount/bind magicSigrid Solveig Haflínudóttir
2022-12-13devip: tcpmssclamp() to minimum of source and destination interface MTUcinap_lenrek
We used to only clamp to the MTU of the destination interface, but this is wrong. We have to clamp to the minimum of both source and destination. For this, we change the gating argument type of ipoput4() and ipoput6() from int to Ipifc* to pass the source interface.
2022-12-12devip: Fix transfoward() iphash collisioncinap_lenrek
We falsely confused locally listening connections as existing translation entires. Fix it.
2022-12-12lib9p: e*9p error tidyJacob Moody
sysfatal has consistent behavior regardless if the user is threaded.
2022-12-12cwfs: add missing \n in error printcinap_lenrek
2022-12-12ndb/dns, ndb/cs: post to /srv instead of #scinap_lenrek
2022-12-12bootrc: let /boot/boot run in a more natural namespacecinap_lenrek
Mount /fd, /proc, /srv and /shr in initcode and open /dev/cons instead of #c/cons. This way, /boot/boot could theoretically be a rc-script and there is less reliance on magic device characters.
2022-12-12ip/dhcpclient: ignore icmp advice messagescinap_lenrek
2022-12-12ip/pptpd: use /fd instead of #dcinap_lenrek
2022-12-12auth/*: use /fd/0 instead of #d/0cinap_lenrek
2022-12-12devsrv: fix recusrion deadlock on removecinap_lenrek
Need to close the channel outside of srvlk, otherwise risk deadlock when recursing.
2022-12-12libauth: aand also fix the leak it in the deactivated codecinap_lenrek
2022-12-12libauth: Fix a memory leak in auth_getkey (thanks josiah fentsos)cinap_lenrek
2022-12-11nusbrc: remove service files left by nusb/kb (thanks kristo)cinap_lenrek
Unplugging and then reattaching a keyboard or a mouse causes nusb/kb to sysfatal() since the service file it's trying to create already exists.
2022-12-11sdmmc: multiple controller supportcinap_lenrek
remove the global sdio struct and add a addmmcio() function for drivers to register their controllers. there is a SDio.aux pointer now where controller drivers can stash a pointer to their private data. SDio.init() also can signal that it wants to be called again for more controllers by returning > 0 (see pc/pmmc.c). this is in preparation for supporting the internal mmc device in the mnt-reform which is hooked up to usdhc1.
2022-12-10imx8: cleanup framebuffer codecinap_lenrek
We can get rid of a bunch of stuff now that we'r using a softscreen. Get rid of the static Memimage and Memdata for the framebuffer; just allocate gscreen as a memimage from the image pool. Avoid exporting fbraw pointer, just have screeninit() return it. Remove fbmemalloc() function. it used to create a write-thru mapping but given that we are no more reading the framebuffer, we can use ucalloc() instead.
2022-12-10ndb/dns: don't try to resolve local dns serverscinap_lenrek
We should have found the ip addresses of our local dns servers from the cache or the database. Also, the rr->host is an ip address string and not a valid domain name so the query there makes no sense.
2022-12-08devip: ignore addmulti() errors in addselfcache()cinap_lenrek
If the interface does not support multicast, ignore it.
2022-12-05imx8: a simple softscreenSigrid Solveig Haflínudóttir
2022-12-05audio/scream: multicast audio protocolcinap_lenrek
2022-12-05page: revert sandbox, breaks postscript fonts for man -P, wrong placecinap_lenrek
The intention is good, but page is the wrong place for this. If ghostscript wants to sandbox, we should do that with a wrapper script so any invocation of ghostscript can be sandboxed.