aboutsummaryrefslogtreecommitdiff
path: root/include/libc.h
AgeCommit message (Collapse)AuthorFilesLines
2020-05-18lib9: use __builtin_return_address on IBM XL/CBen Huntsman1-1/+1
2020-05-17lib9: add closeRuss Cox1-1/+3
More preparation for opendir.
2020-01-12lib9: make a p9frexp function wrapping system frexpRuss Cox1-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.
2020-01-07lib9: remove getcallerpc implementationsRuss Cox1-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.
2012-06-02lib9/dial: add support for IPv6David du Colombier1-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
2009-09-13libc.h: update comment for 32-bit RuneRuss Cox1-2/+3
http://codereview.appspot.com/116097
2009-08-14more licensingRuss Cox1-0/+4
2008-07-10lib9: add mode parameter to opentempRuss Cox1-1/+1
2008-07-04lib9: add write function that withstands interruptsRuss Cox1-0/+2
2008-05-05post9pservice: accept mtpt (via fuse)Russ Cox1-1/+2
2006-06-26pinrsc1-0/+3
2006-06-26simpler USEDrsc1-1/+1
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc1-2/+2
2006-02-12add exitcodersc1-0/+1
2006-01-27bsdrsc1-11/+0
2006-01-279p2000.ursc1-0/+2
2005-11-28add text version of install(1)rsc1-1/+0
2005-11-26move utf, fmt to libcrsc1-0/+3
2005-11-16sched_yield netbsd (anselm garbe)rsc1-1/+2
2005-11-07p9syslog for varargckrsc1-1/+1
2005-09-29Add print pragmas back, #ifdef'ed.rsc1-0/+60
2005-09-13Add 9P2000.u fields.rsc1-7/+15
2005-07-21openbsdrsc1-1/+1
2005-07-21OpenBSD, thanks to Tim Wiessrsc1-0/+10
2005-07-19maybe openbsd has schedyield nowrsc1-4/+0
2005-05-01OpenBSD support.rsc1-1/+5
2005-03-15appease sun - nil is now just 0 instead of (void*)0rsc1-0/+2
to fix function pointer problems.
2005-02-13add laddr, raddr to netconninforsc1-0/+2
2005-02-10new prototypesrsc1-1/+10
2005-02-08add cryptrsc1-0/+2
2005-01-23Add searchpath().rsc1-0/+1
2005-01-16update return interfacersc1-4/+4
2005-01-13Many small edits.rsc1-9/+5
2005-01-07debugging for sam, and an old fix forgottenrsc1-0/+1
2005-01-04autolib, p9rand, p9execlrsc1-14/+19
2004-12-29Rename lrand to p9lrand, too.wkj1-0/+1
2004-12-29Use #define to move rand and srand to p9rand and p9srand.wkj1-3/+7
2004-12-27add awaitfor and waitforrsc1-0/+3
2004-12-27various changes from plan 9rsc1-2/+2
2004-12-25new thread libraryrsc1-62/+64
2004-09-23Add // to acid thread line so it is executable.rsc1-4/+2
Remove p9fork.
2004-09-21Continue the pthreads torture.rsc1-0/+1
2004-09-17Continue switching library over to pthreads when possible.rsc1-0/+1
Tprimes works on Linux 2.6. You can only have 128 procs though.
2004-09-17Rewrite to remove dependence on rendezvous and its bizarrersc1-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.
2004-06-16various fixesrsc1-0/+1
2004-06-11add OLOCKrsc1-0/+1
2004-06-09catch strdup, malloc, and friendsrsc1-2/+4
2004-05-23lock malloc ourselvesrsc1-6/+6
2004-04-29add -W to specify window size.rsc1-1/+3
various other little fixes.
2004-04-21add needstackrsc1-0/+2