summaryrefslogtreecommitdiffstats
path: root/src/lib9
Commit message (Collapse)AuthorAgeFilesLines
* fix clang warnings reported by Tuncer AyazRuss Cox2012-10-211-7/+5
| | | | | R=rsc http://codereview.appspot.com/6744054
* lib9: fix Mac warningRuss Cox2012-10-201-1/+8
| | | | | R=rsc http://codereview.appspot.com/6749053
* lib9/p9dialparse: fix segfault on gethostbynameDavid du Colombier2012-09-111-1/+1
| | | | | | | | In some situations, gethostbyname can return an empty address list. R=rsc http://codereview.appspot.com/6443097
* lib9: remove ss_len manipulation in _p9dialparseRuss Cox2012-09-081-3/+0
| | | | | | | Not all systems have ss_len, and we've never set it before. R=rsc http://codereview.appspot.com/6497102
* lib9: fix announce on OS XRuss Cox2012-09-081-5/+7
| | | | | R=rsc http://codereview.appspot.com/6495109
* lib9/dial: fix addrlen in connect() and bind()David du Colombier2012-09-042-7/+35
| | | | | | | | | On some systems, the third argument of connect() and bind() is expected to be the length of the address family instead of the length of the sockaddr structure. R=rsc http://codereview.appspot.com/6489072
* lib9/getnetconn: add support for IPv6David du Colombier2012-08-031-0/+27
| | | | | R=rsc http://codereview.appspot.com/6457077
* lib9: fix openbsd buildDavid du Colombier2012-06-272-1/+2
| | | | | | | | Fix build error and warning on OpenBSD 5.1, as reported by Dimitri Sokolyuk. R=rsc http://codereview.appspot.com/6350044
* lib9/dial: add support for IPv6David du Colombier2012-06-023-100/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* lib9: fix local addr in dialJani Lahtinen2011-08-161-1/+1
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/4826049
* build: OS X 64-bit buildRuss Cox2011-08-021-1/+1
| | | | | R=rsc http://codereview.appspot.com/4838047
* lib9: restore SIGCHLD handler in rforkRuss Cox2011-05-011-6/+5
| | | | | R=rsc http://codereview.appspot.com/4436071
* delete 9P2000.uRuss Cox2010-12-074-133/+8
| | | | | | | thanks to Erik Quanstrom R=rsc http://codereview.appspot.com/3469042
* lib9: add <sys/dkio.h> for OpenBSDRuss Cox2010-07-111-0/+1
| | | | | | R=, rsc CC= http://codereview.appspot.com/1762045
* more type-punned pointersRuss Cox2010-03-101-1/+1
| | | | | R=rsc http://codereview.appspot.com/376045
* fix type-punned pointer warnings from gccRuss Cox2010-03-103-3/+5
| | | | | R=rsc http://codereview.appspot.com/396042
* lib9: do not include st_dev in qid.pathRuss Cox2009-09-241-1/+8
| | | | http://codereview.appspot.com/123050
* lib9: fix dirread/stat mismatch on Snow LeopardRuss Cox2009-09-131-4/+0
| | | | http://codereview.appspot.com/116096
* convert to 4-byte UTF-8 and 32-bit RuneRuss Cox2009-09-112-24/+65
| | | | http://codereview.appspot.com/116075
* INSTALL: fix build on Snow LeopardRuss Cox2009-09-111-0/+4
| | | | http://codereview.appspot.com/116073
* lib9: dotu fixes in convS2M, convM2STim Newsham2009-08-202-6/+34
| | | | http://codereview.appspot.com/109049
* dial: allow host==0 when net=="unix"Fazlul Shahriar2009-08-171-1/+1
| | | | http://codereview.appspot.com/108042
* dial: reject dial to * (aka 0.0.0.0)Russ Cox2009-08-151-0/+5
| | | | | | fixes #15 http://code.swtch.com/plan9port/issues/15 http://codereview.appspot.com/107043
* libfmt: add missing copyright notice to nan64.cRuss Cox2009-08-141-0/+2
| | | | | | | | nan64.c was part of change #1 in this repository and did not have a notice at that point (September 2003). An earlier copy of libfmt, dated January 14-15, 2003, makes it clear that nan64.c was extracted from fltfmt.c and strtod.c, so use the same notice they use.
* more licensingRuss Cox2009-08-141-0/+2
|
* more licensingRuss Cox2009-08-141-0/+1
|
* allow less restricted use of plan9port-specific codeRuss Cox2009-08-141-0/+94
|
* libfmt: use fmtstrtod, not system strtodRuss Cox2009-07-291-4/+4
| | | | http://codereview.appspot.com/96185
* lib9/fmt: fix printing of 1e308Russ Cox2009-07-281-4/+1
| | | | | | pow10 was giving up too easily http://codereview.appspot.com/96178
* mergeRuss Cox2009-07-141-0/+6
|
* lib9/dirwstat: missing prototype for chmodRuss Cox2008-12-071-0/+1
|
* lib9: can change length in dirfwstat, dirwstat; mode in dirwstat (David Swasey)Russ Cox2008-12-062-6/+21
|
* lib9: fix memset in fmtnullinitRuss Cox2008-11-171-1/+1
|
* lib9: null d->ext during nulldirRuss Cox2008-10-261-1/+1
|
* lib9: turn certain signals off by defaultRuss Cox2008-07-121-5/+6
|
* lib9: add mode parameter to opentempRuss Cox2008-07-101-4/+9
|
* lib9: fix Apple disksize prototypeRuss Cox2008-07-091-1/+1
|
* lib9: revert unintended changes to opentempRuss Cox2008-07-091-11/+5
|
* lib9: rewrite date routines to use /usr/share/zoneinfo directlyMichael Teichgräber2008-07-097-123/+498
|
* lib9: declare n in OpenBSD disksize (Eric Grosse)Russ Cox2008-07-051-0/+2
|
* lib9: do not try to hide symlinks as muchRuss Cox2008-07-041-13/+14
|
* lib9: add write function that withstands interruptsRuss Cox2008-07-042-0/+24
|
* lib9: use symlink size, not target size, in dirstatRuss Cox2008-07-041-1/+3
|
* lib9: clean up disk size code, add Apple (Anthony Sorace)Russ Cox2008-07-031-109/+49
|
* lib9: allow no $DISPLAY on OS X in getnsRuss Cox2008-06-301-0/+7
|
* post9p: try mount9p before 9pfuseRuss Cox2008-06-191-0/+4
|
* lib9: make netmkaddr handle unix! addresses betterRuss Cox2008-06-111-1/+7
|
* lib9: hide uvlong/double conversions to placate gcc (John Gosset)Russ Cox2008-05-101-26/+31
|
* localtime: use correct time zone more often (Michael Teichgräber)Russ Cox2008-05-061-27/+13
|
* post9pservice: accept mtpt (via fuse)Russ Cox2008-05-051-28/+61
|