Commit Graph

9959 Commits

Author SHA1 Message Date
philip
81234cca4a Teach moused about Synaptics touchpads.
While I'm here, document the existence of the '-l' option, which allows
one to use moused to use psm in some more interesting ways.

Approved by:	njl (mentor)
2004-08-03 18:43:45 +00:00
obrien
eede4a5926 Enable packet mode by default. Disk drives have gotten so large now,
it is often the case the partition one wants to boot is above cylinder 1023.
2004-08-03 15:20:55 +00:00
marcel
52fb831b82 Move the inclusion of libdisk.h from sysinstall.h to the source files
that actually need it. This makes it easier for a platform porter to
find the files that may need tweaking to support whatever MD specific
partitioning is needed. It also helps to prevent that the libdisk API
gets exposed and/or used where it's not needed.
2004-08-02 23:18:48 +00:00
wpaul
91a993c68f Today, RealTek sent me a driver to test which had been compiled with
some debug support turned on. It turns out the sections in this driver
binary had relative virtual addresses (RVAs) that were different
from the raw addresses, and it had a .data section where the virtual size
was much larger than the raw size. (Most production binaries produced
with the Microsoft DDK have RVA == PA.)

There's code in the ndiscvt(8) utility that's supposed to handle
the vsize != rsize case, but it turns out it was slightly broken,
and it failed to handle the RVA != RA case at all. Hopefully, this
commit will fix all that.
2004-08-02 18:54:01 +00:00
scottl
638b63391d Document machdep.enable_panic_key.
Submitted by: Craig Rodrigues
2004-08-02 02:07:56 +00:00
marcel
309eb12b77 Remove unnecessary use of the __ia64__ conditional. This slightly improves
maintainability and generally avoids confusion.
2004-08-01 22:44:40 +00:00
wpaul
b9b3caf965 Big mess 'o changes:
- Give ndiscvt(8) the ability to process a .SYS file directly into
  a .o file so that we don't have to emit big messy char arrays into
  the ndis_driver_data.h file. This behavior is currently optional, but
  may become the default some day.

- Give ndiscvt(8) the ability to turn arbitrary files into .ko files
  so that they can be pre-loaded or kldloaded. (Both this and the
  previous change involve using objcopy(1)).

- Give NdisOpenFile() the ability to 'read' files out of kernel memory
  that have been kldloaded or pre-loaded, and disallow the use of
  the normal vn_open() file opening method during bootstrap (when no
  filesystems have been mounted yet). Some people have reported that
  kldloading if_ndis.ko works fine when the system is running multiuser
  but causes a panic when the modile is pre-loaded by /boot/loader. This
  happens with drivers that need to use NdisOpenFile() to access
  external files (i.e. firmware images). NdisOpenFile() won't work
  during kernel bootstrapping because no filesystems have been mounted.
  To get around this, you can now do the following:

        o Say you have a firmware file called firmware.img
        o Do: ndiscvt -f firmware.img -- this creates firmware.img.ko
        o Put the firmware.img.ko in /boot/kernel
        o add firmware.img_load="YES" in /boot/loader.conf
        o add if_ndis_load="YES" and ndis_load="YES" as well

  Now the loader will suck the additional file into memory as a .ko. The
  phony .ko has two symbols in it: filename_start and filename_end, which
  are generated by objcopy(1). ndis_open_file() will traverse each module
  in the module list looking for these symbols and, if it finds them, it'll
  use them to generate the file mapping address and length values that
  the caller of NdisOpenFile() wants.

  As a bonus, this will even work if the file has been statically linked
  into the kernel itself, since the "kernel" module is searched too.
  (ndiscvt(8) will generate both filename.o and filename.ko for you).

- Modify the mechanism used to provide make-pretend FASTCALL support.
  Rather than using inline assembly to yank the first two arguments
  out of %ecx and %edx, we now use the __regparm__(3) attribute (and
  the __stdcall__ attribute) and use some macro magic to re-order
  the arguments and provide dummy arguments as needed so that the
  arguments passed in registers end up in the right place. Change
  taken from DragonflyBSD version of the NDISulator.
2004-08-01 20:04:31 +00:00
gshapiro
1e94b13612 Reflect changes in sendmail 8.13 source tree 2004-08-01 01:16:59 +00:00
njl
941a15ae99 Drop WARNS down to 3 since sparc64 still has justified complaints about
bad casts.

Noticed by:	johan
2004-07-30 21:43:21 +00:00
njl
ada4725d0c Clean up some more casts. Note that the an_fudge alignment hack for
struct an_ltv_stats needs to be fixed.  It has been here since this was
imported.
2004-07-30 21:42:39 +00:00
njl
c47f6414a1 Mark as WARNS 6 now that sign cleanups are done. 2004-07-30 00:02:42 +00:00
njl
f9081bbd79 Fix printing of stats by printing an unsigned value as unsigned. ANSIfy
function prototypes.  Remove unnecessary returns.

Submitted by:	David Hill <davidh -at- wmis.net>
2004-07-30 00:02:20 +00:00
glebius
0a36b82adc Add configuration option "set pppoe [standard|3Com]" which allows
to configure mode for ng_pppoe(4) node under control.

Reviewed by:	brian
Approved by:	julian (mentor)
2004-07-29 05:59:43 +00:00
green
f63839abf8 Disable memory locking that could keep watchdogd from deadlocking itself
if the swap subsystem failed.

Requested by:	phk
2004-07-28 22:13:04 +00:00
stefanf
7cdc27d942 Use the length modifier 'll' instead of 'q' to print long longs. 2004-07-28 16:03:13 +00:00
kan
c8e1a3d9de Avoid casts as lvalues. 2004-07-28 07:20:04 +00:00
kan
bc35f3d1a7 Downgrade WARNS level to more tolerable value. Attempt to fix
casts as lvalue usage whenever possible.
2004-07-28 07:19:15 +00:00
kan
cd51b9e3ac Move __iniline function definition before its first usage in the file. 2004-07-28 07:17:00 +00:00
kan
4bd37031bb Temporarily disable kernbb utility. It has to learn about new gcov data
format first.
2004-07-28 07:13:55 +00:00
emax
858cb94e23 Add workaround for brain damaged cell phones
PR:		bin/67906
2004-07-27 22:40:42 +00:00
roberto
88dbff160e mlockall(2) was introduced during the 5.0-CURRENT lifetime. 2004-07-25 22:02:30 +00:00
green
296061987a Now that mlockall(2) is unbroken, use it to keep watchdogd(8) permanently
out of swap.
2004-07-23 15:24:57 +00:00
roberto
e80d2e4a5e Include support for NOCRYPT & NO_OPENSSL world.
It does survive « make release ».

Uses an upcoming patch from the vendor branch (ntp-stable) of ntp-keygen.

Submitted by:	Marius Strobl <marius@alchemy.franken.de>
2004-07-22 09:10:52 +00:00
roberto
6b42bd1f49 Correct another cut/paste mistake. Sorry folks.
Pointy hat to:	me
Submitted by:	Marius Strobl <marius@alchemy.franken.de>
2004-07-22 08:38:14 +00:00
roberto
61fb359eef Remove arlib (libares.a) from the build. It is not IPv6 compatible, not
really tested and probably not 64 bits-safe.

Discussed with:	Harlann Stenn <www.ntp.org>
2004-07-22 08:35:41 +00:00
roberto
49a4f2471e Correct a cut/paste error. 2004-07-22 08:32:17 +00:00
roberto
393a8563ce Allow ntpd to be compiled w/o readline when NO_GNU is defined. Part of a
larger patchset to get a GNU-free world.

Patch rewritten to cope with the 4.2.0 changes.

Submitted by:	des
2004-07-22 08:14:37 +00:00
imp
697fd69b85 Add support for ignoring locking failures. This is only enabled when
you've specified a directory.  It is intended to be used in building
custom releases over NFS where locking may be unreliable at best and
there is no contention that the locking is designed to arbitrate.
Other uses of this flag are discouraged.  Document same in usage and
man page (including the warning about unwise).

Sponsored by: Timing Solutions
2004-07-21 17:38:04 +00:00
imp
21933e4a30 Two style related changes:
(1) use strlcpy instead of strncpy since the use here of the latter
    was incorrect.
(2) Move 'N' case into proper sorted order (sorted the same way that
    ls sorts its args).
2004-07-21 17:02:36 +00:00
phk
3e92395d77 Remove reference to fla driver. 2004-07-20 16:25:20 +00:00
roberto
3fdc9482f1 Add missing Makefile from previous commit. 2004-07-20 15:45:04 +00:00
roberto
eac3f226bb Update our ntpd to the long awaited 4.2.0 version.
This bring us several things:
- updated drivers
- IPv6 support at last
- ntp-genkeys is replaced by ntp-keygen
- ntptrace is now a script (courtesy of John Hay)
- lots of renamed files from .htm to .html (while I prefer .html, I
  find the change a bit gratuitous)
- still no manpages :(

Please test and report.

Commit very much helped by: GNU arch (http://gnuarch.org/)
2004-07-20 15:44:32 +00:00
brian
c33b761408 Report the number of bytes not written when complaining about failed writes 2004-07-20 01:42:30 +00:00
obrien
a1cdb8de5c Priner control devices are now lpt*.ctl. 2004-07-18 02:22:47 +00:00
brian
e2c3152e77 Support a ``set rad_alive N'' command to enable periodic RADIUS accounting
information being sent to the RADIUS server.

Logging of RADIUS accounting information moves to a ``set log [+-]radius''
level, along with the RADIUS alive info, and the version number is bumped
to 3.2 to reflect this.

Mostly submitted by:	alx@sm.ukrtel.net (back in January)
MFC after:		3 weeks
2004-07-17 01:07:53 +00:00
mr
0dd4779874 After talking to Colin,
apply the patch of bin/61718 (which should include/elimatate kern/61122 also).
It seems to fix a few annoying bugs.

PR:		bin/61718, kern/61122
Submitted by:	bg@sics.se ohartman@mail.physik.uni-mainz.de
2004-07-16 12:50:10 +00:00
keramida
f13c17093c Refer to the sysutils/cdrtools port now that the sysutils/mkisofs port
has been merged into the former.

PR:		docs/69087
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu>
MFC after:	3 days
2004-07-16 08:53:25 +00:00
mbr
4cb8610989 Reenable nullfs for local links. The change from 'struct vfsconf'
to 'struct xvfsconf' broke auto configuration. Patches have been
submitted to the vendor.
2004-07-15 13:24:44 +00:00
brian
47bda6be1f Fix ``set ifaddr''. The code was actually using an uninitialised variable,
but conveniently, because ncpaddr.ncpaddr_family != AF_INET, the call to
ncpaddr_getip4addr() became a no-op leaving the local address as it was
(defaulting to whatever my hostname resolves to).

PR:		62050
Submitted by:	Peter Jeremy <peter.jeremy@alcatel.com.au>
MFC after:	3 days
2004-07-15 09:42:16 +00:00
roam
79ab1105d5 Fix 'camcontrol rescan' syntax and use the proper indentation for
the FILES list.

PR:		66827
Submitted by:	Michel Lavondes <fox@vader.aacc.cc.md.us>
MFC after:	2 weeks
2004-07-15 07:34:14 +00:00
brian
d403dd49ee Remove a stray backslash 2004-07-14 13:31:17 +00:00
stefanf
e0b2a5b339 Fix a few cases that relied on 'implicit int' (constraint violation in C99). 2004-07-11 17:37:33 +00:00
ru
6b3ad34607 Markup nit picking.
Reviewed by:	joerg
2004-07-09 06:16:43 +00:00
emax
3c9dfc9919 Make bluetooth compile on all platforms
Reviewed by:	imp, ru
2004-07-07 22:48:30 +00:00
phk
8fb0a7ed97 PC98 got it right here: sectors can be non-512 byte sized. 2004-07-07 20:28:31 +00:00
ru
9f45c1d92e mdoc(7) fixes. 2004-07-07 19:57:16 +00:00
mbr
7d48e5ab65 Generate fresh aux_conf.h. 2004-07-06 14:06:58 +00:00
mbr
badb28509a Check if dirmask' is a member of pcfs_args_t'.
A diff to the autoconf aux-files has been submitted to
the amd people.

PR:		57401
Submitted by:	Andre Albsmeier <andre.albsmeier@siemens.com>
2004-07-06 13:44:14 +00:00
mbr
a77e1f23b2 Unbreak pcfs support
PR:	68679
2004-07-06 13:37:18 +00:00
mbr
e8d276ef5f Update OS-dependent variables. 2004-07-06 13:24:59 +00:00
ru
6651f20e0d Sort SEE ALSO references (in dictionary order, ignoring case). 2004-07-04 20:55:50 +00:00
cperciva
edcbaa3819 Fix dofsync() declaration.
Pointed out by:	dwmalone
2004-07-04 19:52:48 +00:00
cperciva
7662db4aa1 Where syslogd would have fsync()ed a file in the past, instead set a flag
FFLAG_NEEDSYNC and fsync the file when select() next returns zero.  This
dramatically speeds up the process of logging large amounts of data, while
leaving the essential semantics (that data can be expected to be on disk
if we crash) unchanged.

In my tests, this speeds up the rc phase of booting by 18-20%. [1]

YES PLEASE! by:	phk [1]
2004-07-04 19:13:58 +00:00
sobomax
bee9cba70c Nothing says that /var/log can't be not a directory but a symbolic link
to a directory. Therefore, use stat(2) instead of lstat(2) to check if
/var/log exists.

MFC after:	7 days
2004-07-04 17:24:12 +00:00
ru
ac606e7e88 Eliminated double whitespace. 2004-07-03 18:35:53 +00:00
stefanf
9162daacbf Use C99 conforming designated initialisers rather than the obsolete GCC syntax. 2004-07-03 16:52:57 +00:00
ru
01548ace15 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
ru
6294018a20 Mechanically kill hard sentence breaks. 2004-07-02 23:13:00 +00:00
ru
c9514667b2 Fixed SEE ALSO references. 2004-07-02 22:50:25 +00:00
ru
4b39413aeb Removed trailing whitespace. 2004-07-02 19:07:33 +00:00
ru
4498f82b4e Fixed spelling of the document date. 2004-07-02 18:00:03 +00:00
brooks
e9852a0e0b Static device counts will not be supported in 6.x so place the generated
macros (N<driver>) under BURN_BRIDGES.

Discussed with:	peter, imp, scottl, ...
2004-06-30 21:00:47 +00:00
imp
a8d39b6fa7 Fix to not use 255, but instead use APM_UNKNOWN.
Compare things correctly against -1 or 0
Don't print any capabilities if unknown is returned from the kernel.

Reviewed/Submitted by: njl, Liam Foy
2004-06-30 21:00:07 +00:00
mux
bc73e6133f Remove a duplicated printf().
Submitted by:	Niki Denev <nike_d@cytexbg.com>
2004-06-30 19:56:23 +00:00
brian
91f649862b Re-implement LQM, this time according to the rfc.
PR:		11293
MFC after:	4 weeks
2004-06-30 12:24:56 +00:00
njl
df4b7b1ecb Also print out the standard header for FADT since it has one. 2004-06-30 03:23:51 +00:00
eik
3883d10711 - pkg_add spawns itself as argv[0] when installing dependent packages, to
enable the use as a port on older systems

- use absolute paths in all calls to external programs, to account for strange
  PATH settings

- use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on
  FreeBSD 4.x as a port.

- conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the
  pkg_install tools can be kept in sync on 4.x and 5.x

- Bump PKG_INSTALL_VERSION

Reviewed by:	portmgr (bento run)
MFC after:	4 weeks
2004-06-29 19:06:42 +00:00
eik
7a7a88ae41 - pkg_info: flag -r: (show packages this packages depends on (documentation change))
- pkg_info: new flag -j (show the requirements script)

- pkg_info: fix verbose output when used on packages

- better handling of corrupt entries in /var/db/pkg

- differ between corrupt entires and packages not installed

- various small fixes

PR:		56989, 57016, 57029, 26468
2004-06-29 18:59:19 +00:00
eik
9dccb05c73 - pkg_create: new flag -S (clean room installation)
- pkg_create: checksum meta files too

PR:		66032
2004-06-29 18:56:59 +00:00
eik
7923356ae6 - match package version numbers with relational operators
- use glob patterns when matching packages by origin

- csh-style {...} choices in glob matching

- pkg_info: new flag -E (list matching package names only)

- pkg_version: new flag -T (test if a given name matches a pattern)

- new flag -X (interpret pattern as an extended regular expression)

PR:		56961
2004-06-29 18:54:47 +00:00
eik
649576111e - complete rewrite of the version number parsing code, restoring compatibiliy of 5.x with 4.x and portupgrade
- parse version numbers of ports containing an underscore followed by a number correctly

- handle special strings pl, alpha, beta, pre and rc

PR:		56961
2004-06-29 18:52:13 +00:00
brian
d9cb5d5260 Mention that ``set mtu max'' is necessary for PPPoE.
PR:		32040
MFC after:	2 weeks
2004-06-29 07:48:43 +00:00
brian
664f6c9a4c Reduce MAXMSS limit by 12 bytes to allow for rfc 1323.
PR:		32717
Submitted by:	MORI Kouji <moriko@hh.iij4u.or.jp>
MFC after:	2 weeks
2004-06-29 07:40:38 +00:00
emax
f56f3f1724 Fix cut-n-paste bugs in hccontrol(8). Its very strange that no one noticed
them earlier. Thanks to Mike Crosland (mcrosland at xs4all.nl) for pointing
them out.
2004-06-28 00:58:53 +00:00
pjd
bf8b1fec3a Prepare jail(8) utility for new functionality which will limit
seeing status of mounted file system for jailed processes.
Pass full path of jail's root directory to the kernel. mount(8) utility is
doing the same thing already.
2004-06-27 10:10:16 +00:00
brian
a9f3927ec8 If HISMACADDR is set in the environment (by pppoed), pass the value to
the RADIUS server as RAD_CALLING_STATION_ID.

PR:		44310
Submitted by:	Gleb Smirnoff <glebius@cell.sick.ru>
MFC after:	2 weeks
2004-06-26 01:02:31 +00:00
imp
d1f0e75537 Remove dependency on dev/usb/usbdevs.h, in preparation for its
disappearing from the tree.  We already were splitting the baby (using
the symbol for the vendor BROADCOM, but not for the device).  Use
#defines for both.
2004-06-25 23:14:06 +00:00
obrien
8abf9484aa Adjust the system endian and a.out headers to be more MI and cross-building
friendly.  Use the systems headers rather than local versions.

Reviewed by:	ru
2004-06-22 17:05:39 +00:00
phk
7ec354987e libcompat doesn't seem to be needed any more. 2004-06-21 16:10:00 +00:00
phk
70e8d575c7 libcompat doesn't seem to be necessary any more. 2004-06-21 16:09:29 +00:00
stefanf
af61e62dc9 Merge changes from the tzcode2004a import. 2004-06-20 21:41:11 +00:00
gad
5c21bd3372 Fix the format-string in a call to err(). It was causing a warning if
compiled on 4.x-stable.
2004-06-20 17:26:47 +00:00
stefanf
72e17f59cb This commit was generated by cvs2svn to compensate for changes in r130780,
which included commits to RCS files with non-trunk default branches.
2004-06-20 12:04:00 +00:00
stefanf
57534b2aa5 This commit was generated by cvs2svn to compensate for changes in r130777,
which included commits to RCS files with non-trunk default branches.
2004-06-20 11:52:51 +00:00
stefanf
ac44a75e3d Import the rest of tzcode2004a, the bits needed for the timezone compiler.
Obtained from:	ftp://elsie.nci.nih.gov/pub/tzcode2004a.tar.gz
2004-06-20 11:52:51 +00:00
gad
04ef458020 Fix the check for a "duplicate filename to compress", so that we're checking
the *filename* and not the pid_file(!).   Stupid brain-fault on my part.
This could cause a segfault under -neworder if newsyslog had to rotate
multiple files, and later ones had specifed the 'N' flag.

Bug first reported by:	le
MFC after:	3 days
2004-06-19 03:28:42 +00:00
robert
0f9ac8040a Use strlcpy(3) to replace the idiomatic
strncpy(d, s, l);
  d[l - 1] = '\0';

statements.
2004-06-17 14:07:16 +00:00
phk
c675add0de Document boot0sio and note that it requires modem handshake to work. 2004-06-17 12:01:25 +00:00
robert
2211cbc1f6 Fix a bug which occurred when the home directory given by the
-d option was equal to the one already saved and which caused
the pw utility to avoid updating values passed by other options
processed before the -d option in the code path.

Spotted by: Richard Caley <rjc@interactive.co.uk>
2004-06-17 10:29:12 +00:00
mux
0fb9c0032d Tabs were accidentally lost in the last commit.
Submitted by:	Liam J. Foy <liamfoy@sepulcrum.org>
2004-06-16 19:14:21 +00:00
ru
aa52a5a900 Assorted markup, spelling, and grammar fixes. 2004-06-16 08:33:57 +00:00
bms
77e7007644 mdoc(7) police
Submitted by:	ru
2004-06-16 07:03:54 +00:00
bms
bb7d871dd0 Document the behaviour of the net.link.ether.inet.proxyall sysctl MIB
variable.

PR:		docs/21826
Reviewed by:	ru
Requested by:	Bernd Luevelsmeyer
2004-06-16 06:16:29 +00:00
mux
2bf674c590 Factor out some duplicated code and fix some style(9) issues.
Submitted by:	Liam J. Foy <liamfoy@sepulcrum.org>
2004-06-14 16:53:20 +00:00
phk
8f47be3b0a Improve spec to spec comparison output. 2004-06-14 07:28:22 +00:00
phk
64fb1c58d5 Document -d flag 2004-06-14 07:27:27 +00:00
obrien
5b91f51037 Language tweak in explaining the mouse wheel's functionality. 2004-06-14 00:22:10 +00:00
dwmalone
94f9661074 Sync up with KAME. The main change is to try to avoid exposing
exposing information about the endianness and alighment requirements
in the packets sent by traceroute6.

Obtained from:	KAME
2004-06-13 18:38:46 +00:00
ru
dc54ee200d Assorted markup, grammar, and spelling fixes. 2004-06-13 18:03:44 +00:00
dfr
f670e3d9a8 Be smarter about printing non-ethernet link-level addresses. 2004-06-13 10:57:10 +00:00
gad
a1214ecb7b Switch to using the "neworder" for rotating log files, by default. The
main advantage of this is that daemon's are only signalled once per run,
instead of once for each file that is rotated.

MFC after:	2 weeks
2004-06-12 19:53:08 +00:00
dwmalone
f3325cae78 Add some more details about what traceroute6 does.
Submitted by:	Orla McGann <orly@redbrick.dcu.ie>
Obtained from:	KAME
MFC after:	2 weeks
2004-06-09 12:45:51 +00:00
phk
8641ff9ae2 Update kvm mode to match kernel changes. 2004-06-09 12:20:44 +00:00
csjp
d436b75c46 Add note that rmuser will clean up any IPC mechanisms owned by the user.
Approved by:	bmilekic (mentor)
2004-06-08 14:52:55 +00:00
stefanf
d7af95e868 Avoid assignments to cast expressions.
Reviewed by:	md5
Approved by:	das (mentor)
2004-06-08 13:08:19 +00:00
stefanf
95e7f6997b - Don't use argv[i] when i is uninitialised.
- Cast isdigit's argument to unsigned char.
- Remove the now unused variable i.

Approved by:	das (mentor)
2004-06-08 12:11:19 +00:00
gad
db4692c790 Drop the include for <stdint.h>, it was only needed when this was
using __DECONST() for something, and that reference has been removed.

Noticed by:	Helge Oldach
MFC after:	13 days
2004-06-07 21:53:27 +00:00
gad
217bb961db Add an "oldorder" option, so that when the default changes to "neworder",
people have a way to drop back to the previous logic.

MFC after:	13 days
2004-06-07 21:18:09 +00:00
gad
717539c680 In "neworder" processing, reduce the delay between signals to separate
processes, and balance that by adding a 10-second delay after all the
processes have been signaled.  Also improvement a few messages printed
with `-n' or `-v' processing (mostly signal-related messages).

MFC after:	13 days
2004-06-07 21:09:58 +00:00
gad
f0a68c5d24 Major re-ordering of the steps that newsyslog will use when processing
files to rotate.  The new order will first rotate all files that need
to be rotated, and then send a single signal to each process which
needs to be signaled, and finally it will compress all the files which
were rotated.

This means daemons will be signaled once per run of newsyslog, instead
of once per file rotated.  Also, files will be compressed in order of
file-size (smallest to largest).  Also, it waits for each file to be
completely compressed before starting the next one (effectively as if
the 'w' flag is specified for all entries in newsyslog.conf).  This
avoids the situation of having 10 gzip's going at the same time (each
with a log.0 and a log.0.gz file active), and it also means that file
attributes can be reliably set on files after they are compressed.

NOTE: This commit does define NEWORDER (which you could get rid of if
you really don't trust this), but it does not flip the "-D neworder"
switch.  So, at the moment none of these changes happen unless you
request them (perhaps by adding '<debug> neworder' in newsyslog.conf).

PR:		bin/25070 inspired some parts of this
Submitted by:	parts from bin/25070 done by Helge Oldach
MFC after:	14 days
2004-06-07 02:10:10 +00:00
gad
3e7bce2995 A variety of minor changes. Allow users to set a debugging option via
the newsyslog.conf file.  Rename one size-related variable, and move
another one from the stack into conf_entry.  Add a routine to change
file-attributes (chown, chmod, chflags), instead of having several
places doing the same sequence of system-calls.  A few cosmetic/style
changes.

These should not effect any users.  Most of these probably look
pointless, but they are the "insignificant parts" of a much larger
update that I'll be committing soon.  Doing these as a separate update
should make that update easier to read.

MFC after:	14 days
2004-06-07 01:21:30 +00:00
mtm
1b8e607cd5 Accept full path names in addition to base names for shells.
Make explicit in the documentation that valid shells need to be
supplied only if the -S option is not given.
2004-06-06 17:55:55 +00:00
ru
ee4a7e8b45 Tidy up markup. 2004-06-06 17:49:57 +00:00
cognet
b8f049c42b Tell crunchide to deal with arm elf binaries as well.
Rescue can now be built for arm.
2004-06-06 16:01:36 +00:00
ru
fbb5447570 Markup nits. 2004-06-05 20:27:10 +00:00
ru
3a32f0d073 Reapply traditionally lost fixes. 2004-06-05 20:22:31 +00:00
ru
e42a7fd928 Reapply traditionally lost fixes, fixed some more.
This manpage needs an English clenup.
2004-06-05 20:22:15 +00:00
ru
4ef5873a10 Markup and grammar nits. 2004-06-05 20:21:58 +00:00
ru
7bb316650e Removed redundant mdoc(7) macro calls. 2004-06-05 20:21:43 +00:00
ru
943df74da8 Markup and punctuation nits. 2004-06-05 20:21:17 +00:00
ru
c1a105b9fc Markup nits. 2004-06-05 20:20:34 +00:00
ru
db23e347eb Added forgotten -w to the usage(). 2004-06-04 19:29:28 +00:00
ru
cb3cae26ca Added forgotten -d to the usage(). 2004-06-04 19:29:09 +00:00
ru
99b8988bdc Added forgotten -w to the SYNOPSIS.
Trim whitespace at EOL.
2004-06-04 19:25:47 +00:00
ru
e98d4c3ef7 Fixed warnings (missing .Ed call).
Fixed grammar (missing punctuation).
Fixed screwup with the SEE ALSO section.
2004-06-04 19:24:57 +00:00
ru
f0a52f89df Reapply some local fixes that got lost with another NetBSD merge,
fix some more.
2004-06-04 19:24:35 +00:00
ru
99db664fda Trim whitespace at EOL. 2004-06-04 19:24:21 +00:00
ru
81c712fe0a Nit. 2004-06-04 19:23:39 +00:00
ru
3d43f7de86 Markup nits. 2004-06-04 19:23:12 +00:00
ru
44628bff23 Spelling nit. 2004-06-04 19:22:20 +00:00
ru
c78a480d1f Reapply some lost fixes, fix some more. 2004-06-04 19:22:04 +00:00
ru
d539cb328c Fixed a typo. 2004-06-04 19:21:26 +00:00
ru
3cf80505ca Expand contraction. 2004-06-04 19:21:06 +00:00
ru
5e3e611342 Markup nit: make the list of options look better. 2004-06-04 19:20:43 +00:00
gad
2769786f25 Style-istic fix to a number of #define's that were not followed by a tab...
MFC after:	16 days
2004-06-03 23:44:38 +00:00
gad
848f68aacc Add a 'D' flag that can be specified on entries in newsyslog.conf.
If specified, the matching log files will have the NODUMP flag set
on them after they are created.

Submitted by:	Sean Eric Fagan
MFC after:	16 days
2004-06-03 23:41:49 +00:00
gad
2837207f16 Change standard processing to use the newer createlog() routine
that had been written some months ago for other processing.  This
should get rid of a few subtle situations where an existing log
file would not exist (for a short time) while it is being rotated.

MFC after:	16 days
2004-06-03 22:26:16 +00:00
phk
86b461c079 Give daemon(8) the ability to create a pid-file. Since the target program
does not know anything about the pid-file and we don't keep a babysitting
process for the task, the pid-file will linger.

Submitted by:	mi
PR:	56398
2004-06-02 06:48:13 +00:00
gad
4f0e537c28 Improved versions of the is*ch() and tolowerch() macros that I like to use. 2004-06-02 00:14:28 +00:00
gad
d731f360fa When rotating some "blah.log" file, make sure that a chmod and
(if requested) a chown is done on the "blah.log.0" file.

PR:		bin/67137
Submitted by:	jeh
MFC after:	10 days
2004-06-02 00:02:12 +00:00
csjp
a4a53235be Sentences should not start with conjunctions. Change "Because"
to "Since".

Pointed out by:	Ceri
2004-06-01 20:32:44 +00:00
ru
63d9df2be5 Fixed manpage's synopsis, and synchronized it with the program's usage(). 2004-06-01 09:34:04 +00:00
fjoe
ac4a1eaf40 Finish repo move arlconfig -> arlcontrol. 2004-06-01 07:38:11 +00:00
ache
d6fcad3473 Add latinamerican.iso.acc 2004-06-01 06:12:01 +00:00
ache
3076c8e30e lat-amer -> latinamerican keymap
PR:             67365
2004-06-01 04:02:24 +00:00
gshapiro
76a17fc316 Honor NOINET6 and disable IPv6 support in libmilter and sendmail if it
is set.

MFC after:	4 days
2004-06-01 01:29:42 +00:00
csjp
2a8b55a029 Add a warning note to security.jail.allow_raw_sockets
about the risks of enabling raw sockets in prisons.

Because raw sockets can be used to configure and interact
with various network subsystems, extra caution should be
used where privileged access to jails is given out to
untrusted parties. As such, by default this option is disabled.

A few others and I are currently auditing the kernel
source code to ensure that the use of raw sockets by
privledged prison users is safe.

Approved by:	bmilekic (mentor)
2004-06-01 00:25:44 +00:00
dwmalone
9236299be5 Also terminate program names if we hit a '/' - this is to be slightly
more friendly to postfix log messages.

PR:		50912
Submitted by:	Stanislav Lapshansky <slapsh@slapsh.pp.ru>
2004-05-30 10:34:58 +00:00
dwmalone
21f82f995b A log file name may now be prefixed by a '-' if it should not be
explicitly fsynced after kernel messages are logged. This option
should be syntax compatible with a similar option in Linux syslogd.

I've made some small changes to Pekka's patch, hoepfully I haven't
goofed anything.

PR:		66790
Submitted by:	Pekka Savola <pekkas@netcore.fi>
Obtained from:	Martin Schulze's syslogd
MFC after:	1 month
2004-05-30 10:04:03 +00:00
stefanf
dc3d5635fc Include <string.h> rather than <strings.h> for string function prototypes.
Approved by:	das (mentor)
2004-05-30 08:59:10 +00:00