9325 Commits

Author SHA1 Message Date
jilles
8f3ade4bcf MFC r207153: stat: Allow -f %Sf to display the file flags symbolically.
PR:		124349
2010-05-01 14:36:04 +00:00
avg
fbdaed42d0 MFC r206687: indent(1): don't treat bare '_t' as a type name with -ta 2010-04-22 13:16:18 +00:00
maxim
c8fd907eca MFC r205874: make sockstat -6 output more readable for long ipv6
addresses.
2010-04-21 05:39:51 +00:00
delphij
6f29dab875 MFC r205472:
Enable mmap for minigzip(1).
2010-04-20 22:52:13 +00:00
delphij
3c3719239a MFC r206387:
Diff reduction against NetBSD and add myself to AUTHORS section of the
manual page as I wrote the unpack functionality.  No actual executable
code change verified with md5(1).
2010-04-20 22:47:24 +00:00
trasz
443081b977 MFC r205853:
Add myself.
2010-04-13 06:05:15 +00:00
imp
b81ac36cf0 MFC: 205992
Make -r mean exactly the same thing as -E for increased compatibility
  with GNU sed.

  MFC after:	7 days
2010-04-13 01:02:20 +00:00
avg
70acb69439 MFC r205989: indent(1): new option, -ta, to treat all *_t identifiers as types 2010-04-12 21:04:35 +00:00
avg
ab79199755 MFC r205988: indent(1): correctly handle case/label at the very start of a function 2010-04-07 22:19:46 +00:00
avg
c99a0c09e8 MFC r205854: calendar.freebsd: add my entry 2010-04-02 15:33:24 +00:00
glebius
dc583d98a5 Merge r205082, r205083 that fix 'netstat -f netgraph' functionality. 2010-04-02 11:07:55 +00:00
delphij
70d4783088 MFC r205702:
Remove GNU cpio after fix of CVE-2010-0624.

Note that this is actually a no-op for most users, as this GNU
cpio was broken on -HEAD and 8-STABLE since last March until
the recent fix.

FreeBSD 8.0+ uses BSD cpio by default and the code is being
actively maintained.
2010-03-29 18:24:08 +00:00
jh
982aa80857 MFC r198175:
- If lstat()/stat() fails with an error other than ENOENT, don't ignore
  the error and assume that the file doesn't exist. Touch could return
  success with -c option even if the file existed and time was not set.
- If the first utimes_f() call fails with -A option, give up and don't
  continue trying to set times to current time. [1]
- Set exit status to 1 when setting of timestamps fails for a directory
  or symbolic link even though lstat()/stat() would succeed.
- Don't print bogus error message when rw() succeeds.

PR:		bin/112213
2010-03-28 11:22:38 +00:00
ed
7797744837 MFC r205008 and 205009:
Make script(1) a little less broken.

  Close the file descriptor to the TTY. There is no reason why the parent
  process should keep track of the descriptor. This ensures that the
  application inside properly drains the TTY during exit(2).

  Reported by:  alfred
2010-03-25 08:33:56 +00:00
kib
2cb34af975 MFC r204879:
Teach procstat(1) to display some information about signal disposition
and pending/blocked status for signals.

MFC r204880:
Add file forgotten in r204879.
2010-03-22 09:29:56 +00:00
gavin
03b9b6f6a6 Merge r203865 from head:
The -newerXB option was being interpreted the same as the -newerXm option
  as a check for F_TIME2_B was missing.  Fix this.

PR:		bin/138245
Submitted by:	"David E. Cross"  <crossd cs.rpi.edu>
2010-03-17 20:16:28 +00:00
jh
39b00eecc9 MFC r204872: Pass the correct size to memset().
PR:		bin/128094
2010-03-15 16:39:52 +00:00
joerg
720adc707c (r205011) The "number" argument is everything but optional. 2010-03-12 05:16:24 +00:00
gavin
ae7f3f8faf Merge r204053 from head:
The correct value of DEL is 0x7f, not 0xff.  This is purely a documentation
  issue - od(1) and hexdump(1) behave as expected.

PR:		docs/143869
Submitted by:	gcooper
2010-03-10 13:40:37 +00:00
jh
66c2405d1f MFC r203551:
- Cast intptr_t, pid_t and time_t values to intmax_t and use %jd with
  printf.
- Cast the system call return value to long and use %ld in a printf in
  ktrsysret().

PR:		bin/123774
2010-02-21 13:17:35 +00:00
brucec
6f4a006266 MFC r203688:
Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows
the -M option to be used without specifying -N.

PR:	bin/138146
Approved by:	rrs (mentor)
2010-02-18 10:46:25 +00:00
delphij
56c6dfba43 MFC r202060:
Add a new option, -q howmany, which when used in conjuction with -w,
exits netstat after _howmany_ outputs.

Requested by:	thomasa
Reviewed by:	freebsd-net (bms, old version in early 2007)
2010-02-10 00:34:13 +00:00
jh
0527f7321b MFC r200781:
Cast time_t values to intmax_t and use %jd with printf.
2010-02-08 15:55:01 +00:00
jh
6cbfef4ad3 MFC r200780:
Remove non-working special case for pipe(2) from amd64-fbsd32.c and
i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer
argument properly and re-add special handling for pipe(2) return value
to print_syscall_ret().

PR:		bin/120870
2010-02-08 15:53:28 +00:00
jh
000376f24e MFC r200752:
Avoid sharing the file descriptor of the output file with traced
processes by setting the FD_CLOEXEC flag for the output file.

PR:		bin/140493
2010-02-08 15:50:51 +00:00
jh
47a3486c10 MFC r200751:
Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to
decode their arguments correctly.
2010-02-08 15:48:18 +00:00
jh
8d357f4e11 MFC r200632:
The input line length limit mentioned on the manual page was removed by
r176119.
2010-02-06 11:42:23 +00:00
jh
e07334a19c MFC r200441:
The input line length limit mentioned on the manual page was removed by
r179374.
2010-02-06 11:39:33 +00:00
trasz
e13d463206 MFC r196839:
Add NFSv4 ACL support to find(1).
2010-01-30 14:54:12 +00:00
gnn
889d37774b MFC r196797:
Add ARP statistics to the kernel and netstat.
2010-01-28 16:48:44 +00:00
avilla
6193a10a41 - MFC r197788, r203040, r203045, r203048
Approved by:	tabthorpe (mentor)
2010-01-27 18:12:22 +00:00
gavin
4201da924f Merge r200318 from head: add myself to calendar.freebsd. 2010-01-27 15:36:19 +00:00
kib
9fefaa1da5 Merge scandir(3) interface update to stable/8.
MFC r201512:
Modernize scandir(3) and alphasort(3) interfaces according to the IEEE
Std 1003.1-2008.

MFC r201602:
Move scandir(3) and alphasort(3) into XSI namespace.

MFC r201604:
Use thunks to adapt alphasort-like interface to the comparision function
required by qsort() and qsort_r().

MFC r202556 (by ache):
Use strcoll() in opendir() and alphasort(). Remove some comments.

MFC r202572 (by ache):
Revert to using strcmp() for opendir().

MFC r202677 (by ache):
Style.

MFC r202679 (by ache):
Style: rename internal function to opendir_compar().

MFC r202691 (by ache):
For alphasort(3) add reference to strcoll(3).

MFC r202693 (by ache):
Style: reword comment.
2010-01-24 12:35:36 +00:00
brooks
d13809bdba MFC r201350:
The devices that supported EVFILT_NETDEV kqueue filters were removed in
  r195175.  Remove all definitions, documentation, and usage.

The change of function signature for vlan_link_state() was not merged to
maintain the ABI.
2010-01-22 19:51:34 +00:00
edwin
83546818a8 MFC of 202280, 202281
- Remove -d option, whois.nic.mil doesn't exist anymore.

- Make whois capable of searching for IPv6 addresses just like it can
  do for IPv4 addresses without having to explicetly specify that the
  ARIN server should be used to get the initial information.

PR:		bin/142507, bin/128725
Submitted by:	Dan Mahoney <danm@prime.gushi.org>, "Matt D. Harris" <mdh_lists@yahoo.com>
2010-01-21 10:16:21 +00:00
gavin
0bd93a7ab7 Merge r201429:
Fix return code in the case of successful file transfer, broken in
  tftp.c 1.13

PR:		bin/117452
Submitted by:	Spencer Minear  minear securecomputing.com
Approved by:	ed (mentor, implicit)
2010-01-17 10:58:59 +00:00
ru
07b41d1dea Update to a 26-Nov-2009 release. 2010-01-15 14:20:01 +00:00
ru
1e75263796 MFC r201290: Treat an empty argument as an error, instead of
fetching the contents of the root directory.
2010-01-06 08:26:43 +00:00
delphij
768b2f543d MFC r200793:
Plug a memory leak.

PR:		bin/141836
Submitted by:	Henning Petersen <henning.petersen at t-online.de>
2010-01-04 01:07:32 +00:00
edwin
2b3d3bdd5b MFC of r200650, r200624
Add Australian, New Zealand and Ukraian calendars to the "all" target".
Nationalise Easter -> Pasen in calendar.dutch
2009-12-24 01:28:26 +00:00
attilio
d98cd8f494 MFC r199805:
Change gcore in order to get rid of the procfs support and use FreeBSD's
specific interfaces. Main changes:
- now gcore recognizes threads within the the process and handle dumps on
  a thread scope
- the process to be analyzed should be stopped while gcore runs
- gcore may not work with processes that are being debugged with gdb or
  truss
- ptrace may let interruptible calls to return EINTR, thus dirtying
  signals handling within the process

Sponsored by:	Sandvine Incorporated
2009-12-19 19:30:27 +00:00
attilio
97dd2a3219 MFC r199803:
Add the possibility to show informations about dropped packets on the
input path when showing interfaces informations.

Sponsored by:	Sandvine Incorporated
2009-12-19 19:25:35 +00:00
edwin
d27f4c464f MFC of r199642
The output of perror(1) is now showing local messages for locales
supported by libc/nls

PR:             bin/140499
Approved by:    gnn@
2009-12-06 21:07:47 +00:00
bz
1f7b1b46a3 MFC r199946:
Add more statistics variables for IPcomp.

  Try to version the struct in a backward compatible way.
  People asked for the versioning of the stats structs in general before.

Note: old netstat binaries, as only consumer, continue to work as they are
      still using kvm but will not display the new stats. [1]

Discussed with:	rwatson [1]
2009-12-05 19:21:58 +00:00
delphij
ecf5608ad6 MFC r199066 + 199339:
Apply a NetBSD fix (revision 1.12) to handle multi-session bzip2 files
as created by pbzip2.
2009-12-02 21:58:00 +00:00
fanf
73042deba6 MFC 199813, 199817, 199842, 199867:
Update unifdef to latest upstream version.
2009-12-02 15:30:53 +00:00
ume
c60eb36144 MFC r199242: Use ncursesw to output the date field of vmstat
display with multi-byte string, correctly.
2009-11-22 17:16:37 +00:00
attilio
b5c6ae703d MFC r199024:
Use a safety belt for cases where corrupted narg can be passed to the
ktrsyscall().
2009-11-22 16:13:16 +00:00
jh
1df0fb5d0b MFC r197956:
- Catch SIGHUP to perform cleanup before exiting.
- Exit if getch() returns with an error other than EINTR. Otherwise
  systat(1) may get stuck in an infinite loop if it doesn't receive
  SIGHUP when terminal closes.
- Remove attempt to clear stdio error indicators. getch() doesn't use
  stdio, making it useless.
- Remove unneeded masking of getch() return value.

PR:		bin/107171
Approved by:	trasz (mentor)
2009-11-15 14:11:26 +00:00
jhb
27f077e094 MFC 198620:
When fetching sum stats (vmstat -s) from a crash dump, fetch per-CPU counts
and sum them to form the total counts.
2009-11-06 20:33:40 +00:00