8115 Commits

Author SHA1 Message Date
joerg
a64150143b MFC: more intelligent handling of /usr/ports subdirectories. 2008-06-20 08:49:58 +00:00
remko
3d61931553 MFC rev 179355 and 179848 shar.sh
r179355

  Limit the EOF marker length to a maximum of 79 characters. [1]

  Add $FreeBSD$ tag so that I can actually commit this.

  PR:             bin/118782
  Reported by:    Bjoern Koenig
  Patch by:       edwin, Jaakko Heinonen (not used patch)
  MFC after:      1 week
  Approved by:    imp (mentor, implicit)

r179848:
  Remove superfluous eofmarker.

  Requested by:   Jaakko Heinonen
  Discussed with: Jaakko, edwin
2008-06-17 19:10:38 +00:00
fjoe
a01c254e22 MFC: :u (unique) var modifier
Requested by:	kris
2008-06-13 06:54:28 +00:00
kientzle
ff1f4469f9 MFC 177341: Decrement matched patterns so that --extract-fast works. 2008-06-12 06:20:49 +00:00
brooks
65bac2d512 MFC r179024: Change a use of u_int32_t to uint32_t.
PR:		bin/93172
2008-06-05 22:35:58 +00:00
jhb
25fa0cf7d0 - Close a small fd leak that can occur if we have to do more than one
PIOCWAIT after forking a new child process.
- Use NULL instead of 0 in one spot.

This is a direct commit to RELENG_6 since it only applies to the procfs
code and newer branches use ptrace() rather than procfs.
2008-05-23 20:06:59 +00:00
jhb
3b852d1a8d MFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64. 2008-05-23 20:04:55 +00:00
jhb
479693cd4a MFC: Only output details about the current working directory of a process
if the vnode pointer is not NULL.
2008-05-19 18:21:52 +00:00
emax
bca500c307 MFC:
Make -t <tty> optional in server mode. If not specified use stdin/stdout.
Document this. Do not require channel number in server mode. If not
specified - bind to ''wildcard'' channel zero. Real channel number will
be obtained automatically and registered with local sdpd(8). While I'm
here fix serial port service registration.

Submitted by:	luigi
Tested by:	Helge Oldach <freebsd-bluetooth at oldach dot net>
2008-05-19 16:46:42 +00:00
brooks
de834b9862 getopt.c is public domain. Add a comment to that effect.
Remove confusing README.

PR:		bin/98911
Submitted by:	Jason McIntyre <jmc at kerhand dot co dot uk>
Obtained from:	OpenBSD
2008-05-19 02:49:02 +00:00
cvs2svn
d56be944d7 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2008-05-16 15:34:07 +00:00
hrs
aa2573a3cb MFC(rev.1.25):
Add AUTHORS section[*] and fix HISTORY section.

Requested by:		Dave Yost (original author)[*]
History checked by:	The CSRG Archives
2008-05-06 18:07:17 +00:00
scf
a8a24642d3 MFC:
Capitalize "Eve".  This is the correct form and now matches
calendar.usholiday.

    src/usr.bin/calendar/calendars/calendar.christian: rev 1.10 -> 1.11
2008-04-27 17:39:33 +00:00
delphij
3a4abd3fa6 MFC revision 1.22
date: 2008/03/07 00:01:19;  author: delphij;  state: Exp;  lines: +61 -68
Merge revisions 1.10 and 1.11 from DragonFly:

 - Use real getopt() handling instead of the hand-rolled and
   IOCCC-worthy "Micro getopt()" macros, plus clean up to the
   option handling code:
    * Sort the options in the switch statement;
    * Plug piddling memory leaks when processing repeated options
      by freeing strings before allocating them for a second time;
    * Die with a fatal error if the requested report file cannot
      be opened for appending;
    * Don't call init() before usage() (to prevent the usage
      message being mangled by changes to the terminal settings;)
 - Clean up the usage message, both in usage() and in the main
   program comment, both stylistically (sort and combine options)
   and for accuracy (following the manual page, make note of the -s
   and -S flags, and use the term 'send' instead of 'say' to reduce
   confusion (SAY is the name of a command for output to the user,
   not the connection.))

Obtained from:  DragonFly
2008-04-10 22:43:46 +00:00
peter
c7bd46983f MFC: backport -P (per-cpu) stats for %user/%system/%idle etc. 2008-04-09 19:48:06 +00:00
kientzle
9e0f2dbfe9 Include Guido's license information from the pattern-matching code. 2008-03-31 06:20:46 +00:00
ume
6661549bac MFC 1.31: Change .8s port name restriction to .15s.
This change corresponds to inet.c 1.13.
2008-03-25 13:14:29 +00:00
rwatson
f4830d9c85 Merge gzip.c:1.6 from HEAD to RELENG_7:
Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner similar to
  its existing understanding that .tgz uncompresses to .tar.

  PR:             121519
  Submitted by:   Ighighi <ighighi at gmail.com>
2008-03-12 11:34:26 +00:00
ghelmer
994c2f8631 MFC: 1.30
Fix truncation of lines at LINE_MAX characters by dynamically
extending line buffers.

PR:		bin/76578
2008-03-06 15:07:37 +00:00
jhb
f8b6d9fb2d MFC: Make netstat -rn more resilient to having the routing table change out
from under it while running.
2008-03-05 21:19:25 +00:00
emax
bba4874ecf MFC: add "server mode" to rfcomm_sppd(1)
MFC: Check return value of listen()

PR:		bin/102523
Submitted by:	Dave Eckhardt, bms, kevlo
Tested by:	Dave Eckhardt, Eric Anderson, bms
2008-03-04 17:41:58 +00:00
marius
6dc790e802 MFC: netstat.h 1.53; route.c 1.86, 1.87
Fix netname() (though for RELENG_6 more or less cosmetic only) and
routename() on big-endian LP64 archs.
2008-02-14 21:52:38 +00:00
rafan
e03472f729 - MFC file 4.23
Discussed with:	obrien
2008-01-29 10:36:39 +00:00
delphij
56ad76641a MFC revision 1.7
date: 2008/01/12 00:11:26;  author: delphij;  state: Exp;  lines: +4 -4
 - Handle the case where interface from "middle" is missing by
   more carefully inspecting the return value from sysctl(3). [1]
 - Use calloc instead of malloc+memset of zero.

Submitted by:	Alexander Chernikov <admin su29 net> [1]
PR:		bin/119581
MFC after:	2 weeks
2008-01-26 21:59:10 +00:00
keramida
8cae788ab2 MFC: 1.19
Update usage & SYNOPSIS and clarify that input files are not removed.
Sort getopt option handling of -p too, while here.

The changes are adapted from a patch by Ruslan Ermilov, posted as
followup to docs/33852.

PR:             docs/33852
Submitted by:   Gary W. Swearingen <swear@blarg.net>
2008-01-26 11:37:54 +00:00
rafan
8534933fd6 MFC file 4.21 2008-01-24 15:47:31 +00:00
des
31234fec69 MFC: document environment variables. 2008-01-24 08:17:50 +00:00
obrien
02ad23dc69 MFC: rev. 1.76: 'netstat -A -p tcp' prints the Tcpcb pointer in the 1st col 2008-01-04 03:21:21 +00:00
philip
09cba66799 MFC: Add a cross-reference to newgrp(1).
Approved by:	re (kensmith)
2007-12-06 10:51:40 +00:00
delphij
b2cc924e7e MFC: less v416.
Approved by:	re (kensmith)
2007-12-04 22:41:44 +00:00
avatar
46c07ca50b MFC(1.14): Fixing a double free bug which will cause tail to dump core when
there's no tailing newline(\n) character.

PR:		bin/118267
Reviewed by:	kib
Approved by:	re (kensmith)
2007-11-29 03:54:56 +00:00
se
bc8cf9b491 MFC: Extend buffer to match maximum possible string length. 2007-11-15 18:59:46 +00:00
kib
c7f5437e4c MFC rev. 1.12:
Fix various memory leaks.
2007-11-07 13:38:45 +00:00
csjp
19c252a9ae MFC revision 1.34
Add support for processing extended (ip6) subject termids
2007-11-03 15:33:04 +00:00
csjp
61f1519b38 MFC lockf.c revision 1.17
MFC lockf.1 revision 1.19
2007-11-03 15:31:38 +00:00
jhb
b3027a4df2 MFC: Add a -z flag to nfsstat which zeros the NFS statistics after
displaying them.
2007-10-26 22:06:55 +00:00
edwin
a3a277382f MFC of 1.11
Teach makewhatis.c to treat .SS with the same severity as .SH.

At least one port (net-mgmt/net-snmp) creates man-pages which are
in the format:

.SH NAME
The Net-SNMP agent \- The snmp agent responds to SNMP queries from manag
ement stations.

.PP
.SS "Modules"

At this moment, makewhatis determines the end of the .SH NAME section
as where it finds .SH again, but there is none here, is it "terminated"
by the .SS.

PR: bin/116706
Submitted by: edwin@
2007-10-25 03:52:42 +00:00
obrien
a5ff6b804a Stop applying patches at build time - instead apply directly to the files.
I've seen this practice cause issues for vendors using our sources...
2007-10-09 15:28:15 +00:00
obrien
818361dec3 MFC: Use uintmax_t to pass around 64-bit quantities, including to printf().
Using uintmax_t is also robust to further extensions in both the C language
and the bitwidth of kernel counters.
2007-10-04 18:27:45 +00:00
obrien
a2842c2079 MFC: 2006/07/28 commit achieving WARNS=3
Also fix nlist 'nl' should be terminated by a NULL entry.
2007-10-03 19:56:17 +00:00
obrien
a66443f373 MFC: rev. 1.8's layout changes. 2007-10-03 19:28:57 +00:00
jhb
f92f6a31e3 Fix another nit in an earlier MFC so that we properly warn if we can't
read the multicast routing stats from a live kernel via sysctl(8).
2007-09-28 19:45:18 +00:00
jhb
f435e446f6 Correct a nit in earlier MFC: the carp stats routine does use sysctl. 2007-09-28 19:38:40 +00:00
edwin
c4790b8a43 MFCs
Dutch calendar
    More dates: Sint Maarten, Dierendag, Trinitatis
    Fix spelling: Carnaval
    Add more of the Royal Family.

Croation calendars:
    Update to calendar/calendars/hr_HR.ISO_8859-2/calendar.praznici
    with fixes and new dates.

PR:             conf/26658
Submitted by:   Josip Rodin <joy@gkvk.hr>
2007-09-28 02:51:26 +00:00
ru
d824151b34 MFC: rev. 1.23: Fix the CPU usage display. 2007-09-27 06:35:27 +00:00
kientzle
b2f9cd5319 MFC 1.77: Support --posix as a synonym for --format=pax, for
GNU tar compatibility.
2007-09-27 03:42:59 +00:00
scf
37617c42be MFC:
Sync usage() with reality.

    src/usr.bin/locate/locate/locate.c: rev 1.16 -> 1.17

Approved by:	wes
2007-09-22 02:46:13 +00:00
philip
96eeba2216 MFC: remove -T from getopt() spec and usage string.
Forgotten by:	des
2007-09-15 07:04:04 +00:00
edwin
69f4c5f944 Massive MFC for all calendar files which have been updated in the
past but were never MFCd.

PR:             conf/61641 conf/70252 conf/107453 conf/113285 conf/113642 (and others)
Submitted by:   various
2007-09-14 01:33:53 +00:00
cvs2svn
14094fa00e This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-09-09 01:28:04 +00:00