Commit graph

230 commits

Author SHA1 Message Date
Russ Cox
20f5692b7f openbsd updates (thanks Pascal Stumpf)
R=rsc
http://codereview.appspot.com/6401049
2012-07-14 10:16:54 -04: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
Russ Cox
443d628838 libmach, acid, db: 64-bit support 2012-02-19 18:11:39 -05:00
David du Colombier
83b247a771 libventi: add functions vtsha1 and vtsha1check
These functions are equivalent to vtSha1 and vtSha1Check
from the old libventi and are particularly used by Fossil.

R=rsc
http://codereview.appspot.com/5555064
2012-01-21 10:01:20 +01:00
David du Colombier
91b0ee088e libventi: add VtEntryNoArchive from liboventi, for use with fossil
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5298088
2011-11-08 11:46:49 -05:00
David du Colombier
4544da5200 libventi: add functions reconn and redial for use with fossil
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5325046
2011-11-08 09:02:31 -05:00
David du Colombier
79793adc21 venti.h: import indentation from plan 9
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4571065
2011-06-13 14:40:51 -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
8377cc7a4b u.h: add int8, uint8
R=rsc
http://codereview.appspot.com/1791044
2010-07-14 11:15:55 -07:00
Russ Cox
9a05452085 make flate crc32 work when ulong is 64 bits
R=, rsc
CC=
http://codereview.appspot.com/203061
2010-02-07 16:51:28 -08:00
Russ Cox
9eec023b80 libc.h: update comment for 32-bit Rune
http://codereview.appspot.com/116097
2009-09-13 17:46:46 -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
375b78fb11 libavl: import from Plan 9 2009-08-23 09:38:29 -07:00
Tim Newsham
8ff457f56d lib9: dotu fixes in convS2M, convM2S
http://codereview.appspot.com/109049
2009-08-20 11:37:24 -04: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
e6c837d612 merge 2009-07-14 22:55:52 -07:00
Russ Cox
9b4a2324d3 merge 2009-07-08 21:43:14 -07:00
Russ Cox
75d048884c venti: 32-bit extensions to data structures 2009-05-25 02:11:27 -07:00
Russ Cox
33b446b8bb libventi: protocol support for blocks larger than 64k 2009-05-25 00:30:17 -07:00
Russ Cox
9ea7f9d82f libthread: remove unimplemented chaninit 2009-04-30 08:00:40 -07:00
Russ Cox
4aad1a3258 merge 2009-04-30 07:29:24 -07:00
Brian L. Suart
f12ab34996 u.h: add SunOS 5.9 2008-07-20 04:51:03 -04:00
Russ Cox
29e9b5683e libframe: add frredraw prototype 2008-07-20 03:18:49 -04:00
Russ Cox
57851b6412 libframe: translucent font fixes from Plan 9 2008-03-07 13:20:00 -05:00
Russ Cox
7ed58eab75 keyboard.h: End is no longer \r 2008-07-18 09:10:14 -04:00
Russ Cox
a58a827f2a lib9: add mode parameter to opentemp 2008-07-10 11:10:10 -04:00
Russ Cox
cab935a0ba lib9: add write function that withstands interrupts 2008-07-04 12:38:26 -04:00
Russ Cox
56dc04c55f lib9p: add Srv.foreground flag 2008-07-04 12:24:14 -04:00
Russ Cox
226cc90ba7 include/memlayer.h: remove redundant AUTOLIB (Brian Stuart) 2008-06-10 11:35:29 -04:00
Russ Cox
cf69e5d420 include/drawfcall.h: remove redundant AUTOLIB(draw) 2008-06-04 20:58:12 -04:00
Russ Cox
f533d4e0e6 libbio: lost changes to include/bio.h (@#%@#$ mercurial) 2008-06-03 08:32:36 -04:00
Russ Cox
b9ed1df1f6 u.h: add Solaris 5.10 to makecontext list 2008-06-01 08:20:30 -04:00
Russ Cox
118dfa98b8 post9pservice: accept mtpt (via fuse) 2008-05-05 23:07:54 -04:00
Russ Cox
949b59cd4e u.h: add intptr 2008-03-06 15:13:42 -05:00
Russ Cox
47ede89e4a libthread: simplify alt tracking, possibly fixing bug 2007-08-22 11:14:30 -04:00
rsc
d63163af35 hfs (David Swasey) 2007-05-28 20:27:25 +00:00
rsc
eba172d68e add partabandon 2007-05-28 17:41:39 +00:00
rsc
51d1a81c38 add disk partitions (David Swasey) 2007-05-28 17:34:27 +00:00
rsc
946b8d7086 add searchpairs 2007-04-21 20:41:08 +00:00
rsc
35a80291f7 remove plan9-specific 2007-04-21 19:42:41 +00:00
rsc
e290e875f3 change mpdigit to uint -- 64-bit mp library not so working 2007-01-15 00:32:17 +00:00
rsc
9a5678a8a9 Change GET/GBIT32 macros to explicitly cast final result to u32int.
Otherwise, the type of the expression will be int, and if written to
a uvlong (or just a ulong on most 64-bit systems), it will be
sign-extended.

This was going on in drawfcall with Mouse.msec, which is declared
as a ulong.

This fix assumes that the protocols only send unsigned numbers,
which is true.
2006-11-04 20:41:42 +00:00
rsc
3a19470202 In non-blocking recv functions in libmux and libdraw,
distinguish between "cannot receive without blocking"
and "EOF on connection".

In libmux, do not elect async guys muxers, so that
synchronous RPC calls run in the main event loop
(e.g., in eresized) do not get stuck.

Fixes problem reported by Lu Xuxiao, namely that
jpg etc. would spin at 100% cpu usage.
2006-11-04 18:46:00 +00:00
rsc
6fc7da3c52 Fix a handful of small one-time memory leaks in vbackup,
and one per-package memory leak (in writethread).
2006-10-19 21:58:59 +00:00
rsc
73a5509ae9 more functions 2006-07-23 02:55:34 +00:00
rsc
d20564a9a6 add vttimefmt 2006-07-18 15:23:58 +00:00
rsc
df970459f9 pin 2006-06-26 05:47:59 +00:00
rsc
9801d5e566 forgot 2006-06-26 00:08:29 +00:00