Commit Graph

6690 Commits

Author SHA1 Message Date
abhinav
c6e09f6896 Use Xr instead of Fn to refer readdir(3) 2017-04-15 10:30:55 +00:00
christos
64f54f261d Use the create_size if given to compute the real size instead of stat'ing
the file again, which might have been larger to start with.
2017-04-14 15:39:29 +00:00
christos
a22e7bc981 say ipsec stats are viewable with netstat. 2017-04-13 14:46:32 +00:00
sevan
88e7faeafa Direct reader to intro(9lua), lua(9) does not exist. 2017-04-10 19:49:39 +00:00
jdolecek
db79755da6 write info about DKCACHE_FUA, DKCACHE_DPO in disk_getcache() 2017-04-05 20:27:09 +00:00
jdolecek
8e90ad672f expand a little the explanation about discard
describe behaviour of combination of log+async (i.e. same as just log)
2017-03-22 21:14:11 +00:00
martin
945b6d1754 Add missing endianes swap to make the "recover" command work on big endian
machines.
2017-03-22 19:59:16 +00:00
roy
d8c60740ae Report the PID for the process changing the address. 2017-03-17 16:13:44 +00:00
ryo
2f4136203c Fix cksum calculation for clearing the cached route.
In ping.c:r1.104, the size of echoreply packet was changed to ICMP_MINLEN,
Therefore also calculation size must be ICMP_MINLEN.
2017-03-17 06:52:59 +00:00
chs
037063a2ac use warnx() rather than warn() in a case where errno is not relevant. 2017-03-09 00:18:23 +00:00
tsutsui
0ba0846790 Fix format. 2017-03-08 11:45:14 +00:00
wiz
2a5a03e6e8 file system police. 2017-02-17 09:29:35 +00:00
christos
285cf56905 Allow 0 timestamp 2017-02-16 22:42:25 +00:00
christos
f8bc8f05cf allow 0 timestamp 2017-02-16 22:40:19 +00:00
christos
297234680c add -T for reproducible builds (used in makefs) 2017-02-16 18:49:31 +00:00
wiz
d0da83b571 New sentence, new line.
Remove superfluous Oc and merge line to make it less likely to happen again.
Fix typo.
2017-02-16 13:51:08 +00:00
knakahara
f8f075dfc2 add man for l2tp(4). 2017-02-16 08:32:21 +00:00
knakahara
03c4401a4e add l2tp(4) subcomands to ifconfig(8).
originally implemented by IIJ SEIL team.
2017-02-16 08:28:03 +00:00
christos
ef9cffab3f Add -T timestamp for reproducible builds. 2017-02-16 03:32:17 +00:00
nonaka
7f9c3b1be0 128 bit integers are displayed in decimal.
bn.h and bignum.c from netgpg.
2017-02-13 11:16:46 +00:00
aymeric
eadf25e08c Make gpt(8) work when compiled on a glibc-based OS.
This restores the ability to build amd64 install-image's under Linux.
2017-02-12 16:54:06 +00:00
rin
879e53004e Cosmetic changes. No functional changes. 2017-02-08 23:26:24 +00:00
rin
d394916260 Factor out a common part in Makefile's of ifconfig and x_ifconfig. 2017-02-08 23:22:43 +00:00
rin
6323d1adb5 Rename sbin/ifconfig/Makefile.inc to Makefile.common; the former can
potentially conflict with bsd.subdir.mk.
2017-02-08 23:16:41 +00:00
rin
9766216654 Remove ifconfig hack on m68000. I've confirmed that the problem has already
gone with TME.
2017-02-08 23:13:59 +00:00
rin
ce7fa6f1d3 __empty -> __nothing 2017-02-08 18:05:25 +00:00
rin
47e6c13bb2 switch to __empty 2017-02-08 16:56:56 +00:00
christos
58acfeb884 use __empty 2017-02-08 16:23:24 +00:00
rin
ccc9d98e52 Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where
support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1
and APPLE_UFS=1 are added to CRUNCHENV, respectively.

This reduces the size of ramdisk image for atari by over 15KB.

Thanks tsutsui and christos for their useful comments.
2017-02-08 16:11:39 +00:00
rin
872902e1dd Do not compile in progress.c when SMALLPROG is defined. 2017-02-07 16:14:47 +00:00
christos
ec5c127714 remove debugging printf. 2017-02-05 00:24:24 +00:00
christos
e18b8724f0 use the netid value because it could be udp6... 2017-02-03 21:56:01 +00:00
abhinav
d468dc41e1 Fix spelling of partition. 2017-01-27 10:21:16 +00:00
abhinav
f1b8958974 Fix spelling of simultaneous. 2017-01-27 10:12:05 +00:00
abhinav
fc37131283 Fix typo: s/forwared/forwarded
Also remove full stop from the date.
2017-01-18 22:07:25 +00:00
joerg
f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
joerg
2c0cac8e7f Use an explicitly aligned buffer for ip. 2017-01-11 12:13:52 +00:00
christos
9878dfd06c need <sys/stat.h> 2017-01-10 20:53:09 +00:00
christos
ec09bb40fd fix includes, addr __RCSID 2017-01-10 20:49:20 +00:00
christos
ce0cfa0c1e need <sys/stat.h> ... for stat() 2017-01-10 20:48:12 +00:00
christos
cc8b3fb098 need <sys/stat.h> for fstat() 2017-01-10 20:47:05 +00:00
christos
4ffcc39190 missing <sys/stat.h> 2017-01-10 20:45:53 +00:00
christos
8cdbd53a62 Need <sys/stat.h> for S_IFBLK. 2017-01-10 20:45:19 +00:00
kamil
52678ac6a4 Adapt funopen(3) call after switch to new zlib(3)
In the prototype of the gzclose() function of changed from:

  typedef struct gzFile_s *gzFile;    /* semi-opaque gzip file descriptor */

to:

  typedef voidp gzFile;

This caused type mismatch when calling funopen(3) as:
   'int (*)(void *)' != 'int (*)(struct gzFile_s *)'

Cast gzclose to (int (*)(void *)) when used in funopen(3).
2017-01-10 04:42:20 +00:00
mrg
0537635d0c for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00
ozaki-r
e3db1a05a1 Fix that routed deletes local routes
routed previousely ignored local routes, which have RTF_LOCAL flag, because
such routes have RTF_LLINFO and routed ignored routes having the flag. When
we obsoleted RTF_LLINFO, we removed the ignoring logic from routed, then
routed started removing local routes unexpectedly.

Fix this behavior by teaching local routes to routed to ignore them.

kardel@ reported the issue and helped testing, thanks!
2016-12-20 03:35:12 +00:00
dholland
885f1ddec5 Merge the PR 36997 fixes into ping6. It already didn't accept too
small or wildly too large intervals, but it did allow intervals that
failed at poll(). Since that's signed integer overflow and thus UB,
better not to.
2016-12-18 01:30:54 +00:00
dholland
9275630b0c PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Reject packet intervals < 1 ns as they lead to infinite loops adding
zero timespecs.

Fix the behind-schedule behavior so it doesn't spend all its time in
that loop adding very small timespecs. Try ping -c 500 -i 0.000000001
to see this in action with the old ping.
2016-12-18 01:19:34 +00:00
dholland
e0d8c787c6 PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.

Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.

Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.
2016-12-18 00:21:33 +00:00
alnsn
11d74f071c Add aes-xts to cgdconfig(8). 2016-12-11 00:34:39 +00:00