Commit Graph

6679 Commits

Author SHA1 Message Date
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
wiz 97151ea665 New sentence, new line. Sort SEE ALSO. Fix typo. 2016-11-24 12:38:32 +00:00
pho 4853973201 Major rework on mount_puffs(8) so that it can actually start file servers
Now you can do
  # mount_puffs -o rdonly rot13fs#/home/foo /mnt/rot13

or in fstab
  rot13fs#/home/foo  /mnt/rot13  puffs  rdonly

to start rot13fs with arguments identical to
  # rot13fs -o rdonly /home/foo /mnt/rot13
2016-11-23 14:33:29 +00:00
wiz 34aff94565 Whitespace, sort. 2016-11-20 09:38:11 +00:00
dholland 24da7c40a9 Add crossreference to scsi(4) per note in PR 9627. 2016-11-20 07:04:14 +00:00
wiz 39a1754c2e Bump date for previous.
Use more and more appropriate markup while here.
2016-11-19 23:37:33 +00:00
flxd b0be1b67cd Add "getrealloc" and "setrealloc" commands to get/set automatic reallocation
parameters/enables for error recovery, similar to {get,set}cache.
Many old SCSI disks shipped with reallocation disabled, albeit supporting it.
Minor (cosmetic) fixup of scsi_disk_pages while there.
Based upon code in PR bin/29165 by Greg A. Woods.
OK christos@
2016-11-19 08:43:40 +00:00
pgoyette fce2486282 Add a description for the new MODULE_CLASS_BUFQ class. 2016-11-16 10:43:37 +00:00
jdolecek ad7bde6ea4 stress more that discard is experimental, and explain why; also note that
it's not compatible with log
2016-11-10 22:28:00 +00:00
jdolecek 8ed63d94b4 remove dup line 2016-11-01 16:15:51 +00:00
snj b14abce7b5 revert part of revision 1.28. "e.g." is correct. bad igor! 2016-10-15 06:23:28 +00:00
sevan cb327570eb Whilst mount_pcfs originated as a patch in 386BSD, NetBSD 0.8 actually was the first release of an OS to ship with it.
Heads up by Ingo Schwarze.
2016-10-11 16:10:03 +00:00