Commit graph

56 commits

Author SHA1 Message Date
Ben Huntsman
5802b09e9d all: fix #includes for AIX, add a few AIX "implementation" files 2020-05-07 20:36:03 -04:00
Dan Cross
fa325e9b42 Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00
David du Colombier
738e890b19 vbackup: fix compilation on NetBSD (thanks Álvaro Jurado)
On NetBSD 5.0 and upper, mount() require
data_len as a fifth argument.

LGTM=rsc
R=rsc
CC=elbingmiss
https://codereview.appspot.com/111600043
2014-08-06 14:43:21 +02:00
Shenghou Ma
20035ed43c all: DragonFly port.
Fix compilation problems, libdraw still doesn't work right yet.

LGTM=rsc
R=rsc
https://codereview.appspot.com/67820046
2014-02-27 23:17:47 -05: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
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
efd88f54e8 vbackup: fix build on FreeBSD 8
fixes #30 http://code.swtch.com/plan9port/issues/30/

http://codereview.appspot.com/117060
2009-09-12 23:26:48 -04:00
Russ Cox
e781b7b60a vbackup: update to new libventi interface 2009-06-16 10:28:13 -04:00
Russ Cox
b8f457199c vbackup: adapt to new libventi interface 2009-06-10 10:16:40 -07:00
Brian L. Stuart
d63790eec8 vnfs: add -i flag to allow remote root 2008-07-20 04:50:09 -04:00
Russ Cox
a58a827f2a lib9: add mode parameter to opentemp 2008-07-10 11:10:10 -04:00
Russ Cox
806c4c953c vnfs: quieter 2008-07-03 17:53:06 -04:00
Russ Cox
ff086a8232 vftp: walk fixes (Fazlul Shahriar) 2008-06-01 08:50:49 -04:00
Russ Cox
b88619038f vbackup: fix uninitialized variable use in -i code 2007-12-04 09:03:08 -05:00
Russ Cox
a4b5da0be7 vbackup: add -i flag to avoid score prefetching (David Swasey) 2007-11-27 15:49:09 -05:00
Russ Cox
83ab7d8896 merge 2007-11-27 15:39:06 -05:00
rsc
933a862577 always write last block in vcat (dave swasey) 2007-06-12 18:35:37 +00:00
rsc
9437f55b49 vbackup for mac tweaks (dave swasey) 2007-06-12 18:35:17 +00:00
rsc
c59c3b2112 fix dotdot? (dave swasey) 2007-06-04 03:30:17 +00:00
rsc
86190ea39d complain loudly about vtwrite failure 2007-04-08 01:33:31 +00:00
rsc
ff3dce55bf remove double free (David Swasey) 2007-03-25 17:42:25 +00:00
rsc
e8471ef561 no more vtgoodbye 2007-01-25 21:21:15 +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
940353e190 check was not correct on linux 2006-07-18 15:27:54 +00:00
rsc
651ababc74 bigger block size 2006-06-26 00:04:22 +00:00
rsc
6884e49f0c use deterministic handles 2006-06-15 06:25:21 +00:00
rsc
dbf91a04cc disable auth in vftp 2006-06-15 05:19:21 +00:00
rsc
e0d1df6f7c use linux/version.h 2006-05-16 15:47:59 +00:00
rsc
80b4aedc11 ext2 fixes 2006-05-04 18:03:11 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
04692ecc90 bigger block size 2006-01-07 17:34:47 +00:00
rsc
2214d4b6de get units right 2005-12-30 18:52:20 +00:00
rsc
96ce09f184 freebsd 6 2005-12-30 16:31:08 +00:00
rsc
430976597f OS X fix 2005-11-27 15:56:23 +00:00
rsc
3bc4abf41e updates 2005-11-07 15:16:30 +00:00
wkj
7f3d278a3b Vbackup knew about some unexported variables in libventi
that seem to have gone AWOL.  Remove the use and make
things compile again.
2005-11-07 04:48:36 +00:00
rsc
6912efc49c Allow longer packet timeout. 2005-11-02 19:09:23 +00:00
rsc
2b3a8c4d80 uchar nonsense. 2005-10-29 17:38:56 +00:00
rsc
8307dc614a use strtoull instead of atoi 2005-08-12 00:29:23 +00:00
rsc
8ecefa411d Add get command. 2005-08-11 16:45:04 +00:00
rsc
d079d563fc Accomodate NetBSD 2005-08-11 03:25:17 +00:00
rsc
915a8b77ff darwin 2005-07-28 18:19:24 +00:00
rsc
eda1c59bb1 noatime 2005-07-28 18:19:04 +00:00
rsc
05bc5137e8 try to collect common bsd code 2005-07-28 17:26:45 +00:00
rsc
62a38f58da darwin - variant of bsd from jeff sickel 2005-07-28 17:22:01 +00:00
rsc
d0cda8c423 new 2005-07-28 12:46:10 +00:00
rsc
8af6c6b79a bigger stack 2005-07-22 23:46:18 +00:00
rsc
16ea7713b5 change default handle 2005-07-18 00:03:18 +00:00
rsc
f691849bf6 freebsd 5 2005-07-13 22:51:29 +00:00
rsc
f462256db2 stupid.apple 2005-07-13 21:30:18 +00:00