aboutsummaryrefslogtreecommitdiff
path: root/include/libc.h
Commit message (Collapse)AuthorAgeFilesLines
* libthread: simplifyRuss Cox2020-12-301-2/+0
| | | | | | | | Now that everything uses pthreads and pthreadperthread, can delete various conditionals, all the custom context code, and so on. Also update documents. Fixes #355.
* lib9: use __builtin_return_address on IBM XL/CBen Huntsman2020-05-181-1/+1
|
* lib9: add closeRuss Cox2020-05-171-1/+3
| | | | More preparation for opendir.
* lib9: make a p9frexp function wrapping system frexpRuss Cox2020-01-121-1/+3
| | | | | | Under certain conditions it looks like frexp gets #defined to something else on macOS during system headers, which then breaks the declaration in libc.h.
* lib9: remove getcallerpc implementationsRuss Cox2020-01-071-11/+14
| | | | | | | | These make no sense and are not really needed at all. Add a best-effort attempt to get at the gcc/clang macro in lib9.h, but if it fails, no big deal. Fixes #324.
* lib9/dial: add support for IPv6David du Colombier2012-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The function p9dialparse() returns the host as a sockaddr_storage structure instead of a u32int, to be able to handle both IPv4 and IPv6 addresses. Because the sockaddr_storage structure also handle port numbers and Unix path names, there is no longer need to set them in the calling functions. However, these values are still returned for convenience. The sockaddr_in and sockaddr_un structures have been replaced by sockaddr_storage to handle Unix, IPv4 and IPv6 sockets. Names and addresses are resolved using either gethostbyname() or getaddrinfo() functions. The getaddrinfo() function is documented in RFC2553 and standardized since POSIX.1-2001. It supports both IPv4 and IPv6 addresses. The gethostbyname() function is deprecated since POSIX.1-2008. However, some libc implementations don't handle getaddrinfo() properly, thus we preferred to try gethostbyname() first. I've tried to preserve most of the old code logic to prevent from surprising or unwanted behavior. R=rsc http://codereview.appspot.com/6255068
* libc.h: update comment for 32-bit RuneRuss Cox2009-09-131-2/+3
| | | | http://codereview.appspot.com/116097
* more licensingRuss Cox2009-08-141-0/+4
|
* lib9: add mode parameter to opentempRuss Cox2008-07-101-1/+1
|
* lib9: add write function that withstands interruptsRuss Cox2008-07-041-0/+2
|
* post9pservice: accept mtpt (via fuse)Russ Cox2008-05-051-1/+2
|
* pinrsc2006-06-261-0/+3
|
* simpler USEDrsc2006-06-261-1/+1
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-2/+2
|
* add exitcodersc2006-02-121-0/+1
|
* bsdrsc2006-01-271-11/+0
|
* 9p2000.ursc2006-01-271-0/+2
|
* add text version of install(1)rsc2005-11-281-1/+0
|
* move utf, fmt to libcrsc2005-11-261-0/+3
|
* sched_yield netbsd (anselm garbe)rsc2005-11-161-1/+2
|
* p9syslog for varargckrsc2005-11-071-1/+1
|
* Add print pragmas back, #ifdef'ed.rsc2005-09-291-0/+60
|
* Add 9P2000.u fields.rsc2005-09-131-7/+15
|
* openbsdrsc2005-07-211-1/+1
|
* OpenBSD, thanks to Tim Wiessrsc2005-07-211-0/+10
|
* maybe openbsd has schedyield nowrsc2005-07-191-4/+0
|
* OpenBSD support.rsc2005-05-011-1/+5
|
* appease sun - nil is now just 0 instead of (void*)0rsc2005-03-151-0/+2
| | | | to fix function pointer problems.
* add laddr, raddr to netconninforsc2005-02-131-0/+2
|
* new prototypesrsc2005-02-101-1/+10
|
* add cryptrsc2005-02-081-0/+2
|
* Add searchpath().rsc2005-01-231-0/+1
|
* update return interfacersc2005-01-161-4/+4
|
* Many small edits.rsc2005-01-131-9/+5
|
* debugging for sam, and an old fix forgottenrsc2005-01-071-0/+1
|
* autolib, p9rand, p9execlrsc2005-01-041-14/+19
|
* Rename lrand to p9lrand, too.wkj2004-12-291-0/+1
|
* Use #define to move rand and srand to p9rand and p9srand.wkj2004-12-291-3/+7
|
* add awaitfor and waitforrsc2004-12-271-0/+3
|
* various changes from plan 9rsc2004-12-271-2/+2
|
* new thread libraryrsc2004-12-251-62/+64
|
* Add // to acid thread line so it is executable.rsc2004-09-231-4/+2
| | | | Remove p9fork.
* Continue the pthreads torture.rsc2004-09-211-0/+1
|
* Continue switching library over to pthreads when possible.rsc2004-09-171-0/+1
| | | | | Tprimes works on Linux 2.6. You can only have 128 procs though.
* Rewrite to remove dependence on rendezvous and its bizarrersc2004-09-171-8/+35
| | | | | | | data structures. Makes it easier to use pthreads too. Still need to add code for non-pthreads systems. Just a checkpoint to switch work to another machine.
* various fixesrsc2004-06-161-0/+1
|
* add OLOCKrsc2004-06-111-0/+1
|
* catch strdup, malloc, and friendsrsc2004-06-091-2/+4
|
* lock malloc ourselvesrsc2004-05-231-6/+6
|
* add -W to specify window size.rsc2004-04-291-1/+3
| | | | various other little fixes.