Commits
- Commit:
18571208068d5fe2f0bf7b4e980525a7f577c503
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: simplify
Now that everything uses pthreads and pthreadperthread,
can delete various conditionals, all the custom context code,
and so on. Also update documents.
Fixes #355.
- Commit:
7a371bf93652573b3d57d50466d3ea22a6eebff2
- From:
- Ben Huntsman <BHuntsman@mail2.cu-portland.edu>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: use __builtin_return_address on IBM XL/C
- Commit:
6fd4e901ce48f2e056c505c81320f786175588ff
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: add close
More preparation for opendir.
- Commit:
e0c4896ed41faa71445d9e0b1751aba5157343c9
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: make a p9frexp function wrapping system frexp
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.
- Commit:
540caa5873bcc3bc2a0e1896119f5b53a0e8e630
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: remove getcallerpc implementations
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.
- 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