Commits
- Commit:
3409bc9ae1614ba47430a3f593fdbe5fc177c878
- From:
- David du Colombier <0intro@gmail.com>
- Date:
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
- Commit:
9eec023b8012162a4dfd78adcb94dea9d5439395
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libc.h: update comment for 32-bit Rune
http://codereview.appspot.com/116097
- Commit:
c8ae41fb03c43c3a00a144d92e904dc1c28b3fb5
- From:
- Russ Cox <rsc@swtch.com>
- Date:
more licensing
- Commit:
a58a827f2ae0d989102dc4d8c113b9282ef177b3
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: add mode parameter to opentemp
- Commit:
cab935a0ba34797d8b75fe1cfb7624a33d25e671
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: add write function that withstands interrupts
- Commit:
118dfa98b81785213b819f66cdb92e5a43f62326
- From:
- Russ Cox <rsc@swtch.com>
- Date:
post9pservice: accept mtpt (via fuse)
- Commit:
df970459f9b37386fbfd4b7f3646825c8029caa8
- From:
- rsc <devnull@localhost>
- Date:
pin
- Commit:
15085f74502fa7029f59540b228bb8392db9743c
- From:
- rsc <devnull@localhost>
- Date:
simpler USED
- Commit:
cbeb0b26e4c7caa8d1b47de791a7418dc20a4567
- From:
- rsc <devnull@localhost>
- Date:
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
- Commit:
eadb18a3357b9b735b2f7da478854a39fb0c73c6
- From:
- rsc <devnull@localhost>
- Date:
add exitcode
- Commit:
c54b8b69ede9d92e802baa1163d9cd734b034fb4
- From:
- rsc <devnull@localhost>
- Date:
bsd
- Commit:
577782688c79b61603b4d88d8ae32200bc73a9dc
- From:
- rsc <devnull@localhost>
- Date:
9p2000.u
- Commit:
bdbc55d3524a3a93afad6fba08dfe5f774a3d2d2
- From:
- rsc <devnull@localhost>
- Date:
add text version of install(1)
- Commit:
7e8769cc2a0b68245fce260c1069f7450bcf674a
- From:
- rsc <devnull@localhost>
- Date:
move utf, fmt to libc
- Commit:
86c2ab2caf5eb4742e7cd227e6d29fc1dc74d855
- From:
- rsc <devnull@localhost>
- Date:
sched_yield netbsd (anselm garbe)