Commit Graph

7854 Commits

Author SHA1 Message Date
ru
e44b41c79d MFC: Sync calendar up with HEAD, including adding the Ukrainian calendar. 2005-11-16 07:47:44 +00:00
ru
699d115c5a MFC: 1.7: teach lorder(8) to work with .a libraries. 2005-11-16 07:30:02 +00:00
maxim
17afe6c387 MFC rev. 1.3: update list of holidays in Russia. 2005-11-13 16:35:50 +00:00
csjp
fb6dcae1e3 Sync with head:
-style(9) nits

MFC Log:
  Fix long standing race condition associated with how lockf uses open(2)
  for mutual exclusion:

  A brief description of the problem:

          1) Proc A picks up non-blocking lock on file X
          2) Proc B attempts to pickup lock, fails then waits
          3) Proc C attempts to pickup lock, fails then waits
          4) Proc A releases lock
          5) Proc B acquires lock, release it to pickup a non-blocking version
          6) Proc C acquires lock, release it to pickup a non-blocking version
          7) Both process B and C race each other to pickup lock again

  This occurs mainly because the processes do not keep the lock after they have
  been waiting on it. They drop it, attempt to re-acquire it. (They use the wait
  to notify when the lock has become available then race to pick it up). This
  results in additional CPU utilization during the race, and can also result
  in processes picking locks up out of order.

  This change attempts to correct this problem by eliminating the test/acquire
  race and having the operating system handle it.
2005-11-12 21:00:00 +00:00
csjp
d2b6d2d34e MFC Log:
Un-break processing of device major/minor values with fstat -n. We do
  this by accessing the cdev_priv element of the cdev structure. Looking
  forward we need a better way to handle this, as this structure shouldn't
  be frobbed by userspace.
2005-11-12 20:58:03 +00:00
rwatson
eed89777f6 Merge vmstat.c:1.90 from HEAD to RELENG_6:
Use libmemstat(3)'s kvm support for malloc(9) rather than hand-extracting
  this information from the core dump.
2005-11-09 13:28:50 +00:00
rwatson
372d430838 Merge vmstat.c:1.89 from HEAD to RELENG_6:
Teach vmstat's domemstat_zone() to use memstat_kvm_uma() when the kvm
  descriptor is non-NULL, restoring vmstat -z support for core dumps and
  kmem access.  These were broken with the introduction of UMA.
2005-11-09 13:28:08 +00:00
glebius
7b38b603f5 MFC 1.61 by ru:
Bail if interface is misspelled instead of falling out into the
  "all interfaces" mode.  (Only works with -w, but still better
  than nothing.)
2005-11-09 10:55:37 +00:00
mlaier
135560a493 MFC: rev. 1.79
Fix obvious copy'n'paste-O in rev.1.36  While here nit style.

    PR:			bin/87783
    Submitted by:	Mats Palmgren
2005-11-08 16:45:00 +00:00
kientzle
7a3cda744e MFC 1.65: Correct error message from incorrect use of --format.
PR: bin/86915
2005-11-06 22:27:21 +00:00
kientzle
4151fc111d MFC 1.17: Correctly detect NL_LANG_INFO.
PR: bin/88013
2005-11-06 22:24:27 +00:00
cperciva
bbf37290b2 MFC rev. 1.2: Use the "builtin" shell function to make sure that the
requested command is handled as a shell function.
2005-11-04 18:22:17 +00:00
jdp
62b4ca90c0 MFC 1.24: Fix an erroneous description of the file descriptor assignments
for the "~C" command.
2005-11-04 17:27:24 +00:00
cvs2svn
1a02931cac This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-10-30 05:41:43 +00:00
delphij
2d065140b8 MFC (by ps)
| Unbreak tail -f on non-local filesystems.
|
| Revision  Changes    Path
| 1.39      +10 -0     src/usr.bin/tail/forward.c

Approved by:	re (scottl)
2005-10-09 03:51:55 +00:00
dds
a05f20d858 MFC 1.28
Bug fix: a numeric flag specification in the substitute command would
cause the next substitute flag to be ignored.
While working at it, detect and report overflows.

Reported by:	Jingsong Liu
Bugged by:	Xin Li
Approved by:	re (kensmith)
2005-10-04 15:26:10 +00:00
glebius
ebe24453ed MFC 1.62:
- Print space character in show_stat(). Remove a lot of priuntf(" ").
  - Utilize show_stat() in sidewaysintpr() loop. This makes periodic
    statistics to honor -h flag.

Approved by:	re (kensmith)
2005-09-29 13:19:10 +00:00
keramida
754be4de67 MFC: a lot of manpage fixes from HEAD.
Approved by:	re (hrs)
2005-09-24 01:59:40 +00:00
delphij
b1029e7f15 MFC 1.64 by kientzle:
The bsdtar_warnc() reporting function requires the program name to be
set up before it is called, so move the progname initialization before
the first possible call to bsdtar_warnc().

Thanks to: Stanislav Sedov
PR: bin/83366

Approved by:	re (scottl)
2005-09-20 07:48:00 +00:00
garys
6456e1714b MFC 1.21
Approved by:	re
2005-09-17 17:12:18 +00:00
brian
031028efba MFC: Add a -h option to tell cmp not to follow symbolic links.
Approved by:	re (scottl)
Sponsored by:	Sophos/ActiveState
2005-09-17 11:33:41 +00:00
cvs2svn
21f17fbdbc This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-09-17 03:36:48 +00:00
cvs2svn
99644cc57f This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-08-29 11:34:09 +00:00
yar
64ca23e269 MFC rev. 1.52:
List -W as one of the meaningful options to the -i (interfaces)
  display of netstat(1).

Approved by:	re (hrs)
2005-08-28 09:03:45 +00:00
cperciva
642858bf45 MFC: Tell locate to ignore /var/db/portsnap by default because it isn't
very interesting.

Approved by:	re (scottl)
2005-08-25 19:06:11 +00:00
glebius
d4bfa24b97 MFC:
Add a new switch -h for interface stats mode, which prints all interface
  statistics in human readable form.

  In collaboration with:	vsevolod
  Reviewed by:			cperciva

Approved by:	re (kensmith)
2005-08-19 15:08:43 +00:00
murray
4dd55d84fc MFC: correct date, fix typos, add 07/07 london bombing entry.
Approved by:	re (kensmith)
2005-08-19 03:23:07 +00:00
cperciva
4fbe57a600 MFC: Remove dates, since they serve no purpose and result in files
spuriosuly changing each time they are built.  Also add $FreeBSD$ tags,
because cvs wants them.

Approved by:	re (kensmith)
2005-08-19 02:53:00 +00:00
rwatson
2071d66142 Merge Makefile:1.12, vmstat.c:1.87 from HEAD to RELENG_6:
Teach vmstat -m and vmstat -z to use libmemstat(3).  Certain
  statistics from -z are now a bit different due to changes in the
  way statistics are now measured.  Reproduce with some amount of
  accuracy the slightly obscure layouts adopted by the two kernel
  sysctls.  In the future, we might want to normalize them.

  GC dosysctl(), which is now no longer used.

Merge vmstat.c:1.88 from HEAD to RELENG_6:

  Minor syntax tweaks:

  - Remove some extra blank lines.
  - Remove comments that don't contribute to understanding.
  - Remove additional blank lines in output added to maximize
    compatibility with older vmstat output, but that is actually
    somewhat gratuitous.

  Submitted by:   bde

Approved by:	re (kensmith)
2005-08-19 00:07:06 +00:00
keramida
0467614a12 MFC spelling fixes of several manpages.
Approved by:	re (kensmith)

The merged revisions/files are:

Revision  Path
1.10      src/lib/libarchive/archive_entry.3
1.21      src/lib/libarchive/archive_read.3
1.8       src/lib/libautofs/libautofs.3
1.10      src/lib/libc/net/inet6_rth_space.3
1.8       src/lib/libc/posix1e/acl_get_entry.3
1.15      src/lib/libc/posix1e/mac.3
1.7       src/lib/libc/posix1e/mac_prepare.3
1.37      src/lib/libc/stdtime/strftime.3
1.16      src/lib/libc/sys/kse.2
1.8       src/lib/libc/sys/uuidgen.2
1.4       src/share/man/man4/man4.i386/acpi_ibm.4
1.6       src/share/man/man4/man4.i386/acpi_panasonic.4
1.40      src/share/man/man4/man4.i386/ep.4
1.6       src/share/man/man4/man4.i386/pbio.4
1.5       src/share/man/man4/man4.i386/snc.4
1.2       src/share/man/man4/man4.sparc64/openprom.4
1.4       src/share/man/man4/man4.sparc64/snd_audiocs.4
1.11      src/share/man/man4/witness.4
1.3       src/share/man/man5/devfs.conf.5
1.51      src/share/man/man9/ifnet.9
1.7       src/share/man/man9/printf.9
1.12      src/usr.bin/file2c/file2c.1
1.27      src/usr.bin/indent/indent.1
1.17      src/usr.bin/lockf/lockf.1
1.90      src/usr.bin/make/make.1
1.45      src/usr.bin/systat/systat.1
1.19      src/usr.bin/truss/truss.1
1.33      src/usr.bin/xinstall/install.1
1.11      src/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.8
1.4       src/usr.sbin/bluetooth/sdpd/sdpd.8
1.9       src/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
1.36      src/usr.sbin/i4b/isdnd/isdnd.rc.5
1.53      src/usr.sbin/mtree/mtree.8
1.8       src/usr.sbin/ndiscvt/ndiscvt.8
1.13      src/usr.sbin/ntp/doc/ntpdc.8
1.26      src/usr.sbin/pppd/pppd.8
1.40      src/usr.sbin/syslogd/syslog.conf.5
1.5       src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.conf.5
2005-08-18 15:01:27 +00:00
cperciva
828466c30d MFC addition of bsdiff and bspatch to the base system, in order to
allow them to be used by portsnap(8) in 6.0-RELEASE.

Approved by:	re (kensmith)
2005-08-15 18:34:21 +00:00
cvs2svn
aa9ad453cc This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-08-15 17:07:38 +00:00
ssouhlal
e5998244ea MFC rev 1.11:
it's actually 11 minutes when the machine is assumed to be down and removed
  from the output.

  Obtained from:  DragonFlyBSD

Approved by:	re (kensmith)
2005-08-15 06:07:23 +00:00
csjp
8cd60ce119 MFC revision 1.61 to RELENG_6
date: 2005/07/30 20:00:13;  author: csjp;  state: Exp;  lines: +16 -4
Introduce kdevtoname, which when given the kernel address of a
cdev structure, returns the device name associated with it through
the __si_namebuf member. This un-breaks the processing of devices.

Approved by:	re (kensmith)
2005-08-06 22:26:51 +00:00
des
0c2d08649a MFC: build BIND without thread support.
Approved by:	re (kensmith)
2005-07-30 07:56:28 +00:00
rwatson
2be4c0a749 Merge mbuf.c:1.43,1.44 and Makefile:1.27 from HEAD to RELENG_6:
Modify "netstat -mb" to use libmemstat(3) when acting on a live system,
  with a number of positive benefits:

  - Start using UMA(9) statistics for mbufs and clusters, which avoids
    using the mbuf allocator statistics which suffer from races under
    load on SMP.  This should eliminate "negative" mbuf counts in
    netstat -mb.

  - We are now able to track cached (free) mbufs and clusters and count
    it towards memory allocated by the network stack.

  - We are now also able to track memory allocated to mbuf tags since
    libmemstat(3) can also query malloc(9).  We don't print this except
    as part of the total (for now - #if 0).

  - We are now able to track mbuf/cluster/packet allocation failures,
    although they are not currently printed (#if 0).

  - Don't print out sfbuf statistics when running on a kernel core, as
    currently that code is able only to query sysctl for statistics.

mbuf.c:1.44:

  Since libmemstat(3) now supports its own error management mechanism,
  use that instead of trying to use errno, in order to produce a
  sensible error message.

Approved by:	re (kensmith)
2005-07-28 19:54:55 +00:00
gad
4749223819 MFC 1.3->1.4: Fix minor bugs in -S processing:
1) An unquoted space is always a separator, even when not "in_arg".
 2) When a new destination buffer must be allocated during variable
    substitution, only copy data from the active buffer to the new
    one when we *are* "in_arg".
 3) Fix minor memory leak when expanding ${variable}s

Approved by:	re(kensmith)
2005-07-25 18:09:09 +00:00
mlaier
6b5cea57ef MFC: -sp pfsync
Print newly exported pfsync statistics with netstat(8).

  Requested by:   glebius

Approved by:	re (kensmith)
2005-07-23 17:03:59 +00:00
harti
44e27bfe20 MFC to RELENG_6.
Fix the "..." special command. If this command is found all further
commands for this target are appended to the .END target instead
of beeing executed now. They are executed when the graph is finished.
There was a bug with executing the .END target which came in when
doing conversion to LST_FOREACH() which caused make to dump core.

PR:		bin/83698
Submitted by:	Max Okumoto <okumoto@ucsd.edu>
Approved by:	re
2005-07-20 19:05:23 +00:00
brueffer
150c09eb2f MFC:
- Remove MLINKS to nonexistant manpages
- Change some section numbers to match reality
- For MLINKS to manpages from ports, mention which port installs them

Approved by:	re (hrs)
2005-07-17 15:03:36 +00:00
garga
470174b088 Add myself to FreeBSD calendar
Approved by:	re (Ken Smith), flz (mentor)
2005-07-15 14:46:00 +00:00
cvs2svn
dd2adf2c10 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-07-11 04:14:43 +00:00
jkim
938ac0ac0d add myself as a new committer
Reviewed by:	anholt (mentor)
Approved by:	re (scottl)
2005-07-07 05:48:37 +00:00
johan
8067e5f818 Our bsd.*.mk only supports 6 WARNS levels and we should not use higher values
until it does.

Approved by:	re (dwhite)
2005-06-30 11:56:31 +00:00
ru
07317cc4f0 Fixed troff warnings.
Approved by:	re (blanket manpages)
2005-06-27 07:37:01 +00:00
ru
1a463a3cbe Tidy up the markup.
Approved by:	re (blanket)
OK'ed by:	gad
2005-06-22 19:04:07 +00:00
gad
11fac6778b Fix a bug where the value of ${SOMEVAR} would simply disappear if there
was a separator character immediately before it.  This wasn't likely to
happen in #-lines, but we might as well get it right.  Also fix it so
that "" and "" will create a zero-length argument.

Approved by:	re (blanket `env')
2005-06-21 21:37:53 +00:00
gad
ec12d33e6f Put in a more descriptive heading for the `env' command.
Noticed by:	Matthew D Fuller
Approved by:	re (blanket `env')
2005-06-21 19:45:02 +00:00
gad
45fff07d96 Undo r1.14 to env.c. While it is unusual for environment variables to
start with a '/', they are more supported (by POSIX and SUSv3) than
filenames which have an '=' in them.

Noticed by:	tjr
Approved by:	re (blanket `env')
2005-06-21 19:38:26 +00:00
gad
82ebcba30a Add the '-S' and '-P' options. The '-S' option can be used to split
apart a string, and supports some text substitutions.  This can be
used to provide all the flexibility (and more!) that was lost by recent
changes to how the kernel parses #!-lines in shell scripts.

The '-P' option provides a way to specify an alternate set of directories
to use when searching for the 'utility' program to run.  This way you can
be sure what directories are used for that search, without changing the
value of PATH that the user has set.  Note that on FreeBSD 6.0, this
option is worthless unless the '-S' option is also used.

Approved by:	re (blanket `env')
2005-06-20 03:43:25 +00:00