summaryrefslogtreecommitdiff
path: root/sys/man/2
AgeCommit message (Collapse)Author
2021-01-16tmdate(2): correct example in manpageOri Bernstein
add missing tmdate() call around %τ format.
2021-01-09libdraw: add bezierptsOri Bernstein
This patch exposes the bezierpts function, providing a way to get the points on a path, similar how bezsplinepts gives them for b splines.
2021-01-069pfid(2): document struct Qid (thanks sirjofri)Ori Bernstein
The Qid struct is pervasive when writing 9p servers, but is not described in the manpages. This adds a definition to the 9pfid manpage.
2020-12-23libc: re-implement getuser() by stating /proc/$pid/statuscinap_lenrek
The idea is to avoid the magic files that contain per process information in devcons when possible. It will make it easier to deprecate them in the future.
2020-12-19libauth: add procsetuser() function to change user id of the calling processcinap_lenrek
Provide a central function to change the user id of the calling process. This is mostly used by programs to become the none user, followed by a call to newns().
2020-12-19libc: implement getppid() reading /proc/$pid/ppid instead of /dev/ppidcinap_lenrek
The devcons driver is really the wrong place to serve per process information.
2020-12-13kernel: implement per file descriptor OCEXEC flag, reject ORCLOSE when ↵cinap_lenrek
opening /fd, /srv and /shr The OCEXEC flag used to be maintained per channel, making it shared between all the file desciptors. This has a unexpected side effects with regard to channel passing drivers such as devdup (/fd), devsrv (/srv) and devshr (/shr). For example, opening a /srv file with OCEXEC makes it impossible to be remounted by exportfs as it internally does a exec() to mount and re-export it. There is no way to reset the flag. This change makes the OCEXEC flag per file descriptor, so a open with the OCEXEC flag only affects the fd group of the calling process, and not the channel itself. On rfork(RFFDG), the per file descriptor flags get copied. On dup(), the per file descriptor flags are reset. The second modification is that /fd, /srv and /shr should reject the ORCLOSE flag, as the files that are returned have already been opend.
2020-11-30tmdate(2): remove liesOri Bernstein
Initially the code tried to guess the date format. This turned out to be a bit too magical, so the feature was removed, but the manpage still documented the nonfeature.
2020-11-18tmdate(2): failed to (p)arseSigrid
2020-11-18ctime(2): add tmdate(2) to "see also"Sigrid
2020-11-01libbio: add aux pointer to bioOri Bernstein
This allows us to attach additional context to the biobuf so can read from some sort of data structure without a global variable.
2020-10-24mp(2): correct documentation of error handling (thanks LordCreepity)Ori Bernstein
The documentation for mp(2) claimed we'd return nil on error, when we actually sysfatal. This corrects the documentation to match our actual behavior.
2020-09-25tmdate(1): fix missing arg, fix formatting (thanks joe9)Ori Bernstein
2020-09-25mergeOri Bernstein
2020-09-25tmdate(2): fix mistakes in prototype (thanks moody)Ori Bernstein
2020-09-22libc: ignore '?' in date format stringsOri Bernstein
Ignoring '?' when formatting date strings allows the format strings to be reused for parsing. This is convenient, since we don't need to duplicate the format strings.
2020-09-12tmdate(1): document tz fieldOri Bernstein
2020-09-10ctime(2), tmdate(2): document ctime/tmparse incompatibilityOri Bernstein
Tmparse and ctime don't mix. The timezone name may be too long for the number of characters ctime mandates. Document this footgun.
2020-09-07tmdate(2): one more typoOri Bernstein
no more top arse. only bottom arse.
2020-09-07tmdate(2): fix examples, stale references (thanks deuteron)Ori Bernstein
There were a number of ideas that were tried out as the tmdate api evolved. As a result, there were some references in the manpage to things that are no more. Fix them.
2020-09-07tmdate(2): fix name of tm structOri Bernstein
There was a leftover from when this library was separate with different types.
2020-09-01tmparse: put in local timezone hackOri Bernstein
Ctime is defined as printing a 3-character timezone name. The timezone name is ambiguous. For example, EST refers to both Australian and American eastern time. On top of that, we don't want to make the tzabbrev table exhaustive. So, we put in this hack: Before we consult the well known table of timezones, we check if the local time matches the timezone name. On top of that, tm2sec If you want unambiguous timezone parsing, use numeric timezone offsets (Z, ZZ formats).
2020-08-26libc: tmparse should ignore leading whitespaceOri Bernstein
We almost always want to skip leading whitespace in time formats, so make tmparse just do it. This fixes upas mbox parsing, which leaves a leading whitespace at the start of the date.
2020-08-25getwd(2): add reference to chdir(2) in SEE ALSO sectionAlex Musolino
2020-08-25chdir(2): add reference to getwd(2) in SEE ALSO sectionAlex Musolino
2020-08-10tmdate(2): fix typo (thanks mveety)Ori Bernstein
sysfata => sysfatal
2020-08-09libc: new date apisOri Bernstein
The current date and time APIs on Plan 9 are not good. They're inflexible, non-threadsafe, and don't expose timezone information. This commit adds new time APIs that allow parsing arbitrary dates, work from multiple threads, and can handle timezones effectively.
2020-06-28graphics(2): fix typokvik
2020-06-259p(2): fix typokvik
2020-06-15libc: revert date change again. this is getting ridicuoulus.cinap_lenrek
this breaks the sample from the seconds manpage, and overall produces funky results. this needs alot more testing. term% seconds '23 may 2011' seconds: tmparse: invalid date 23 may 2011 near 'may 2011' term% seconds '2019-01-01 00:00:00' -118370073600
2020-06-14libc, seconds: new time and date apis (try 2)Ori Bernstein
Redo date handling in libc almost entirely. This allows handling dates and times from outside your timezones, fixes timezone loading in multithreaded applications, and allows parsing and formatting using custom format strings. As a test of the APIs, we replace the formatting code in seconds(1), shrinking it massively. The last commit missed a few removals, and made it unnecessarily hard to do an update.
2020-06-14libc: reverting previous change until ori can fix itcinap_lenrek
2020-06-13libc, seconds: new time and date apis.Ori Bernstein
Redo date handling in libc almost entirely. This allows handling dates and times from outside your timezones, fixes timezone loading in multithreaded applications, and allows parsing and formatting using custom format strings. As a test of the APIs, we replace the formatting code in seconds(1), shrinking it massively.
2020-04-07notify(2): fix typoAlex Musolino
2020-03-28we prefer nil over 0, make the example show it.Ori Bernstein
2020-03-08lib9p: implement automatic remove-on-close cleanup in postsharesrv(), remove ↵cinap_lenrek
postfd() and sharefd() functions with the latest changes to shr(3), we can use ORCLOSE on the control file to get the mount in the share automatically removed when the server exits or something goes wrong during postsharesrv(). do not expose postfd() and sharefd() functions. they where undocumented and leak the control file descriptors.
2020-03-089p(2): document all the effective rfork flags for postmountsrv()cinap_lenrek
2020-03-089p(2): document the filedescriptor sharing behaviour of postmountsrv()cinap_lenrek
2020-03-07lib9p: get rid of Srv.nopipe and Srv.leavefdsopen hackscinap_lenrek
it is unclear how Srv.nopipe flag should work inside postmountserv(). if a server wants to serve on stdio descriptors, he can just call srv() after initializing Srv.infd and Srv.outfd. The Srv.leavefdsopen hack can be removed now that acme win has been fixed.
2020-03-01libsec: remove hash pickle functions, document ripemd160, cleanup sechash(2) ↵cinap_lenrek
manpage
2019-12-219p(2): fix sentence for wstat function (thanks jsmoody)cinap_lenrek
2019-12-19thread(2): fix description of when/why procexec(l) functions returnAlex Musolino
2019-12-18flate(2): fix typos (thanks rgl)Alex Musolino
2019-11-12thread(2): fix manpage typos (thanks rgl)Ori Bernstein
2019-11-11draw(2): fix manpage typo (thanks rgl)Ori Bernstein
2019-09-06sys/src/libventi: implement vtreconn and vtredial functionsDavid du Colombier
2019-09-04rune(2): complete source referencescinap_lenrek
2019-08-30rsa(2): document asn1encodeRSApriv() and asn1encodeRSApub() functionscinap_lenrek
2019-05-14nusb(2): remove startdevs() reference, document getdev() (thanks BurnZeZ)cinap_lenrek
2019-05-11memdraw(2): remove references to iprint()BurnZeZ