Manual pages - Section 2: library functions
- intro — introduction to library functions
- Cmdbuf, parsecmd, respondcmderror, lookupcmd — control message parsing
- abort — generate a fault
- abs, labs — integer absolute values
- access — determine accessibility of file
- addpt, subpt, mulpt, divpt, rectaddpt, rectsubpt, insetrect, canonrect, eqpt, eqrect, ptinrect, rectinrect, rectXrect, rectclip, combinerect, badrect, Dx, Dy, Pt, Rect, Rpt — arithmetic on points and rectangles
- allocimage, allocimagemix, freeimage, nameimage, namedimage, setalpha, loadimage, cloadimage, unloadimage, readimage, writeimage, bytesperline, wordsperline — allocating, freeing, reading, writing images
- ARGBEGIN, ARGEND, ARGC, ARGF, EARGF — process option letters from argv
- add3, sub3, neg3, div3, mul3, eqpt3, closept3, dot3, cross3, len3, dist3, unit3, midpt3, lerp3, reflect3, nearseg3, pldist3, vdiv3, vrem3, pn2f3, ppp2f3, fff2p3, pdiv4, add4, sub4 — operations on 3-d points and planes
- assert — check program invariants
- atof, atoi, atol, atoll, charstod, strtod, strtol, strtoll, strtoul, strtoull — convert text to numbers
- amount, newns, addns, login, noworld, auth_proxy, fauth_proxy, auth_allocrpc, auth_freerpc, auth_rpc, auth_getkey, amount_getkey, auth_freeAI, auth_chuid, auth_challenge, auth_response, auth_freechal, auth_respond, auth_respondAI, auth_userpasswd, auth_getuserpasswd, auth_getinfo — routines for authenticating users
- authdial, passtokey, nvcsum, readnvram, convT2M, convM2T, convTR2M, convM2TR, convA2M, convM2A, convPR2M, convM2PR, _asgetticket, _asrequest, _asgetresp, _asrdresp, _asgetpakkey, authpak_hash, authpak_new, authpak_finish — routines for communicating with authentication servers
- binalloc, bingrow, binfree — grouped memory allocation
- bind, mount, unmount — change name space
- Bopen, Bfdopen, Binit, Binits, Brdline, Brdstr, Bgetc, Bgetrune, Bgetd, Bungetc, Bungetrune, Bread, Bseek, Boffset, Bfildes, Blinelen, Bputc, Bputrune, Bprint, Bvprint, Bwrite, Bflush, Bterm, Bbuffered, Blethal — buffered input/output
- brk, sbrk — change memory allocation
- cachechars, agefont, loadchar, Subfont, Fontchar, Font — font utilities
- setupChachastate, chacha_setblock, chacha_setiv, chacha_encrypt, chacha_encrypt2, hchacha, ccpoly_encrypt, ccpoly_decrypt — chacha encryption
- chdir — change working directory
- cleanname — clean a path name
- cmap2rgb, cmap2rgba, rgb2cmap — colors and color maps
- complete — file name completion
- cputime, times, cycles — cpu time in this process and children
- ctime, localtime, gmtime, asctime, tm2sec, timezone — convert date and time
- isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii, toascii, _toupper, _tolower, toupper, tolower — ASCII character classification
- dial, hangup, announce, listen, accept, reject, netmkaddr, setnetmtpt, getnetconninfo, freenetconninfo — make and break network connections
- dirread, dirreadall — read directory
- opendisk, Disk — generic disk device interface
- dup — duplicate an open file descriptor
- encrypt, decrypt, netcrypt — DES encryption
- errstr, rerrstr, werrstr — description of last system call error
- event, einit, estart, estartfn, etimer, eread, emouse, ekbd, ecanread, ecanmouse, ecankbd, ereadmouse, eatomouse, eresized, egetrect, edrawgetrect, emenuhit, eenter, emoveto, esetcursor, Event, Mouse, Menu — graphics events
- exec, execl, _privates, _nprivates, _tos — execute a file
- exits, _exits, atexit, atexitdont, terminate — terminate process, process cleanup
- exp, log, log10, pow, pow10, sqrt — exponential, logarithm, power, square root
- fauth — set up authentication on a file descriptor to a file server
- Fcall, convS2M, convD2M, convM2S, convM2D, fcallfmt, dirfmt, dirmodefmt, read9pmsg, statcheck, sizeS2M, sizeD2M — interface to Plan 9 File protocol
- fd2path — return file name associated with file descriptor
- fgetc, getc, getchar, fputc, putc, putchar, ungetc, fgets, gets, fputs, puts, fread, fwrite — Stdio input and output
- deflateinit, deflate, deflatezlib, deflateblock, deflatezlibblock, inflateinit, inflate, inflatezlib, inflateblock, inflatezlibblock, flateerr, mkcrctab, blockcrc, adler32 — deflate compression
- fabs, fmod, floor, ceil — absolute value, remainder, floor, ceiling functions
- fmtinstall, dofmt, dorfmt, fmtprint, fmtvprint, fmtrune, fmtstrcpy, fmtrunestrcpy, fmtfdinit, fmtfdflush, fmtstrinit, fmtstrflush, runefmtstrinit, runefmtstrflush, errfmt — support for user-defined print formats and output routines
- fopen, freopen, fdopen, fileno, fclose, sopenr, sopenw, sclose, fflush, setvbuf, setbuf, fgetpos, ftell, fsetpos, fseek, rewind, feof, ferror, clearerr — standard buffered input/output package
- fork, rfork — manipulate process resources
- fprintf, printf, sprintf, snprintf, vfprintf, vprintf, vsprintf, vsnprintf — print formatted output
- frinit, frsetrects, frinittick, frclear, frcharofpt, frptofchar, frinsert, frdelete, frselect, frtick, frselectpaint, frdrawsel, frdrawsel0, frgetmouse — frames of text
- frexp, ldexp, modf — split into mantissa and exponent
- fscanf, scanf, sscanf, vfscanf — scan formatted input
- fversion — initialize 9P connection and negotiate version
- getcallerpc — fetch return PC of current function
- getenv, putenv — access environment variables
- getfcr, setfcr, getfsr, setfsr — control floating point
- getfields, gettokens, tokenize — break a string into fields
- getpid, getppid — get process ids
- getuser, sysname — get user or system name
- getwd — get current directory
- Display, Point, Rectangle, Cursor, initdraw, geninitdraw, newwindow, drawerror, initdisplay, closedisplay, getdefont, getwindow, gengetwindow, flushimage, bufimage, lockdisplay, unlockdisplay, openfont, buildfont, freefont, Pfmt, Rfmt, strtochan, chantostr, chantodepth — interactive graphics
- hypot — Euclidean distance
- utf2idn, idn2utf — convert internationalized domain names to and from unicode
- iounit — return size of atomic I/O unit for file descriptor
- eipfmt, parseip, parseipmask, parseipandmask, v4parseip, parseether, myipaddr, myetheraddr, maskip, equivip4, equivip6, defmask, isv4, v4tov6, v6tov4, nhgetv, nhgetl, nhgets, hnputv, hnputl, hnputs, ptclbsum, readipifc — Internet Protocol addressing
- isalpharune, islowerrune, isspacerune, istitlerune, isupperrune, isdigitrune, tolowerrune, totitlerune, toupperrune — Unicode character classes and cases
- initkeyboard, ctlkeyboard, closekeyboard — keyboard control
- malloc, mallocalign, mallocz, free, realloc, calloc, msize, setmalloctag, setrealloctag, getmalloctag, getrealloctag, malloctopoolblock — memory allocator
- ident, matmul, matmulr, determinant, adjoint, invertmat, xformpoint, xformpointd, xformplane, pushmat, popmat, rot, qrot, scale, move, xform, ixform, persp, look, viewport — Geometric transformations
- memdraw, memlalloc, memldelete, memlexpose, memlfree, memlhide, memline, memlnorefresh, memload, memunload, memlorigin, memlsetrefresh, memltofront, memltofrontn, memltorear, memltorearn — windows of memory-resident images
- memccpy, memchr, memcmp, memcpy, memmove, memset — memory operations
- mktemp — make a unique file name
- initmouse, readmouse, closemouse, moveto, getrect, drawgetrect, menuhit, setcursor, enter — mouse control
- mpsetminbits, mpnew, mpfree, mpbits, mpnorm, mpcopy, mpassign, mprand, mpnrand, strtomp, mpfmt, mptoa, betomp, mptobe, mptober, letomp, mptole, mptolel, mptoui, uitomp, mptoi, itomp, uvtomp, mptouv, vtomp, mptov, mptod, dtomp, mpdigdiv, mpadd, mpsub, mpleft, mpright, mpmul, mpexp, mpmod, mpmodadd, mpmodsub, mpmodmul, mpdiv, mpcmp, mpsel, mpfactorial, mpextendedgcd, mpinvert, mpsignif, mplowbits0, mpvecdigmuladd, mpvecdigmulsub, mpvecadd, mpvecsub, mpveccmp, mpvecmul, mpmagcmp, mpmagadd, mpmagsub, crtpre, crtin, crtout, crtprefree, crtresfree — extended precision arithmetic
- muldiv, umuldiv — high-precision multiplication and division
- NaN, Inf, isNaN, isInf — not-a-number and infinity functions
- ndbopen, ndbcat, ndbchanged, ndbclose, ndbreopen, ndbsearch, ndbsnext, ndbgetvalue, ndbfree, ipattr, ndbgetipaddr, ndbipinfo, csipinfo, ndbhash, ndbparse, csgetvalue, ndbfindattr, dnsquery, ndbdiscard, ndbconcatenate, ndbreorder, ndbsubstitute, ndbdedup — network database
- notify, noted, atnotify — handle asynchronous process notification
- objtype, readobj, objtraverse, isar, nextar, readar — object file interpretation functions
- open, create, close — open a file for reading or writing, create file
- perror, syslog, sysfatal — system error messages
- pipe — create an interprocess channel
- eplumb, plumbfree, plumbopen, plumbsend, plumbsendtext, plumblookup, plumbpack, plumbpackattr, plumbaddattr, plumbdelattr, plumbrecv, plumbunpack, plumbunpackpartial, plumbunpackattr, Plumbmsg — plumb messages
- postnote — send a note to a process or process group
- genprime, gensafeprime, genstrongprime, DSAprimes, probably_prime, smallprimetest — prime number generation
- print, fprint, sprint, snprint, seprint, smprint, runesprint, runesnprint, runeseprint, runesmprint, vfprint, vsnprint, vseprint, vsmprint, runevsnprint, runevseprint, runevsmprint — print formatted output
- privalloc — per-process private storage management
- procsetname — set process arguments
- rdproto — parse and process a proto file listing
- pushssl — attach SSL version 2 encryption to a communication channel
- pushtls, tlsClient, tlsServer, initThumbprints, freeThumbprints, okThumbprint, okCertificate, readcert, readcertchain — attach TLS1 or SSL3 encryption to a communication channel
- qball — 3-d rotation controller
- qsort — quicker sort
- qtom, mtoq, qadd, qsub, qneg, qmul, qdiv, qunit, qinv, qlen, slerp, qmid, qsqrt — Quaternion arithmetic
- quotestrdup, quoterunestrdup, unquotestrdup, unquoterunestrdup, quotestrfmt, quoterunestrfmt, quotefmtinstall, doquote, needsrcquote — quoted character strings
- rand, lrand, frand, nrand, lnrand, srand, truerand, ntruerand, genrandom, prng, fastrand, nfastrand — random number generators
- read, readn, write, pread, pwrite — read or write file
- RGB, readcolmap, writecolmap — access display color map
- readv, writev, preadv, pwritev — scatter/gather read and write
- regcomp, regcomplit, regcompnl, regexec, regsub, rregexec, rregsub, regerror — regular expression
- remove — remove a file
- rendezvous — user level process synchronization
- runetochar, chartorune, runelen, runenlen, fullrune, utfecpy, utflen, utfnlen, utfrune, utfrrune, utfutf — rune/UTF conversion
- satnew, satadd1, sataddv, satrange1, satrangev, satsolve, satmore, satval, satreset, satfree — boolean satisfiability (SAT) solver
- openscsi, closescsi, scsiready, scsi, scsicmd, scsierror — SCSI device operations
- seek — change file offset
- segattach, segdetach, segfree — map/unmap a segment in virtual memory
- segbrk — change memory allocation
- segflush — flush instruction and data caches
- setjmp, longjmp, notejmp — non-local goto
- sin, cos, tan, asin, acos, atan, atan2 — trigonometric functions
- sinh, cosh, tanh — hyperbolic functions
- sleep, alarm — delay, ask for delayed note
- stat, fstat, wstat, fwstat, dirstat, dirfstat, dirwstat, dirfwstat, nulldir — get and put file status
- strcat, strncat, strcmp, strncmp, cistrcmp, cistrncmp, strcpy, strncpy, strecpy, strlen, strchr, strrchr, strpbrk, strspn, strcspn, strtok, strdup, strstr, cistrstr — string operations
- s_alloc, s_append, s_array, s_copy, s_error, s_free, s_incref, s_memappend, s_nappend, s_new, s_newalloc, s_parse, s_reset, s_restart, s_terminate, s_tolower, s_putc, s_unique, s_grow, s_read, s_read_line, s_getline — extensible strings
- stringsize, stringwidth, stringnwidth, runestringsize, runestringwidth, runestringnwidth — graphical size of strings
- allocsubfont, freesubfont, installsubfont, lookupsubfont, uninstallsubfont, subfontname, readsubfont, readsubfonti, writesubfont, stringsubfont, strsubfontwidth, mkfont — subfont manipulation
- time, nsec — time in seconds and nanoseconds since epoch
- tmpfile, tmpnam — Stdio temporary files
- venti — archival storage server
- vtconnect, vthello, vtread, vtwrite, vtreadpacket, vtwritepacket, vtsync, vtping, vtrpc, ventidoublechecksha1 — Venti client
- vtsrvhello, vtlisten, vtgetreq, vtrespond — Venti server
- vtzerotruncate, vtzeroextend, vtzeroscore — Venti block truncation
- await, wait, waitpid — wait for a process to exit
- Screen, allocscreen, publicscreen, freescreen, allocwindow, bottomwindow, bottomnwindows, topwindow, topnwindows, originwindow — window management