dragonfly.git
14 years agoCorrect a mistake in the last commit that caused usage() to seg-fault,
Matthew Dillon [Wed, 25 Aug 2004 16:07:18 +0000 (16:07 +0000)]
Correct a mistake in the last commit that caused usage() to seg-fault,
and document -j in the manual page options summary.

Submitted-by: Maxim Konovalov
14 years agoUpdate installer packages to 1.1.1, fixing a couple of minor bugs:
Chris Pressey [Wed, 25 Aug 2004 03:12:14 +0000 (03:12 +0000)]
Update installer packages to 1.1.1, fixing a couple of minor bugs:
ability to install bootblocks on an unformatted disk drive, and
ability to install /usr as a plain directory in the / partition.

14 years agoOutput an error message if the open fails.
Matthew Dillon [Wed, 25 Aug 2004 01:56:49 +0000 (01:56 +0000)]
Output an error message if the open fails.

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
14 years agoCleanup various type-o's in comments.
Matthew Dillon [Wed, 25 Aug 2004 01:53:39 +0000 (01:53 +0000)]
Cleanup various type-o's in comments.

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
14 years agoMinor cleanups. Document -j in usage.
Matthew Dillon [Wed, 25 Aug 2004 01:43:43 +0000 (01:43 +0000)]
Minor cleanups.  Document -j in usage.

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
14 years agoCheck for a mkstemps() failure, generate a proper warning if the fopen()
Matthew Dillon [Wed, 25 Aug 2004 01:42:26 +0000 (01:42 +0000)]
Check for a mkstemps() failure, generate a proper warning if the fopen()
fails.

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
14 years agoDocument the unorthordox use of getopt().
Matthew Dillon [Wed, 25 Aug 2004 01:40:23 +0000 (01:40 +0000)]
Document the unorthordox use of getopt().

14 years agoMinor cleanups. Also, change various exit(10) codes to exit(1).
Matthew Dillon [Wed, 25 Aug 2004 01:38:50 +0000 (01:38 +0000)]
Minor cleanups.  Also, change various exit(10) codes to exit(1).

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
14 years agoMinor cleanups.
Matthew Dillon [Wed, 25 Aug 2004 01:23:15 +0000 (01:23 +0000)]
Minor cleanups.

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
14 years agoMinor cleanups.
Matthew Dillon [Wed, 25 Aug 2004 01:15:38 +0000 (01:15 +0000)]
Minor cleanups.

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
14 years agoMinor cleanups, no operational changes other then to add an error message if
Matthew Dillon [Wed, 25 Aug 2004 01:05:29 +0000 (01:05 +0000)]
Minor cleanups, no operational changes other then to add an error message if
fdopen() fails.

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
14 years agodoingdirectory is really a boolean, use an int rather then ino_t and cast
Matthew Dillon [Wed, 25 Aug 2004 00:05:11 +0000 (00:05 +0000)]
doingdirectory is really a boolean, use an int rather then ino_t and cast
it properly for the one case where it needs to be cast.  Document the special
case.  Cast -1 to (daddr_t) when checking for daddr_t special cases.

14 years agoM_EXT_CLUSTER was not being properly inherited in m_copym(), m_copypacket(),
Matthew Dillon [Tue, 24 Aug 2004 21:55:47 +0000 (21:55 +0000)]
M_EXT_CLUSTER was not being properly inherited in m_copym(), m_copypacket(),
and m_split(), resulting in potentially unnecessary extra copying.

14 years agoFix a SFBUF memory leak in sendfile(). We were not properly tracking
Matthew Dillon [Tue, 24 Aug 2004 21:53:41 +0000 (21:53 +0000)]
Fix a SFBUF memory leak in sendfile().  We were not properly tracking
references which would lead to SFBUFs not getting freed when two or more
sendfile()'s are operating on the same file at the same time (e.g. parallel
ftp downloads of the same file).

Get rid of the sf_buf->aux1 and aux2 hacks for sendfile.

Add a sysctl to allow the number of free SFBUFs to be monitored.

14 years agoThe VFS work has made vnode_if.awk obsolete.
Matthew Dillon [Tue, 24 Aug 2004 21:16:14 +0000 (21:16 +0000)]
The VFS work has made vnode_if.awk obsolete.

14 years agoHook pkill up to the build.
Chris Pressey [Tue, 24 Aug 2004 20:52:45 +0000 (20:52 +0000)]
Hook pkill up to the build.

14 years agoClearly I need to wakeup all the way before starting to make changes.
David Rhodus [Tue, 24 Aug 2004 16:32:11 +0000 (16:32 +0000)]
Clearly I need to wakeup all the way before starting to make changes.
Fix missing closing comment.

Noted by Sven Willenberger.

14 years agoSpelling.
David Rhodus [Tue, 24 Aug 2004 16:08:35 +0000 (16:08 +0000)]
Spelling.

Noted by eirikn.

14 years agoAdd a few notes.
David Rhodus [Tue, 24 Aug 2004 14:01:57 +0000 (14:01 +0000)]
Add a few notes.

14 years agoMinor cleanups. Make a type usage correction. Remove unneeded cast when
David Rhodus [Tue, 24 Aug 2004 13:52:59 +0000 (13:52 +0000)]
Minor cleanups. Make a type usage correction. Remove unneeded cast when
using struct bp.

14 years agoCheck error return value when creating the IPC service.
David Rhodus [Tue, 24 Aug 2004 13:45:54 +0000 (13:45 +0000)]
Check error return value when creating the IPC service.

14 years agoFix compilation of !PCI config.
Joerg Sonnenberger [Tue, 24 Aug 2004 08:15:22 +0000 (08:15 +0000)]
Fix compilation of !PCI config.

14 years agoUse sys/types.h here, since we don't want to restrict ourselves to the safe
Joerg Sonnenberger [Tue, 24 Aug 2004 06:10:57 +0000 (06:10 +0000)]
Use sys/types.h here, since we don't want to restrict ourselves to the safe
types (__) here.

14 years agoAdd missing extension return value for __byte_swap32_var() in the case
Matthew Dillon [Mon, 23 Aug 2004 21:16:38 +0000 (21:16 +0000)]
Add missing extension return value for __byte_swap32_var() in the case
where I386_CPU is not defined.  This missing value was causing a buildkernel
compile-time error.

14 years agoRemove pre-FreeBSD4 compability code.
Joerg Sonnenberger [Mon, 23 Aug 2004 16:13:03 +0000 (16:13 +0000)]
Remove pre-FreeBSD4 compability code.

14 years agoImprove the endian support for DragonFly by providing functions to convert
Joerg Sonnenberger [Mon, 23 Aug 2004 16:03:44 +0000 (16:03 +0000)]
Improve the endian support for DragonFly by providing functions to convert
16/32/64 bit variables and parts of byte streams between host order and
big / little endian.

Reduce the namespace pollution for normal usage, e.g. of sys/types.h.
The duplication of ntohl and friends in arpa/inet.h and sys/param.h comes
from byteorder(3) showing sys/param.h as header file and SUS requiring
arpa/inet.h to provide this functions.

Remove local hacks in acpidump and usb_port.h.

The prototype of ntohl and friends is in sync with SUS, warnings e.g. for
implicit sign casts or use of int/long will be handled separately.

Written-by: Hitten Pandya and Joerg Sonnenberger
Inspired-by: FreeBSD

14 years agoRemove ASR_MEASURE_PERFORMANCE, it doesn't work anyway.
Joerg Sonnenberger [Mon, 23 Aug 2004 15:11:44 +0000 (15:11 +0000)]
Remove ASR_MEASURE_PERFORMANCE, it doesn't work anyway.

Inspired-by: FreeBSD
14 years agorev 1.35:
Joerg Sonnenberger [Mon, 23 Aug 2004 09:39:29 +0000 (09:39 +0000)]
rev 1.35:
  Pass a correct lowaddr to bus_dma_tag_create(), lnc(4) cards can only
  deal with 24-bit addresses.  While the two other attachments, namely
  isa and cbus, do it properly, the PCI attachment was passing
  BUS_SPACE_MAXADDR instead of BUS_SPACE_MAXADDR_24BIT.  This bug
  became apparent with the new contigmalloc() code.

Obtained-from: FreeBSD

14 years agosys/types.h ==> sys/param.h for endian macros
Joerg Sonnenberger [Fri, 20 Aug 2004 01:21:36 +0000 (01:21 +0000)]
sys/types.h ==> sys/param.h for endian macros

14 years ago- include sys/param.h for endian macros
Joerg Sonnenberger [Fri, 20 Aug 2004 00:47:37 +0000 (00:47 +0000)]
- include sys/param.h for endian macros

14 years agosys/types.h ==> sys/param.h for endian macros
Joerg Sonnenberger [Fri, 20 Aug 2004 00:43:00 +0000 (00:43 +0000)]
sys/types.h ==> sys/param.h for endian macros

14 years ago- include sys/param.h for endian macros
Joerg Sonnenberger [Fri, 20 Aug 2004 00:08:17 +0000 (00:08 +0000)]
- include sys/param.h for endian macros

14 years ago- include sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:57:46 +0000 (23:57 +0000)]
- include sys/param.h for endian macros

14 years agoAdd the standard DragonFly copyright with attribution to the author (which is
Matthew Dillon [Thu, 19 Aug 2004 23:57:02 +0000 (23:57 +0000)]
Add the standard DragonFly copyright with attribution to the author (which is
me).

Missing-copyright-noticed-by: Joerg Sonnenberger <joerg@britannica.bec.de>
14 years agoInclude language describing the prefered method for recognizing authors as
Matthew Dillon [Thu, 19 Aug 2004 23:53:39 +0000 (23:53 +0000)]
Include language describing the prefered method for recognizing authors as
part of the copyright and license section.  Split major elements of the
copyright file with '--' to make it more readable.

14 years ago- include sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:48:16 +0000 (23:48 +0000)]
- include sys/param.h for endian macros

14 years ago- include sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:41:07 +0000 (23:41 +0000)]
- include sys/param.h for endian macros

14 years ago- include sys/param.h for ntohl
Joerg Sonnenberger [Thu, 19 Aug 2004 23:40:15 +0000 (23:40 +0000)]
- include sys/param.h for ntohl
- include string.h for strcpy
- remove local define of PAGE_SIZE, use the version from machine/param.h

14 years agosys/types.h ==> sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:35:45 +0000 (23:35 +0000)]
sys/types.h ==> sys/param.h for endian macros

14 years agosys/types.h ==> sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:32:02 +0000 (23:32 +0000)]
sys/types.h ==> sys/param.h for endian macros

14 years agoFix prototype for signal handlers
Joerg Sonnenberger [Thu, 19 Aug 2004 23:26:12 +0000 (23:26 +0000)]
Fix prototype for signal handlers

14 years agoHide prototyp for loginit if ACULOG is false.
Joerg Sonnenberger [Thu, 19 Aug 2004 23:21:12 +0000 (23:21 +0000)]
Hide prototyp for loginit if ACULOG is false.

14 years agoFix spurious warning
Joerg Sonnenberger [Thu, 19 Aug 2004 23:12:10 +0000 (23:12 +0000)]
Fix spurious warning

14 years agosys/types.h ==> sys/param.h for ntohl
Joerg Sonnenberger [Thu, 19 Aug 2004 21:38:30 +0000 (21:38 +0000)]
sys/types.h ==> sys/param.h for ntohl

14 years ago- use WARNS?= 6 instead of a hard-wired list. -pedantic doesn't really work
Joerg Sonnenberger [Thu, 19 Aug 2004 21:36:46 +0000 (21:36 +0000)]
- use WARNS?= 6 instead of a hard-wired list. -pedantic doesn't really work
  anyway (no long long)
- use sys/param.h for nhtl in kgzcmp.c
- don't cast away const in kgzip.c, correct the usage of malloc'd space
  instead

14 years agoUse sys/param.h instead of sys/types.h for endian macros.
Joerg Sonnenberger [Thu, 19 Aug 2004 21:25:58 +0000 (21:25 +0000)]
Use sys/param.h instead of sys/types.h for endian macros.

This is in sync with the man page and results in a warning with the coming
endian patch.

14 years agoAdd implemenation of splay tree and red-black tree.
Joerg Sonnenberger [Thu, 19 Aug 2004 20:38:33 +0000 (20:38 +0000)]
Add implemenation of splay tree and red-black tree.

Obtained-from: NetBSD

14 years agoRemove the advertising clause where possible as per the directive from
Matthew Dillon [Thu, 19 Aug 2004 17:36:42 +0000 (17:36 +0000)]
Remove the advertising clause where possible as per the directive from
UC Berkeley (see /usr/src/COPYRIGHT) and with Ken Smith's permission
for mv.c.

>From:     Ken Smith <kensmith@cse.Buffalo.EDU>
>Subject:  mv.c license change
>To:       Matthew Dillon <dillon@apollo.backplane.com>
>Date:     Thu, 19 Aug 2004 13:30:28 -0400
>
>Yes, you have my permission to remove the advertising clause from
>the license agreement in /usr/src/bin/mv/mv.c.
>
>--
>                                                Ken Smith
>- From there to here, from here to      |       kensmith@cse.buffalo.edu
>  there, funny things are everywhere.   |
>                      - Theodore Geisel |

14 years agoPlug in missing brelse calls as to fix a bug in the FFS reload code.
David Rhodus [Thu, 19 Aug 2004 14:42:46 +0000 (14:42 +0000)]
Plug in missing brelse calls as to fix a bug in the FFS reload code.

14 years agoUpdate to reflect DragonFly reality.
Jeroen Ruigrok/asmodai [Thu, 19 Aug 2004 09:36:47 +0000 (09:36 +0000)]
Update to reflect DragonFly reality.

14 years agoAdd the long overdue ehci(4) manual page.
Jeroen Ruigrok/asmodai [Thu, 19 Aug 2004 09:34:55 +0000 (09:34 +0000)]
Add the long overdue ehci(4) manual page.

Obtained from: NetBSD's v1.11

14 years agoAdd the vop_ops for ntfs before obtaining the root vnode(s) rather then
Matthew Dillon [Thu, 19 Aug 2004 00:30:07 +0000 (00:30 +0000)]
Add the vop_ops for ntfs before obtaining the root vnode(s) rather then
after.

Reported-by: "David W. Chapman Jr." <dwcjr@inethouston.net>
14 years agoThe -D__FreeBSD__ must be -D__FreeBSD__=4 or sendmail will not be properly
Matthew Dillon [Wed, 18 Aug 2004 16:55:21 +0000 (16:55 +0000)]
The -D__FreeBSD__ must be -D__FreeBSD__=4 or sendmail will not be properly
configured to use features like setproctitle().

14 years agoMake the buildkernel and nativekernel targets completely wipe and regenerate
Matthew Dillon [Wed, 18 Aug 2004 16:37:15 +0000 (16:37 +0000)]
Make the buildkernel and nativekernel targets completely wipe and regenerate
the kernel object hierarchy.

Add a quickkernel target which does not wipe the object hieracrhy and which
skips the make depend step.  quickkernel can be run on kernels previously
built with buildkernel or nativekernel.

This brings the operation of our kernel building targets in-line with the
operation of our world building targets.

14 years agoProperly free the temporary sf_buf in uiomove_fromphys() if a copyin/copyout
Matthew Dillon [Wed, 18 Aug 2004 09:16:16 +0000 (09:16 +0000)]
Properly free the temporary sf_buf in uiomove_fromphys() if a copyin/copyout
fails.  Such failures commonly occur when pipes are broken by a ^C.

14 years ago[test format strings for cvs server config]
Matthew Dillon [Wed, 18 Aug 2004 09:10:32 +0000 (09:10 +0000)]
[test format strings for cvs server config]

14 years agotest
Matthew Dillon [Wed, 18 Aug 2004 09:07:06 +0000 (09:07 +0000)]
test

14 years ago*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 09:04:29 +0000 (09:04 +0000)]
*** empty log message ***

14 years ago*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 09:02:08 +0000 (09:02 +0000)]
*** empty log message ***

14 years agobleh
Matthew Dillon [Wed, 18 Aug 2004 08:56:53 +0000 (08:56 +0000)]
bleh

14 years ago*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 08:47:16 +0000 (08:47 +0000)]
*** empty log message ***

14 years ago*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 08:45:58 +0000 (08:45 +0000)]
*** empty log message ***

14 years agomore testing
Matthew Dillon [Wed, 18 Aug 2004 08:43:23 +0000 (08:43 +0000)]
more testing

14 years agoyet more testing
Matthew Dillon [Wed, 18 Aug 2004 08:31:50 +0000 (08:31 +0000)]
yet more testing

14 years agotest
Matthew Dillon [Wed, 18 Aug 2004 08:24:44 +0000 (08:24 +0000)]
test

14 years ago*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 08:00:38 +0000 (08:00 +0000)]
*** empty log message ***

14 years agofeh2
Matthew Dillon [Wed, 18 Aug 2004 07:24:30 +0000 (07:24 +0000)]
feh2

14 years agofeh
Matthew Dillon [Wed, 18 Aug 2004 07:23:54 +0000 (07:23 +0000)]
feh

14 years agosigh
Matthew Dillon [Wed, 18 Aug 2004 07:18:52 +0000 (07:18 +0000)]
sigh

14 years agomore testing 3
Matthew Dillon [Wed, 18 Aug 2004 07:00:25 +0000 (07:00 +0000)]
more testing 3

14 years agomore testing
Matthew Dillon [Wed, 18 Aug 2004 06:37:03 +0000 (06:37 +0000)]
more testing

14 years agoTest commits after machine upgrade.
Matthew Dillon [Wed, 18 Aug 2004 06:23:55 +0000 (06:23 +0000)]
Test commits after machine upgrade.

14 years agoAdd some robustness to the error-requeue code. FreeBSD-5's (new) ata driver
Matthew Dillon [Tue, 17 Aug 2004 20:59:39 +0000 (20:59 +0000)]
Add some robustness to the error-requeue code.  FreeBSD-5's (new) ata driver
had an issue with the donecount not being properly reset.  This issue is not
believed to occur with the old code but add sanity checks to be sure.

14 years agoProperly record and print 64 bit file sizes, do not truncate the file size
Matthew Dillon [Tue, 17 Aug 2004 20:34:38 +0000 (20:34 +0000)]
Properly record and print 64 bit file sizes, do not truncate the file size
to 32 bits.

14 years agoUpdate list of installer packages to match installer version 1.1.
Chris Pressey [Tue, 17 Aug 2004 19:23:52 +0000 (19:23 +0000)]
Update list of installer packages to match installer version 1.1.

14 years agoVFS messaging/interfacing work stage 2/99. This stage retools the vnode ops
Matthew Dillon [Tue, 17 Aug 2004 18:57:36 +0000 (18:57 +0000)]
VFS messaging/interfacing work stage 2/99.  This stage retools the vnode ops
vector dispatch, making the vop_ops a per-mount structure rather then a
per-filesystem structure.  Filesystem mount code, typically in blah_vfsops.c,
must now register various vop_ops pointers in the struct mount to compile
its VOP operations set.

This change will allow us to begin adding per-mount hooks to VFSes to support
things like kernel-level journaling, various forms of cache coherency
management, and so forth.

In addition, the vop_*() calls now require a struct vop_ops pointer as the
first argument instead of a vnode pointer (note: in this commit the VOP_*()
macros currently just pull the vop_ops pointer from the vnode in order to
call the vop_*() procedures).  This change is intended to allow us to divorce
ourselves from the requirement that a vnode pointer always be part of a VOP
call.  In particular, this will allow namespace based routines such as
remove(), mkdir(), stat(), and so forth to pass namecache pointers rather then
locked vnodes and is a very important precursor to the goal of using the
namecache for namespace locking.

14 years agoAdd an installer-fetchpkgs target and other related stuff to reduce the
Matthew Dillon [Tue, 17 Aug 2004 18:05:41 +0000 (18:05 +0000)]
Add an installer-fetchpkgs target and other related stuff to reduce the
work required to bring in the installer packages when building an
installer-enabled ISO.

Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>
14 years agoMake this WARNS?=6 clean by explicitly using __DECONST for the write
Joerg Sonnenberger [Mon, 16 Aug 2004 14:19:31 +0000 (14:19 +0000)]
Make this WARNS?=6 clean by explicitly using __DECONST for the write
buffers in iov.

14 years agoIn cmd(), after the vsnprintf is a strcat done to append a newline.
Joerg Sonnenberger [Mon, 16 Aug 2004 14:11:39 +0000 (14:11 +0000)]
In cmd(), after the vsnprintf is a strcat done to append a newline.
Keep that in mind for the size calculation.

14 years agoFix various buffer overflows.
Joerg Sonnenberger [Mon, 16 Aug 2004 14:07:34 +0000 (14:07 +0000)]
Fix various buffer overflows.

Noticed-by: Christer "Ober <christer.oberg@deprotect.com>
14 years agoMore constify.
Joerg Sonnenberger [Mon, 16 Aug 2004 13:51:21 +0000 (13:51 +0000)]
More constify.

14 years agoMake libftpio WARNS=6 clean.
Joerg Sonnenberger [Mon, 16 Aug 2004 12:59:21 +0000 (12:59 +0000)]
Make libftpio WARNS=6 clean.

14 years agoFix the fprintf statement for overlong domainnames.
Joerg Sonnenberger [Mon, 16 Aug 2004 05:55:13 +0000 (05:55 +0000)]
Fix the fprintf statement for overlong domainnames.

Noticed-by: dillon
14 years ago- use const for file names, static for local functions
Joerg Sonnenberger [Sun, 15 Aug 2004 17:05:06 +0000 (17:05 +0000)]
- use const for file names, static for local functions
- remove register keyword
- remove useless casts
- remove '?' case from getopt switch
- check return value of signal

Submitted-by: Liam J. Foy <liamfoy@sepulcrum.org>
- use sys/queue.h instead of hand-rolled simple list
- WARNS?= 6 clean

14 years agoMinor style changes.
Joerg Sonnenberger [Sun, 15 Aug 2004 16:12:03 +0000 (16:12 +0000)]
Minor style changes.

14 years agoAdd strotonum(3) into the !ANSI_SOURCE && !_POSIX_SOURCE && !__STRICT_ANSI
Joerg Sonnenberger [Sun, 15 Aug 2004 16:01:11 +0000 (16:01 +0000)]
Add strotonum(3) into the !ANSI_SOURCE && !_POSIX_SOURCE && !__STRICT_ANSI
part of stdlib.h.

strtonum simplifies string conversion by allowing automatic boundary checks.

Submitted-by: Andre Nathan <andre@digirati.com.br>
Obtained-from: OpenBSD

14 years ago- WARNS ?= 6 clean
Joerg Sonnenberger [Sun, 15 Aug 2004 15:06:58 +0000 (15:06 +0000)]
- WARNS ?= 6 clean
- make helper functions static and the arguments const if possible
- remove '?' case from getopt switch
- remove useless casts to void of function return values
- move the error handling label to the end of the function, we don't want
  Italian code here

14 years agoMake the addr parameter to kernacc and useracc const.
Joerg Sonnenberger [Sun, 15 Aug 2004 15:00:22 +0000 (15:00 +0000)]
Make the addr parameter to kernacc and useracc const.

Wondered-about: corecode

14 years agoIOCTL mapping layer Part II/II
Joerg Sonnenberger [Sun, 15 Aug 2004 14:15:00 +0000 (14:15 +0000)]
IOCTL mapping layer Part II/II

Convert the Linux IOCTL emulation to use the new mapping layer. This
also changes the drm(4) and aac(4) emulation of the respective APIs.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
14 years ago- remove prototype for main
Joerg Sonnenberger [Sun, 15 Aug 2004 12:27:37 +0000 (12:27 +0000)]
- remove prototype for main
- make usage() static
- remove unnecessary casts of function returns
- explicitly check input length against MAXHOSTNAMELEN for setdomainname
- explicitly terminate string after getdomainname
- minor style cleanup, this is WARNS?= 6 clean.

14 years agoAdd a missing uio_td assignment (that unionfs needs).
Matthew Dillon [Sat, 14 Aug 2004 19:55:28 +0000 (19:55 +0000)]
Add a missing uio_td assignment (that unionfs needs).

Reported-by: David Rhodus <sdrhodus@gmail.com>
14 years agoAdd DFOSVERSION for ports to check for DragonFly and allow them to handle
Joerg Sonnenberger [Sat, 14 Aug 2004 13:49:41 +0000 (13:49 +0000)]
Add DFOSVERSION for ports to check for DragonFly and allow them to handle
it accordlingly.

Submitted-by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
14 years ago- remove '?' from getopt switch case
Joerg Sonnenberger [Sat, 14 Aug 2004 13:37:46 +0000 (13:37 +0000)]
- remove '?' from getopt switch case
- check the return values of gettimeofday and signal
- improve wording of failed fork() message

Submitted-by: Liam J. Foy <liamjoy@sepulcrum.org>
14 years agoMove a comment to the right place.
Jeffrey Hsu [Sat, 14 Aug 2004 06:41:33 +0000 (06:41 +0000)]
Move a comment to the right place.
Indentation changes.

14 years agoFix function definition {} placement according to our own style.
Jeroen Ruigrok/asmodai [Fri, 13 Aug 2004 19:12:52 +0000 (19:12 +0000)]
Fix function definition {} placement according to our own style.

Submitted by: Liam J. Foy <liamfoy@sepulcrum.org>

14 years agoRemove question mark (?) case statement.
Jeroen Ruigrok/asmodai [Fri, 13 Aug 2004 19:01:18 +0000 (19:01 +0000)]
Remove question mark (?) case statement.
Change %c strftime() specifier into %s to make sure we don't drop year
digits.

Submitted by: Liam J. Foy <liamfoy@sepulcrum.org>

14 years agoSplit off code in print_all_info() into print_batt_life(), print_batt_stat()
Jeroen Ruigrok/asmodai [Fri, 13 Aug 2004 18:58:55 +0000 (18:58 +0000)]
Split off code in print_all_info() into print_batt_life(), print_batt_stat()
and print_batt_time().
Add prototypes.

Vast majority submitted by: Liam J. Foy <liamfoy@sepulcrum.org>

14 years agoMake all the local functions static.
Jeroen Ruigrok/asmodai [Fri, 13 Aug 2004 18:48:29 +0000 (18:48 +0000)]
Make all the local functions static.

Partially submitted by: Liam J. Foy <liamfoy@sepulcrum.org>

14 years agoUse proper EXIT_FAILURE/EXIT_SUCCESS for exit() calls.
Jeroen Ruigrok/asmodai [Fri, 13 Aug 2004 18:44:11 +0000 (18:44 +0000)]
Use proper EXIT_FAILURE/EXIT_SUCCESS for exit() calls.

Submitted by: Liam J. Foy <liamfoy@sepulcrum.org>

14 years agoUse proper ANSI prototypes and make sure all arguments are supplied in the
Jeroen Ruigrok/asmodai [Fri, 13 Aug 2004 18:41:45 +0000 (18:41 +0000)]
Use proper ANSI prototypes and make sure all arguments are supplied in the
function definition.

Submitted partially by: Liam J. Foy <liamfoy@sepulcrum.org>