David du Colombier
d24b814167
lib9/getnetconn: add support for IPv6
...
R=rsc
http://codereview.appspot.com/6457077
2012-08-03 21:25:31 +02:00
David du Colombier
d765c37110
lib9: fix openbsd build
...
Fix build error and warning on OpenBSD 5.1,
as reported by Dimitri Sokolyuk.
R=rsc
http://codereview.appspot.com/6350044
2012-06-27 20:02:03 +02:00
David du Colombier
3409bc9ae1
lib9/dial: add support for IPv6
...
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
2012-06-02 21:50:59 +02:00
Jani Lahtinen
0c2ef23ff3
lib9: fix local addr in dial
...
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4826049
2011-08-16 14:02:11 -04:00
Russ Cox
fc567f476a
build: OS X 64-bit build
...
R=rsc
http://codereview.appspot.com/4838047
2011-08-02 14:28:04 -04:00
Russ Cox
333482548d
lib9: restore SIGCHLD handler in rfork
...
R=rsc
http://codereview.appspot.com/4436071
2011-05-01 15:38:18 -04:00
Russ Cox
74dd032175
delete 9P2000.u
...
thanks to Erik Quanstrom
R=rsc
http://codereview.appspot.com/3469042
2010-12-07 13:34:11 -05:00
Russ Cox
efe48aa670
lib9: add <sys/dkio.h> for OpenBSD
...
R=, rsc
CC=
http://codereview.appspot.com/1762045
2010-07-11 10:08:41 -07:00
Russ Cox
96898a8141
more type-punned pointers
...
R=rsc
http://codereview.appspot.com/376045
2010-03-10 14:59:03 -08:00
Russ Cox
0c9c620f39
fix type-punned pointer warnings from gcc
...
R=rsc
http://codereview.appspot.com/396042
2010-03-10 14:50:33 -08:00
Russ Cox
1961ee8223
lib9: do not include st_dev in qid.path
...
http://codereview.appspot.com/123050
2009-09-24 21:21:27 -04:00
Russ Cox
37c9485968
lib9: fix dirread/stat mismatch on Snow Leopard
...
http://codereview.appspot.com/116096
2009-09-13 17:30:12 -04:00
Russ Cox
0cadb4301d
convert to 4-byte UTF-8 and 32-bit Rune
...
http://codereview.appspot.com/116075
2009-09-11 17:03:06 -04:00
Russ Cox
fa662c9571
INSTALL: fix build on Snow Leopard
...
http://codereview.appspot.com/116073
2009-09-11 13:51:50 -04:00
Tim Newsham
8ff457f56d
lib9: dotu fixes in convS2M, convM2S
...
http://codereview.appspot.com/109049
2009-08-20 11:37:24 -04:00
Fazlul Shahriar
5186b55afc
dial: allow host==0 when net=="unix"
...
http://codereview.appspot.com/108042
2009-08-17 11:34:33 -04:00
Russ Cox
6d558e12b0
dial: reject dial to * (aka 0.0.0.0)
...
fixes #15 http://code.swtch.com/plan9port/issues/15
http://codereview.appspot.com/107043
2009-08-15 02:48:08 -04:00
Russ Cox
d19fdc056d
libfmt: add missing copyright notice to nan64.c
...
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.
2009-08-14 23:25:10 -07:00
Russ Cox
c8ae41fb03
more licensing
2009-08-14 22:49:38 -07:00
Russ Cox
6f4d7598d9
more licensing
2009-08-14 21:55:50 -07:00
Russ Cox
e96abc03b4
allow less restricted use of plan9port-specific code
2009-08-14 21:08:23 -07:00
Russ Cox
d17b040302
libfmt: use fmtstrtod, not system strtod
...
http://codereview.appspot.com/96185
2009-07-29 11:29:36 -04:00
Russ Cox
5400bd239c
lib9/fmt: fix printing of 1e308
...
pow10 was giving up too easily
http://codereview.appspot.com/96178
2009-07-28 16:43:23 -04:00
Russ Cox
e6c837d612
merge
2009-07-14 22:55:52 -07:00
Russ Cox
7e0b686233
lib9/dirwstat: missing prototype for chmod
2008-12-07 09:20:08 -08:00
Russ Cox
115dbcecc8
lib9: can change length in dirfwstat, dirwstat; mode in dirwstat (David Swasey)
2008-12-06 16:05:41 -08:00
Russ Cox
c6d1c6c617
lib9: fix memset in fmtnullinit
2008-11-17 19:45:37 -08:00
Russ Cox
11257e5a43
lib9: null d->ext during nulldir
2008-10-26 17:03:17 -04:00
Russ Cox
d35c1bb294
lib9: turn certain signals off by default
2008-07-12 07:35:20 -07:00
Russ Cox
a58a827f2a
lib9: add mode parameter to opentemp
2008-07-10 11:10:10 -04:00
Russ Cox
427abd1ebd
lib9: fix Apple disksize prototype
2008-07-09 14:17:30 -04:00
Russ Cox
e960e21be1
lib9: revert unintended changes to opentemp
2008-07-09 11:53:31 -04:00
Michael Teichgräber
f35a04866f
lib9: rewrite date routines to use /usr/share/zoneinfo directly
2008-07-09 08:27:22 -04:00
Russ Cox
dd9d5927a1
lib9: declare n in OpenBSD disksize (Eric Grosse)
2008-07-05 10:01:43 -04:00
Russ Cox
9a939d5f19
lib9: do not try to hide symlinks as much
2008-07-04 16:24:54 -04:00
Russ Cox
cab935a0ba
lib9: add write function that withstands interrupts
2008-07-04 12:38:26 -04:00
Russ Cox
4712e22300
lib9: use symlink size, not target size, in dirstat
2008-07-04 02:54:06 -04:00
Russ Cox
2c82cd6f52
lib9: clean up disk size code, add Apple (Anthony Sorace)
2008-07-03 17:45:17 -04:00
Russ Cox
e113e0a4bb
lib9: allow no $DISPLAY on OS X in getns
2008-06-30 19:41:24 -04:00
Russ Cox
3e4ceac760
post9p: try mount9p before 9pfuse
2008-06-19 19:13:47 -04:00
Russ Cox
e082105c33
lib9: make netmkaddr handle unix! addresses better
2008-06-11 06:35:51 -07:00
Russ Cox
66f6e2b651
lib9: hide uvlong/double conversions to placate gcc (John Gosset)
2008-05-10 13:35:54 -04:00
Russ Cox
57ce0d667e
localtime: use correct time zone more often (Michael Teichgräber)
2008-05-06 14:45:39 -04:00
Russ Cox
118dfa98b8
post9pservice: accept mtpt (via fuse)
2008-05-05 23:07:54 -04:00
Russ Cox
34167aa6b0
lib9: gcc-4.2 bug in sprint
2008-03-03 23:37:12 -05:00
Russ Cox
83ab7d8896
merge
2007-11-27 15:39:06 -05:00
rsc
4276f84713
futimes on linux now
2007-05-20 14:38:54 +00:00
rsc
9752950804
new media size from Lou Kamenov
2007-05-15 13:10:51 +00:00
rsc
43f16cfa92
again
2007-05-11 00:20:51 +00:00
rsc
69bdb78dec
use device names for FreeBSD (Lou Kamenov)
2007-05-11 00:16:40 +00:00