Commit graph

8448 commits

Author SHA1 Message Date
Ruslan Ermilov bdf3513904 Bump the original revision of c89(1). 2007-03-10 07:11:20 +00:00
Ruslan Ermilov bf78e6dabb Reduce diffs with c99(1). 2007-03-10 07:10:01 +00:00
Kirk McKusick 67562496ad Add myself. 2007-03-10 05:56:05 +00:00
Ruslan Ermilov 228978c1b8 Sort (once again) by month/day/year/login. 2007-03-09 20:31:46 +00:00
Johann Kois ddf3a67d31 Add my record.
Discussed with and approved by: remko@
2007-03-09 20:14:59 +00:00
Ed Maste f9feee175b KERN_PROC_ALL produces a kinfo_proc for each thread in a process, which
caused fstat to produce duplicated output for threaded processes.  Instead
use KERN_PROC_PROC to get just one kinfo_proc per process.

MFC After:	2 weeks
2007-03-09 16:21:40 +00:00
Ruslan Ermilov 087d64de6f Fix markup. 2007-03-09 14:36:18 +00:00
Ruslan Ermilov 28842b571d Spell "id" as "ID". 2007-03-09 12:45:00 +00:00
Martin Wilke a630c2b75d - Add my birthday 2007-03-08 22:53:50 +00:00
Max Khon d2742a2b29 Better English. 2007-03-08 14:05:45 +00:00
Yoshio MITA 7645637281 Following rwatson's suggestion.
<20070307130635.M28276@fledge.watson.org>
2007-03-08 13:09:55 +00:00
Tim Bishop f22bd00d94 Add my birthday to the FreeBSD calendar.
Encouraged by:	rwatson
2007-03-08 12:17:01 +00:00
Bernd Walter ac7272e70d Add myself to the FreeBSD calendar. 2007-03-08 10:54:27 +00:00
Max Khon 9a81351403 Implement "Remaking Makefiles" feature:
After reading Makefile and all the files that are included using .include
or .sinclude directives (source Makefiles) make considers each source
Makefile as a target and tries to rebuild it.  Both explicit and implicit
rules are checked and all source Makefiles are updated if necessary. If
any of the source Makefiles were rebuilt, make restarts from clean state.

To prevent infinite loops the following source Makefile targets are
ignored:
- :: targets that have no prerequisites but have commands
- ! targets
- targets that have .PHONY or .EXEC attributes
- targets without prerequisites and without commands

When remaking a source Makefile options -t (touch target), -q (query
mode), and -n (no exec) do not take effect, unless source Makefile is
specified explicitly as a target in make command line.
Additionally, system makefiles and .depend are not considered as a
Makefiles that can be rebuilt.

Reviewed by:	harti
2007-03-08 09:16:11 +00:00
Will Andrews ffb7adf38e Fix a bug where the standard input (fifoFd == 0) was confused with an
error return from open(2), leading to an erroneous value of maxJobs and
a hung make when -f is standard input and -j is used.

PR:		bin/101232
Submitted by:	Nate Eldredge <nge@cs.hmc.edu>
2007-03-08 07:57:43 +00:00
Tim Kientzle 254cbd1764 Argh. Support for reading ACLs off of disk was inadvertently disabled
as part of an old configuration shuffle.  As a result, although
ACL restore has been working, ACLs haven't been written into archives
for some time.  <sigh>

Pointy hat: You know.
MFC after: 3 days
2007-03-08 05:52:01 +00:00
Bruce A. Mah ffa83f46c0 Jump on the calendar bandwagon and add myself. 2007-03-07 19:15:18 +00:00
Stefan Walter 34401adb87 Add my birthday to calendar.freebsd. 2007-03-07 19:00:01 +00:00
Diane Bruce 344c88ecd8 - Add myself to calendar.freebsd
Encouraged by:	rwatson, ehaupt
Approved by:	ehaupt (mentor)
2007-03-07 16:06:48 +00:00
Paolo Pisati e31a5e5583 Correctly sort my entry to FreeBSD calendar first by date, then by year.
Pointed out by: ru
2007-03-07 16:02:32 +00:00
Paolo Pisati 77079f1379 Add my bithdate to the FreeBSD calendar. 2007-03-07 15:08:51 +00:00
Ariff Abdullah ea6f2b0760 Add my birth date/location to the FreeBSD calendar. 2007-03-07 14:48:42 +00:00
Rong-En Fan 5777187dd7 Add myself to the FreeBSD calendar 2007-03-07 13:45:39 +00:00
Konstantin Belousov c0f8b88e50 Add my birthday to the freebsd calendar 2007-03-07 13:21:55 +00:00
Max Khon 27d0a1a493 Support character device as input file.
PR:             103500
2007-03-06 17:04:15 +00:00
Ruslan Ermilov 31d3065878 More markup fixes. 2007-03-04 08:24:13 +00:00
Ruslan Ermilov 58f5d5b0f8 Markup fixes. 2007-03-04 08:14:26 +00:00
Tim Kientzle baf85fc253 Make the file tests robust against broken symlinks and other
sources of stat()/lstat() failure.
2007-03-03 07:49:08 +00:00
Tai-hwa Liang 1fa420b671 Fixing NO_INET6 build as addr2ascii() has been nuked in previous commit. 2007-03-02 05:23:39 +00:00
Bruce M Simpson b32fedf48f stub call to addr2ascii().
Noticed by:	brooks
2007-03-01 02:11:57 +00:00
Bruce M Simpson 67228c4621 Nuke ascii2addr() and addr2ascii(). They have no consumers anywhere
in FreeBSD, and originated from INRIA IPv6.

Stub out netstat reference to addr2ascii() I mistakenly introduced.
Update misleading man page sections.

Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to
print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394
bits which don't map directly to our code.

Obtained from:	NetBSD (getnameinfo.c)
Discussed on:	current (March 2006)
2007-02-28 21:18:38 +00:00
Ruslan Ermilov ac4c858b19 Backport markup fixes from a translated version of a manpage. 2007-02-28 10:22:19 +00:00
Ruslan Ermilov fbccd9db48 Check in some insignificant fixes obtained as a result of
the translation work.
2007-02-28 10:19:25 +00:00
Ruslan Ermilov 081fa92f3b - Adopt the short description from POSIX as it better matches the
utility name.

- Fix a bug in description: the range preceded by a dash selects
  up to the last number, not first.
2007-02-28 10:13:32 +00:00
Ruslan Ermilov 5897a066d9 Fix markup. 2007-02-27 12:06:02 +00:00
Bruce Evans b6c86f4b1e Fixed some style bugs (whitespace lossage for removal of __P(()), and
lots of naming and typing errors involving `interval').
2007-02-27 05:10:36 +00:00
Bruce Evans 93547b07b9 Use a periodic itimer instead of repeated calls to alarm() in
sidewaysintpr().  This increases the accuracy of the per-interval
counts when they are interpreted as rates.  Repeated calls to alarm(n)
give an average interval that is about 2 ticks larger than n and has
a large variance.  Periodic itimers normally get the average almost
right but have similarly large variance (due to scheduling delays).

Statistics utilities should use clock_gettime() to determine the
actual interval, but it is still useful to maximize the accuracy of
the interval, especially for cases like netstat -w where counts are
displayed so the program cannot hide the inaccuracy in a rate
conversion.
2007-02-27 04:54:33 +00:00
Mohan Srinivasan 7c72af8770 Reap FIN_WAIT_2 connections marked SOCANTRCVMORE faster. This mitigate
potential issues where the peer does not close, potentially leaving
thousands of connections in FIN_WAIT_2. This is controlled by a new sysctl
fast_finwait2_recycle, which is disabled by default.

Reviewed by: gnn, silby.
2007-02-26 22:25:21 +00:00
Jung-uk Kim 560a54e10c Add three new ioctl(2) commands for bpf(4).
- BIOCGDIRECTION and BIOCSDIRECTION get or set the setting determining
whether incoming, outgoing, or all packets on the interface should be
returned by BPF.  Set to BPF_D_IN to see only incoming packets on the
interface.  Set to BPF_D_INOUT to see packets originating locally and
remotely on the interface.  Set to BPF_D_OUT to see only outgoing
packets on the interface.  This setting is initialized to BPF_D_INOUT
by default.  BIOCGSEESENT and BIOCSSEESENT are obsoleted by these but
kept for backward compatibility.

- BIOCFEEDBACK sets packet feedback mode.  This allows injected packets
to be fed back as input to the interface when output via the interface is
successful.  When BPF_D_INOUT direction is set, injected outgoing packet
is not returned by BPF to avoid duplication.  This flag is initialized to
zero by default.

Note that libpcap has been modified to support BPF_D_OUT direction for
pcap_setdirection(3) and PCAP_D_OUT direction is functional now.

Reviewed by:	rwatson
2007-02-26 22:24:14 +00:00
Greg Lehey 825df58b28 Add support for selecting from multiple tuners.
Suggested by:	usleepless <usleepless@gmail.com>
2007-02-25 01:28:37 +00:00
Greg Lehey f65f25a187 Tidy up forrmat. No functional changes. 2007-02-25 01:08:17 +00:00
Bruce M Simpson c15ddad979 Use sysctl(2), not kvm(3), to read IPv6 multicast information from
the running system.
Use the name 'IPv6 Forwarding Table', not 'IPv6 Routing Table', to be
consistent with what the code actually does and is.
2007-02-24 21:58:30 +00:00
Bruce M Simpson 848b41603f Use the names 'IPv4' and 'Forwarding Table' in program output, not
'Routing Table', to be consistent with what the code actually does and is.
2007-02-24 21:56:52 +00:00
Bruce M Simpson 4f487dfc1a Add comments about where netstat is using KVM to read things which
should really be available via sysctl for a running system.
2007-02-24 21:42:21 +00:00
Jordan Sissel ee35eb7aa1 Make cu/tip handle when $HOME is not set in the environment.
Approved by: philip
Submitted by: ale
PR: bin/108775
2007-02-23 18:41:12 +00:00
Bruce M Simpson b1b536e789 Update host-mode multicast group information output.
Display IPv4 and IPv6 memberships separately.
  Obey the MK_INET6_SUPPORT flag.
 Display link-layer memberships.
  Use addr2ascii() to correctly print non-IEEE 802 sockaddr_dl instances.
 Eliminate redundant switch..case blocks.
 Update copyright.
 Misc style changes.

MFC after:	3 weeks
2007-02-21 13:59:21 +00:00
Bruce M Simpson ab8e5cbf16 Change wording of warnings when there is no ip_mroute.ko module
loaded into the system.
Change wording of comments to reflect the fact we should unconditionally
use KVM if the -M option is used to specify a core file.
Add comments to document the fact that IPv6 multicast forwarding
information display still relies on KVM for gathering information.
2007-02-21 13:41:51 +00:00
Tim Kientzle 671d7d80a4 If we already have stat() data, we might be able to
determine if this is a physical dir without an lstat().
While I'm in here, try to clarify the comments around
the _is_dir() and _is_physical_dir() tests.
2007-02-21 05:07:43 +00:00
Tim Kientzle 6bf00d8bc7 Andrew and Colin each pointed out to me that truncating the backup
of a growing file should not be considered a "bad thing."

PR: bin/108990
MFC after: 7 days
Pointy hat: /me
2007-02-18 06:23:57 +00:00
Bruce M Simpson d092c06c3a Retire most of the classful network behaviour of netstat -r output, for IPv4.
Without -n, we now only print a "network name" without the prefix length
 under the following conditions:
  1) the network address and mask matches a classful network prefix;
  2) getnetbyaddr(3) returns a network name for this network address.

 With -n, we unconditionally print the full unabbreviated CIDR network
 prefix in the form "a.b.c.d/p". 0.0.0.0/0 is still printed as "default".

This change is in preparation for changes such as equal-cost multipath, and
to more generally assist operational deployment of FreeBSD as a modern IPv4
router. There are currently no plans to backport this change.

Discussed on:	freebsd-net
2007-02-14 14:17:01 +00:00
Tim Kientzle effb1b7fcb Correctly handle writes beyond the end of the archive entry
(as determined by the initial size given to the header).
Libarchive recently changed to correctly return the amount
of data actually consumed in this case, which revealed this
bug in bsdtar.
2007-02-14 08:16:08 +00:00
Mike Pritchard 975f2e5cf7 Allow the -c -f file options to actually execute. 2007-02-13 00:22:29 +00:00
Mike Pritchard cf84d28b0a Fix some spelling / markup / grammar.
Pointed out by: ru
2007-02-11 18:13:00 +00:00
Mike Pritchard 2e1f5ad9d1 Add two new options to quota:
-f path
    Only print quota information for the file system that path resides on.
-r
    Display the quota information in a raw format.

Reviewed by:	freebsd-hackers
2007-02-11 16:25:25 +00:00
Simon L. B. Nielsen fc8405c644 Do not install zgrep, or links to zgrep, since zgrep is provided by
src/gnu/usr.bin/grep.

Reviewed by:	delphij
2007-02-10 13:49:39 +00:00
Tim Kientzle d00914ea85 Update -r handling:
* Create file if it doesn't exist.
  * If archive is "empty", then append to it with pax restricted
  * If user specified a format, use that if it's compatible with
    the existing format.
2007-02-08 07:25:53 +00:00
Kevin Lo 9c20ad30e0 getopt(3) returns -1, not EOF. 2007-02-06 08:48:28 +00:00
Kevin Lo 1c6adfcfdf getopt(3) returns -1, not EOF when out of args. 2007-02-05 07:35:23 +00:00
Ralf S. Engelschall 3181f5556f cleanup code: remove superfluous comma at end of enumeration
declaration, remove useless "break" after exit(3) call, and add a
missing va_end(3) call.
2007-02-04 20:52:57 +00:00
Ralf S. Engelschall 865b0cf06c cleanup code: remove unnecessary and useless void cast
from void-function skip_string().
2007-02-04 20:07:07 +00:00
Ralf S. Engelschall 0c9dffd3af Correct parser by using intended C equality ("==") instead of
assignment ("=") operator.
2007-02-04 20:06:10 +00:00
Ralf S. Engelschall f615552554 fix bug: avoid dereferencing content of an already free(3)'ed chunk 2007-02-04 20:04:29 +00:00
Mike Pritchard f5374712ce If a user is over both the soft block limit and soft i-node
limit, quota will report one of the grace times incorrectly.
This is due to it storing the result in a static buffer, and the
routine being called like:
	printf("....", ..., timeprnt(btime), timeprnt(itime), ...)

The problem becomes very obvious if you change one of the default
grace periods to be much larger than the other one.

Changed timeprnt to dynamically allocate the string to be displayed.
2007-02-04 14:06:58 +00:00
Mike Pritchard fbb42904c4 If two files systems, /a and /b are marked as having quotas enabled
in fstab and they are normally mounted as /a/b, if /b is not mounted,
the various quota utilities will incorrectly operate with the quotas on
/a (silently) when operations are attemted on /b.

Sync up all the hasquota() routines between all the different
quota utilities and change it to detect if the file system we are
attempting to perform quota operations on is not currently mounted
and warn the user accordingly.

PR:	bin/38918
2007-02-04 06:33:15 +00:00
Mike Pritchard dfaa806864 Make quota exit with a non-zero status if one more more file
systems are over quota, as documented in the man page.

PR:	bin/77918
2007-02-01 08:37:44 +00:00
Xin LI 161c3dc4b0 Fix typo.
Obtained from:	DragonFly
2007-01-31 07:13:25 +00:00
Xin LI 9a9ea25f4a Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

 - Because this is a piece of mature code and we want to make
   changes so it is added directly rather than importing to
   src/contrib.
 - Connect newly added code to src/usr.bin/ and rescue/rescue
   build.
 - Disconnect the GNU gzip code from build for now, they will
   be eventually removed completely.
 - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
   WITHOUT_BZIP2.

Tested by:	kris (full exp-7 pointyhat build)
Approved by:	core (importing a 4-clause BSD licensed file)
Approved by:	re (adding new utility during -HEAD code slush)
2007-01-26 10:19:08 +00:00
Peter Wemm ed0cfa6ecc Bah. Kris says the default-to-a.out knowledge has migrated into the
official gnu configure scripts and a couple of other places.

Add an example noisy, loud and annoying placeholder for /usr/bin/objformat
if it turns out to too much trouble to be gone.  It is not connected to
the build yet.
2007-01-25 23:12:19 +00:00
Peter Wemm 64f133292a Retire objformat(1) as threatened in 2002.
Laughed-at-by:  kris
2007-01-25 22:26:41 +00:00
Maksim Yevmenkin 0a314f7c39 Add "server mode" to rfcomm_sppd(1).
Submitted by:	Dave Eckhardt, bms
Tested by:	Dave Eckhardt, Eric Anderson, bms
2007-01-25 20:54:59 +00:00
Doug Barton 1d8be4bade Update birth entry for Warren Zevon with his birthplace, and add an
entry for his death. Both per Wikipedia.
2007-01-24 21:21:38 +00:00
Maxim Konovalov ba5b74d001 o Remove duplicate includes.
Obtained from:	Slava Semushin via NetBSD
2007-01-20 08:24:02 +00:00
Poul-Henning Kamp 64b4073914 Make DK-HOSTMASTER show contact info for .dk domains.
Submitted by:	Søren Hansen <shan@soeren-hansen.dk>
2007-01-19 08:13:17 +00:00
Ruslan Ermilov bc68fcf37c Fix definitions of kilobits etc.
PR:		bin/106116
Nudged by:	Rostislav Krasny
MFC after:	3 days
2007-01-18 09:24:08 +00:00
Giorgos Keramidas 1833a7eaee Document that uniq(1) limits input line length to LINE_MAX characters.
PR:		docs/107578
Submitted by:	Jan Schaumann, jschauma.at.netmeister.org
MFC after:	3 days
2007-01-15 23:25:51 +00:00
Ruslan Ermilov f240e019cd Tidy up formatting and some wording. 2007-01-15 15:25:15 +00:00
David Malone c11fadd90b Updated calendar.judaic from Josef Grosch. I converted some tabs to spaces
before committing this.
2007-01-14 09:58:39 +00:00
Brooks Davis 6137b0bdf9 Fix build on architectures where off_t is signed by casting to uintmax_t
before comparing with a size_t.
2007-01-11 20:23:01 +00:00
Brooks Davis 6e8298db22 Fix head -c ### where ### is greater than 2^31. Unlike the submitted
patch this uses off_t.

WARNSify and add $FreeBSD$ to Makefile.

PR:		bin/107824
Submitted by:	Brian Cornell <briancornell at earthlink dot net>
MFC after:	3 days
2007-01-11 17:03:51 +00:00
John Baldwin 1f4b63f824 Add various utrace's for use with ktrace to the ELF runtime linker. To
activate the traces, set the LD_UTRACE (or LD_32_UTRACE) environment
variable.  This also includes code in kdump(8) to parse the traces.

Reviewed by:	kan, jdp
MFC after:	2 weeks
2007-01-09 17:50:05 +00:00
Alexander Nedotsukov 278ade6b47 Update for japanese holidays.
PR:	107703
2007-01-09 08:22:57 +00:00
Tim Kientzle dbd5adf0d9 Correct the copyright messages: Make this a standard vanilla
2-clause BSD license, update the year to 2007.
2007-01-09 08:12:17 +00:00
John Baldwin 670b9e9fda Add code to parse the utrace(2) entries generated by malloc(3) in a more
human-readable format.  Note that we report 'realloc(p, 0)' as 'free(p)'
since both cases are encoded the same way and 'free()' is more common
than a realloc() to 0.

MFC after:	1 week
2007-01-05 21:04:37 +00:00
Colin Percival 161b2956bb If append_archive fails while writing an archive header, output the error
message from the archive being written (not the message from the archive
being read, where no error has occurred).

MFC after:	3 days
2007-01-05 16:20:21 +00:00
Craig Rodrigues 8bc31d836f Add sockipprotoname() function. Decode the third parameter (protocol)
of a socket() call with sockipprotoname() if the first parameter (domain)
is PF_INET or PF_INET6.

Old parsing behavior before this change:
ping6    CALL  socket(PF_INET6,SOCK_RAW,0x3a)

New behavior after this change:
ping6    CALL  socket(PF_INET6,SOCK_RAW,IPPROTO_ICMPV6)
2007-01-04 04:46:59 +00:00
Craig Rodrigues d18b5b8ca1 Generate sockdomainname() function with auto_if_type() instead
of auto_or_type.

The old parsing code would incorrectly decode a socket() call in the
ping6 program as:
  CALL  socket(PF_PUP|PF_ECMA|PF_APPLETALK|PF_COIP|PF_SIP,SOCK_DGRAM,0)

The new parsing code decodes the same socket() call as:
  CALL  socket(PF_INET6,SOCK_DGRAM,0)
2007-01-04 04:28:17 +00:00
Craig Rodrigues 4c8dc49a4a Add auto_if_type() function, which is similar to auto_switch_type().
However, auto_if_type() uses if/else statements in C instead
of a single switch statement, when mapping an integer value to
a #define.  For certain cases where multiple #define constants
alias to a single integer value, auto_if_type() makes things easier
to parse than auto_switch_type().
2007-01-04 04:18:03 +00:00
Colin Percival 1b720f2a86 Clean up the struct archive used for reading an archive in the handling
of @archive commands.  This bug should be harmless as long as you don't
use an excessive number of @archive commands.

MFC after:	1 week
2007-01-02 15:03:38 +00:00
Colin Percival d82088b28f Handle errors which occur during archive_write_data and archive_write_close
by printing an error message and exiting with a non-zero status code.

MFC after:	1 week
2007-01-02 12:24:14 +00:00
Maxim Konovalov 1bfbae3533 o Grammar: is appears -> appears.
PR:		docs/107306
Submitted by:	Tomas Mozes
MFC after:	1 week
2006-12-31 07:22:55 +00:00
Yaroslav Tykhiy 9b3d1b0253 Fix a group of typos:
preceed -> precede,
preceeded -> preceded,
preceeding -> preceding.

Submitted by:	Andre Guibert de Bruet <andy@siliconlandmark.com>
2006-12-29 13:08:46 +00:00
Stefan Farfeleder 703dfcbeb9 Fix SUSv3 compliance: Use a single comma instead of comma and space to separate
additional group entries.

PR:		107298
Submitted by:	Joost Bekkers
2006-12-29 12:28:34 +00:00
Ruslan Ermilov 8abab4f01b Fix tab lossage. 2006-12-29 06:44:24 +00:00
Ruslan Ermilov 391fb00db7 Remove extraneous whitespace. 2006-12-29 06:39:35 +00:00
Ruslan Ermilov c343ecf7ee The Christmas holidays were not showing up due to missing <tab>. 2006-12-29 06:36:32 +00:00
Ruslan Ermilov 0a1cf344b7 Fix markup nit. 2006-12-28 10:58:06 +00:00
Ruslan Ermilov 16c1a8c6a2 Fix markup. 2006-12-28 04:58:38 +00:00
Ruslan Ermilov bf42b54c6c - Remove the ambiguity in the input format description.
- Fix markup while here.
2006-12-27 14:56:18 +00:00
Ruslan Ermilov 3f7358b96b Simplify. 2006-12-26 12:43:12 +00:00
Dryice Dong Liu 2875ba4a9f Add my birthday to calendar.freebsd
Approved by:	itetcu (mentor)
2006-12-26 11:33:26 +00:00