Commit graph

1626 commits

Author SHA1 Message Date
Arne
b0e7312a62 gefs(8): fix indent of empty snapshot paragraph 2025-01-08 19:36:17 +00:00
Jacob Moody
28465682cf kprof: don't downsample the pc
Kprof rounded the pc to 8 byte boundaries in order to save memory.
With x86 instruction rounding this can lead to some pretty misleading
results.

With the old rounding kpdata was ~680kb for a pc64 kernel, with this
change we use ~5.4M (8x) and considering we only allocate when we
first attach this seems reasonable.
2025-01-05 00:26:52 +00:00
Jacob Moody
9e0913fa71 libmemdraw: change openmemsubfont() to accept rune minimum as argument
Subfonts for non ascii characters are offset by some minimum rune,
typically specified within the parent font file.  Because libmemdraw
only deals in subfonts, if we want to have it draw non ascii runes we
need some method of providing that base offset.

This function is only used in one place, so update the function
signature and fix the only caller.
2025-01-03 00:51:43 +00:00
cinap_lenrek
e981a26000 libc: provide netmkaddrbuf() function avoiding the static buffer
We need a reentrant version for netmkaddr() that
can be used in multithreaded programs.
2025-01-02 20:09:50 +00:00
Jacob Moody
68c89f4a43 acid: remove outdated 8.out binary default (thanks Tekk) 2024-12-27 19:29:34 +00:00
Jacob Moody
242e1dc552 vdiff: accept diff as filename argument and man page touch-up (thanks humm) 2024-12-26 03:54:31 +00:00
Jacob Moody
ed318aac59 rio(4): fix paragraph spacing (thanks humm) 2024-12-26 03:53:18 +00:00
Ori Bernstein
d4938f099d auth/totp(1): separate docs for auth/totp, auth/userpasswd 2024-12-25 17:33:17 +00:00
Ori Bernstein
21731dd45e auth/factotum: add support for TOTP code generation 2024-12-25 02:18:43 +00:00
Jacob Moody
7814ec46c3 git: make git/diff -s print relative file paths
This makes the output of git/diff -s plumbable
when the user is not within the root of the git repo.
This is implemented through adding a flag to git/walk
and having git/walk work out how many '..'s are needed.

Also includes a small piece of documentation regarding
the use of $editor in git/commit.
2024-12-22 21:06:53 +00:00
Ori Bernstein
8e2a071b8b acme/Mail: fix redrawn line offsets, add support for flag filters
maintaining ->nsub was fragile, and didn't save very many cycles;
instead just compute it every time; it's only going to hurt with
a ton of giant threads.
2024-12-09 05:27:05 +00:00
Ori Bernstein
af83b606f9 upas/Mail: Add support for message filtering 2024-12-09 03:58:40 +00:00
cinap_lenrek
aa1e68e9fe nusbrd: pass $usbdebug to nusb/usbd
This can be usefull for debugging usb enumeration issues from boot,
if one has the chance to pass parameters on the bootloader.

It was initially suggested in a troubleshooting session todo as
a quick modification, but it can be usefull in general.
2024-12-09 01:30:16 +00:00
Arne
ff65b74935 nusb/joy: support xbox360 controllers
Added a custom hid descriptor for Xbox360 controllers.
Up to six axes are now supported for analog input.
Added a simple deadband filter for analog axes.
2024-12-03 20:21:37 +00:00
Jacob Moody
6bc1ec47a0 factotum(4): minor typo 2024-11-30 23:51:18 +00:00
cinap_lenrek
4ed03dff93 auth/factotum: mount factotum onto /mnt/factotum instead of /mnt by default
Factotum used to mount itself on /mnt and serving the first-level
directory "factotum" itself. This has the undesired consequence
that it has to respond to all walks crossing the /mnt directory.

Instead, we make factotum interpret the previously ignored
mount-spec (aname). If it is "factotum", it serves the
factotum directory as the root, so it can be directly mounted
onto /mnt/factotum. For backwards compatibility, the old
behaviour is preserved.

The namespace file will now always mount factotum onto /mnt/factotum.
In the case of a old factotum, that ignores the mount-spec,
do a bind moving /mnt/factotum/factotum to /mnt/factotum.
2024-11-23 16:05:11 +00:00
qwx
493bac79b6 pstree: reimplement in awk, optionally restrict to a given process 2024-10-30 23:43:47 +00:00
Jacob Moody
5969b872bb ip/tftpd: accept an address to announce to as an argument. 2024-10-30 21:46:39 +00:00
cinap_lenrek
6894c4e13a ppp: pass -i flag to ip/ipconfig (-i for ipv4, -I for ipv6) to populate ipnet= entries 2024-10-28 19:08:23 +00:00
cinap_lenrek
5f59652ae1 ip/ipconfig: implement dhcpv6 prefix delegation, dynamic client
Implement prefix delegation by requesting a
prefix and populate ipnet=val entry (val
passed from -i option).

Before, DHCPv6 was just implemented for stateless
one-shot operation, just exiting once we got out
IA address.

Moodies mediacom-enterprise-enterprise-ISP...
... they actually do enterprise-grade dyanmic dhcpv6
so here we are, implementing renewals...
2024-10-28 19:06:47 +00:00
cinap_lenrek
3e4e1b0211 ip(3): ra6 routerlt is in seconds, not ms. 2024-10-27 22:57:39 +00:00
cinap_lenrek
41d0149194 devusb: fix TT properties, checking, and bugs
When a low/full speed device is connected to a USB2.0 hub,
the USB2.0 hub needs to be send special split transaction
protocol messages to communicate with the device below.

This also applies if the fullspeed/lowspeed device is not
directly connected to the USB2.0 hub, but has a fullspeed
hub in between like:

rootport -> usb2.0 hub -> usb1.1 hub -> fs/ls device

In this case, the tranaction translator is actually
the first hub, nut the direct parent of the device.

This was all totally wrong in the hci drivers drivers.

Also, with the new interface, usbd passes number of
ports, and TT properties in the "hub" ctl message,
so the port-count, TT Think-Time and Multi-TT properties
can be properly applied by the xhci driver.

Another bug was that the xhci route string was not
correct if a hub has more than 15 ports. A USB2.0
hub can have more than 15 ports and the standard sais
that in this case a value of 15 should be used in
its bit routestring nibble.

Also, check the hub depth. We should not exceed more
than 5 hubs.

For xhci, it turns out the hub parameters where
actually never properly applied, as the spec sais
only the first "create endpoint" command applies
the hub parameters. The "evaluate context" command
does not work.

Some pikeshedding in devusb:

- fix the freaking locking.
- remove redundant parameters (isroot -> depth < 0, ishub -> nports > 0)
- add TT properties to usb device struct

With these changes, the wired "middle port" issues
on mnt-reform xhci are gone.
2024-10-23 21:54:48 +00:00
cinap_lenrek
fcdfb151e2 kernel: Limit parsecmd() to a maximum of READSTR bytes
A user can create a large demand paged segment
and then do write to a ctl file with a very large buffer
driving the kernel into an out-of-memory condition.

For all practcal purposes, limit the input buffer size
to something reasonable. READSTR is 8000 bytes, which
would be enougth for even the largest ctl messages.
2024-10-20 12:07:08 +00:00
Ori Bernstein
5beba2cf33 upasfs(4): make the name match the executable path
this allows us to look up the manpage by the command
that would be used to invoke it, once the indexes get
rebuilt.
2024-10-18 23:24:36 +00:00
rodri
708ff097a6 libgeometry: add ptincylinder and ptincone 2024-10-14 12:04:35 +00:00
rodri
b6b5e569e9 geometry(2): fix little typo 2024-10-14 11:22:53 +00:00
rodri
65ea63e521 libgeometry: add quaternion sandwich product functions
also took the chance to remove the semicolons from
the function signatures in the manpage synopsis, as
is custom in the other manuals.
2024-10-14 11:14:50 +00:00
cinap_lenrek
4df9d68adb devusb: better usbid allocation, fix locking, remove dump ctl
usbid's where globally allocated with a generation counter,
but it would not free usbid's when freed out of order
resulting in overflow.

instead, we use a different scheme, where we allocate the
next higher id until we run out and then allocate the next
lowest id.

properly maintain epmax as well when putep() when out of
order.

make newdev() and newdevep() return the new Ep* with a
reference taken, preventing someone from freeing the ep
under us.

fix the locking, so once we release the epslock, all endpoints
have the ep->dev set properly and remove impossible checks.

remove the annoying "dump" ctl that spams the console.
2024-10-09 20:14:34 +00:00
Jacob Moody
6ebfbaa826 isalpharune(2): invalid Runes are just > Runemax 2024-10-05 00:43:38 +00:00
Ori Bernstein
394e9c2235 libc/runeistype: accept out of range runes
out of range runes should just return 0 for whether
they're within any of the classes.
2024-10-05 00:06:50 +00:00
Jacob Moody
f3f659b54b look: fix case sensitivity when using base > 10
Old attempt at this did not make any sense.
Also fix the reference to look in ascii(1) to be more correct.
2024-09-29 18:35:30 +00:00
cinap_lenrek
ce97bb4998 merge 2024-09-09 16:54:41 +00:00
qwx
084c9d6eba g: add .in, fix earlier fuckup (thanks mkf)
2d63bdbb44 was pushed modified
compared to the patch actually submitted by mkf, in error.
2024-09-04 19:57:16 +00:00
cinap_lenrek
87cbf8e792 sshnet(4): fix title (thanks arne) 2024-08-31 18:50:25 +00:00
rodri
b05c74e7cb geometry(2): correct typo (thanks ndeuteron!) 2024-08-23 10:14:50 +00:00
rodri
7059938e94 libgeometry: add lineXsphere function 2024-08-19 21:30:14 +00:00
Ori Bernstein
a584d29458 tmdate(2): fix formatting for sub-second specifiers 2024-08-10 10:04:22 +00:00
Jacob Moody
9c0f4aa0e5 9p(2): typos
The changes from british to american spelling here follows
what spell(1) thinks, and seems to be more common based on
other manual pages.
2024-08-01 14:33:32 +00:00
Jacob Moody
821e6690d3 2l(1): add 7l and 9l 2024-07-28 20:41:59 +00:00
Jacob Moody
f9212297bd 2c(1): add 9c 2024-07-28 20:17:16 +00:00
cinap_lenrek
11cd33bcec kernel: make fixedpri work.
Fix and document the "fixedpri" control.
2024-07-21 13:00:48 +00:00
Ori Bernstein
6a049aafed history: add support for gefs dumps 2024-07-18 16:49:31 +00:00
Ori Bernstein
51c899ca01 bio(2): fix formatting 2024-07-14 19:49:00 +00:00
Sigrid Solveig Haflínudóttir
c9a153088d sam(1): ^ does not take any range 2024-06-17 22:03:20 +00:00
Romano
0dc37f9794 dhcpd(8): typos 2024-06-10 04:42:52 +00:00
umbraticus
828c577e03 sam: introduce a new command M for adding commands to mouse b2 menu 2024-06-01 22:55:26 +00:00
rodri
9bbbc13ce2 libgeometry: simplify rframes
i got rid of redundant code, and added routines
to get the xform matrix out of an rframe, so it
can be stored and used separately or as part of
a composition of xforms.

also replaced the big example in the man page for
more concise, useful ones.
2024-05-30 21:11:33 +00:00
Alex Musolino
31b7b7a75b sshnet(4): merge usage lines 2024-05-30 12:46:01 +00:00
cinap_lenrek
dc85e6d01a ipconfig(8): fix /net/null vs /dev/null (thanks humm) 2024-05-28 17:25:52 +00:00
sl
421057ca68 /sys/man/8/plan9.ini: document the existence of git.9front.org/plan9front/firmware (thanks, orib) 2024-05-27 23:59:22 +00:00