dragonfly.git
15 years agoDocument the "accept_rtadv" interface flag.
Jeffrey Hsu [Thu, 30 Dec 2004 02:44:10 +0000 (02:44 +0000)]
Document the "accept_rtadv" interface flag.

Obtained from:  KAME rev 1.17 by itojun
Same as:  FreeBSD rev 1.2.2.8 by ume

15 years agoAdd the "accept_rtadv" interface option to specifiy whether to accept
Jeffrey Hsu [Thu, 30 Dec 2004 02:35:24 +0000 (02:35 +0000)]
Add the "accept_rtadv" interface option to specifiy whether to accept
Router Advertisements on a given interface.

Submitted by:  Hiroki Sato <hrs@allbsd.org>
Obtained from:  KAME (via FreeBSD)
References:  KAME: kame/kame/kame/ndp/ndp.c 1.77
     FreeBSD: src/usr.sbin/ndp/ndp.c 1.2.2.6

15 years agoAdd the new ND6_IFF_ACCEPT_RTADV flag to control whether to accept
Jeffrey Hsu [Thu, 30 Dec 2004 02:26:12 +0000 (02:26 +0000)]
Add the new ND6_IFF_ACCEPT_RTADV flag to control whether to accept
Router Advertisements on a per-interface basis.

Submitted by:  Hiroki Sato <hrs@allbsd.org>
Obtained from:  KAME (via FreeBSD)

15 years agoPrefix function names with __generic_ as per the rest, to remove the
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 17:48:27 +0000 (17:48 +0000)]
Prefix function names with __generic_ as per the rest, to remove the
duplicated symbols.

15 years agoGet rid of an Alpha specific part.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 17:29:35 +0000 (17:29 +0000)]
Get rid of an Alpha specific part.

15 years agoPrefix -I's path addition with ${.CURDIR}.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 15:35:43 +0000 (15:35 +0000)]
Prefix -I's path addition with ${.CURDIR}.

15 years agoUse ANSI C and get rid of the __STDC__ and other wrapping.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 15:22:57 +0000 (15:22 +0000)]
Use ANSI C and get rid of the __STDC__ and other wrapping.

15 years agoAdd more files to the architecture specific section.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 12:55:50 +0000 (12:55 +0000)]
Add more files to the architecture specific section.
These include C99 functions.

Taken from: NetBSD

15 years agolibm hasn't been used in ages. msun has taken over its place for a long
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 11:45:29 +0000 (11:45 +0000)]
libm hasn't been used in ages.  msun has taken over its place for a long
while now.

15 years agoReplace the files with the NetBSD ones, which are the rewritten ones by
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 11:40:18 +0000 (11:40 +0000)]
Replace the files with the NetBSD ones, which are the rewritten ones by
J.T. Conklin and some others.  This includes AMD64 support.

15 years agoMake sure to include header files from -I${ARCH} directories, in this case
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:40:09 +0000 (10:40 +0000)]
Make sure to include header files from -I${ARCH} directories, in this case
to pick up abi.h.

15 years agoAdd abi.h which defines particulars for x86 and AMD64.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:29:14 +0000 (10:29 +0000)]
Add abi.h which defines particulars for x86 and AMD64.

Taken from: NetBSD

15 years agoGet rid of hardware architectures we do not use.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:24:07 +0000 (10:24 +0000)]
Get rid of hardware architectures we do not use.

15 years agoRetire Alpha bits.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:22:29 +0000 (10:22 +0000)]
Retire Alpha bits.

15 years agoGet rid of unused hardware targets.
Jeroen Ruigrok/asmodai [Wed, 29 Dec 2004 10:16:41 +0000 (10:16 +0000)]
Get rid of unused hardware targets.

15 years agoFix compile error.
Jeffrey Hsu [Wed, 29 Dec 2004 05:44:43 +0000 (05:44 +0000)]
Fix compile error.

15 years agoForced commit to say the previous commit wasn't really a buffer overflow
Jeffrey Hsu [Wed, 29 Dec 2004 03:26:42 +0000 (03:26 +0000)]
Forced commit to say the previous commit wasn't really a buffer overflow
after all, but the code is more uniform this way, so leave it like this,
except for ipsec.c where we use the standard libkern inet_ntoa() instead of
defining a private copy.

15 years agoGet rid of dead non-DragonFly code.
Matthew Dillon [Wed, 29 Dec 2004 02:42:16 +0000 (02:42 +0000)]
Get rid of dead non-DragonFly code.

15 years agonvp may fall through as NULL, check it before vput()ing.
Matthew Dillon [Wed, 29 Dec 2004 02:41:26 +0000 (02:41 +0000)]
nvp may fall through as NULL, check it before vput()ing.

15 years agoRename the proc pointer p to pp to clarify its use in portions of the tty
Matthew Dillon [Wed, 29 Dec 2004 02:40:52 +0000 (02:40 +0000)]
Rename the proc pointer p to pp to clarify its use in portions of the tty
code.

Make ttread() and ttwrite() work properly when called from a pure thread.

15 years agoJournaling layer work.
Matthew Dillon [Wed, 29 Dec 2004 02:40:03 +0000 (02:40 +0000)]
Journaling layer work.

* Adjust the new mountctl syscall to make the passed file descriptor an
  explicit argument rather then storing the fd in the control structure.
  Convert the fd to a file pointer to make kern_mountctl() callable from
  a pure thread.

* Get rid of vop_stdmountctl and just have the VOP default ops call
  journal_mountctl(), which makes things less confusing.

* Get more of the journaling infrastructure working.  Basic installation
  and removal of the journaling structure and the creation and destruction
  of the worker thread and stream file pointer now works (with lots of XXX's).

* Add a journaling vector for VOP_NMKDIR to test the journaling VOP ops shim.

15 years agoFix buffer overflow bug involving inet_ntoa().
Jeffrey Hsu [Wed, 29 Dec 2004 01:19:53 +0000 (01:19 +0000)]
Fix buffer overflow bug involving inet_ntoa().

15 years agoEquivalent to: FreeBSD rev 1.82
Liam J. Foy [Tue, 28 Dec 2004 22:56:12 +0000 (22:56 +0000)]
Equivalent to:  FreeBSD rev 1.82

Ok'ed by: hsu@

15 years agoFreeBSD PR: kern/54874
Jeffrey Hsu [Tue, 28 Dec 2004 22:20:53 +0000 (22:20 +0000)]
FreeBSD PR:  kern/54874
  ip6fw does not recognize ESP packets correctly when the packets are specified
  as protocol 50 (or "ESP") by the ip6fw command.  For example, even if the
  following line is installed:

  add pass esp from any to any

  The kernel does not apply this rule to IPv6 ESP packets.  Instead, we need
  to specify like this:

  add pass all from any to any ipv6options esp

Submitted by:  Hiroki Sato <hrs@allbsd.org>
Obtained from:  FreeBSD rev 1.2.2.10 commit by ume@freebsd.org from
submisssion by JINMEI Tatuya <jinmei@shuttle.wide.toshiba.co.jp>

15 years ago- Make modestr const and initialize it (stop GCC moaning)
Liam J. Foy [Tue, 28 Dec 2004 20:47:40 +0000 (20:47 +0000)]
- Make modestr const and initialize it (stop GCC moaning)
- Remove <string.h> - unnecessary
- Minor err message kung fu mixed in with some (void) removal

Makefile:
- Add DragonFly tag
- Add WARNS?= 6

15 years agoFix off-by-one error with the range check for PRC_NCMDS.
Jeffrey Hsu [Tue, 28 Dec 2004 19:55:16 +0000 (19:55 +0000)]
Fix off-by-one error with the range check for PRC_NCMDS.

Same as:  FreeBSD rev 1.38, OpenBSD rev 1.36, KAME rev 1.137.
Submitted by:  Hiroki Sato <hrs@allbsd.org>

15 years ago- Both <unistd.h> and <sys/types.h> can go - unnecessary
Liam J. Foy [Tue, 28 Dec 2004 19:50:11 +0000 (19:50 +0000)]
- Both <unistd.h> and <sys/types.h> can go - unnecessary
- Use err() - no need to roll our own

15 years agoClean up the networking code before I parallelize the routing code.
Jeffrey Hsu [Tue, 28 Dec 2004 08:09:59 +0000 (08:09 +0000)]
Clean up the networking code before I parallelize the routing code.

15 years agoFix a range check bug in lseek()
Matthew Dillon [Tue, 28 Dec 2004 04:39:59 +0000 (04:39 +0000)]
Fix a range check bug in lseek()

15 years ago- Clean sbin/dump of all registers.
Liam J. Foy [Mon, 27 Dec 2004 22:36:37 +0000 (22:36 +0000)]
- Clean sbin/dump of all registers.

Submitted by: Steve Mynott <steve.mynott@gmail.com>

15 years agoImprove the printing of ==> filename <==. Do not print the same filename
Matthew Dillon [Mon, 27 Dec 2004 21:06:39 +0000 (21:06 +0000)]
Improve the printing of ==> filename <==.  Do not print the same filename
over and over again when running tail -f on multiple files and the next line
output is coming from the same file that the last line output came from.

15 years agoAdd support for tail -f'ing multiple files. part 1/2.
Matthew Dillon [Mon, 27 Dec 2004 20:55:07 +0000 (20:55 +0000)]
Add support for tail -f'ing multiple files.  part 1/2.

Submitted-by: "Andre Nathan" <andre@digirati.com.br>
Taken-from: FreeBSD

15 years agoDo not allow '.' or '..' to be specified as the last path component when
Matthew Dillon [Mon, 27 Dec 2004 20:30:03 +0000 (20:30 +0000)]
Do not allow '.' or '..' to be specified as the last path component when
removing a directory, as per SUSv3. i

Note also that PAX stupidly depends on this to operate correctly.

Reported-by: Hiroki Sato <hrs@allbsd.org>
15 years agoMessed up the man page in my previous commit. Now all is well again.
Sascha Wildner [Sun, 26 Dec 2004 18:58:59 +0000 (18:58 +0000)]
Messed up the man page in my previous commit. Now all is well again.

15 years ago- Take back the commit from Oct. 1, 2004 since FreeBSD has changed their
Sascha Wildner [Sun, 26 Dec 2004 15:55:23 +0000 (15:55 +0000)]
- Take back the commit from Oct. 1, 2004 since FreeBSD has changed their
  Mk/bsd.port.mk in the meantime to use the --suffix option.

- Sync with OpenBSD, which means the reject file is written in unified
  format now if the original diff was unified.

- Perform some minor cleanup.

15 years agoSilence groff warnings
Sascha Wildner [Sun, 26 Dec 2004 12:37:08 +0000 (12:37 +0000)]
Silence groff warnings

15 years agoFix to make jumbo frames work properly.
Matthew Dillon [Sun, 26 Dec 2004 06:12:04 +0000 (06:12 +0000)]
Fix to make jumbo frames work properly.

Taken-from: OpenBSD
Submitted-by: Michal Belczyk <diavul@bsd.krakow.pl>
15 years agoProperly recognize a YUKON device's on-board ram.
Matthew Dillon [Sun, 26 Dec 2004 06:10:50 +0000 (06:10 +0000)]
Properly recognize a YUKON device's on-board ram.

Taken-from: FreeBSD
Submitted-by: Michal Belczyk <diavul@bsd.krakow.pl>
15 years agoRemove '?' case.
Sascha Wildner [Sat, 25 Dec 2004 14:20:09 +0000 (14:20 +0000)]
Remove '?' case.

15 years ago- Remove string.h
Sascha Wildner [Sat, 25 Dec 2004 06:41:47 +0000 (06:41 +0000)]
- Remove string.h
- Properly check return values
- Bump WARNS to 6

15 years agoAvoid parsing past strdup'ped string.
YONETANI Tomokazu [Sat, 25 Dec 2004 04:14:19 +0000 (04:14 +0000)]
Avoid parsing past strdup'ped string.
This is similar to a bug fixed in 1.17 of NetBSD repository.
Also notified the vendor as bin/28779.

15 years ago- Static functions/globals
Liam J. Foy [Fri, 24 Dec 2004 15:13:56 +0000 (15:13 +0000)]
- Static functions/globals
- Remove registers
- Fix data types(char ch -> int ch)
- Add WARNS 6

15 years agoAdd ICH5 10/100 Mbit interface id.
Jeroen Ruigrok/asmodai [Fri, 24 Dec 2004 10:50:06 +0000 (10:50 +0000)]
Add ICH5 10/100 Mbit interface id.

Submitted by: Kristian Vlaardingerbroek

15 years agoJournaling layer work. Add a new system call, mountctl, which will be used
Matthew Dillon [Fri, 24 Dec 2004 05:00:22 +0000 (05:00 +0000)]
Journaling layer work.  Add a new system call, mountctl, which will be used
to manage the journaling layer.  Add a new VOP, VOP_MOUNTCTL, which will
be used to pass mountctl operations down into the VFS layer.

15 years agoSilence a compiler warning by adding parenthesis.
Matthew Dillon [Fri, 24 Dec 2004 04:54:49 +0000 (04:54 +0000)]
Silence a compiler warning by adding parenthesis.

15 years agoTry to be a bit smarter when closing down a ULPT device.
Matthew Dillon [Fri, 24 Dec 2004 04:52:19 +0000 (04:52 +0000)]
Try to be a bit smarter when closing down a ULPT device.

15 years agoMake sure ntfs_lookup() has the correct side effects by ensuring that
Matthew Dillon [Fri, 24 Dec 2004 04:47:06 +0000 (04:47 +0000)]
Make sure ntfs_lookup() has the correct side effects by ensuring that
*vpp is NULLd out if a non-zero return occurs.

Reported-by: Dmitri Nikulin <dnikulin@optusnet.com.au>
15 years agoFix problem with last commit that was breaking tcpdump.
Jeffrey Hsu [Fri, 24 Dec 2004 03:22:28 +0000 (03:22 +0000)]
Fix problem with last commit that was breaking tcpdump.

Reported by: Gary Allan <dragonfly@gallan.plus.com>

15 years agoAdd the -P flag which displays more PCB information (in particular, TCP).
Matthew Dillon [Fri, 24 Dec 2004 02:23:50 +0000 (02:23 +0000)]
Add the -P flag which displays more PCB information (in particular, TCP).
In particular, information related to the TCP window parameters, unacked data,
and connection RTT.

15 years agoAdd a missing initialization for the error variable which resulted in netstat
Matthew Dillon [Fri, 24 Dec 2004 02:22:14 +0000 (02:22 +0000)]
Add a missing initialization for the error variable which resulted in netstat
reporting a bogus sysctl error.

15 years agoRemove now-unused loop_cnt variable.
Matthew Dillon [Fri, 24 Dec 2004 02:19:45 +0000 (02:19 +0000)]
Remove now-unused loop_cnt variable.

15 years agoDo not loop 3 times in the interrupt processing code, it's an unnecessary
Matthew Dillon [Fri, 24 Dec 2004 01:27:08 +0000 (01:27 +0000)]
Do not loop 3 times in the interrupt processing code, it's an unnecessary
waste of time, especially when EM has a ton of interrupt enhancing sysctls.

15 years ago- Remove *ttyname()
Liam J. Foy [Thu, 23 Dec 2004 15:17:21 +0000 (15:17 +0000)]
- Remove *ttyname()
- Remove unnecessary cast ((char)ch -> ch)
- Add WARNS 6 and $DragonFly$ tag

15 years agoIn install_* targets, honour any EXTRA_PACKAGES and EXTRA_ROOTSKELS
Chris Pressey [Thu, 23 Dec 2004 04:39:57 +0000 (04:39 +0000)]
In install_* targets, honour any EXTRA_PACKAGES and EXTRA_ROOTSKELS
variable settings given on the make(1) command line.

Based-on-patch-by: Chuck Tuffli <chuck_tuffli at agilent dot com>
15 years ago-Setmode can also be caused to fail because of malloc().
Liam J. Foy [Wed, 22 Dec 2004 11:25:51 +0000 (11:25 +0000)]
-Setmode can also be caused to fail because of malloc().
 We test to see if setmode() has failed. If it has we check errno.
 If errno == 0 then we have an invalid file mode. If not malloc
 has failed and we the print the error via warn().
-Fix data types (int -> mode_t for getmode())
-Add WARNS?= 6

Ok'ed by: Joerg

15 years agoRegenerate manual pages.
Jeroen Ruigrok/asmodai [Wed, 22 Dec 2004 11:11:09 +0000 (11:11 +0000)]
Regenerate manual pages.

15 years agoRemove my local patch again, it was still not meant to be commited.
Joerg Sonnenberger [Wed, 22 Dec 2004 11:03:27 +0000 (11:03 +0000)]
Remove my local patch again, it was still not meant to be commited.

15 years agoAdd new structures for exporting the cputime statistics via 64 bit counters
Joerg Sonnenberger [Wed, 22 Dec 2004 11:01:49 +0000 (11:01 +0000)]
Add new structures for exporting the cputime statistics via 64 bit counters
and redo the timer frequence export.
Provide the interface glue for libkinfo and libkcore.
Additionally provide interfaces to query ccpu, the number of cpus, tk_nin
and tk_nout.
Remove those fields from devstat.h's struct statinfo.
Remove kvm dependency of rpc.rstatd by using the newly added libkinfo
functions and the sysctl interface for vmmeter.
Use the new interface in systat, the iostat part is now kvm-free.
Use kinfo_get_sched_stathz in time.
Use the kinfo interface for everything beside getting the actual process list
in top. This also removes the Last PID, which could be added back easily.
Since the feature is not that useful and breaks e.g. the jail isolation,
I haven't added a sysctl to read nextpid.
Use the kinfo interface in vmstat.
Use the kinfo interface in iostat. iostat is now kvm-free and not
setgid kmem anymore. This also means that iostat can't be applied to
coredump anymore. If this functionality is important, the kcore kinfo wrapper
can be added easily.

15 years agoThe grouplist variable made local in the last commit was not being NULLed
Matthew Dillon [Wed, 22 Dec 2004 08:59:33 +0000 (08:59 +0000)]
The grouplist variable made local in the last commit was not being NULLed
out, causing chroot to fail.

15 years agoAdd digi driver to simplify testing. This should replace dgb.
Joerg Sonnenberger [Wed, 22 Dec 2004 08:42:47 +0000 (08:42 +0000)]
Add digi driver to simplify testing. This should replace dgb.
Currently only build as module until success messages arrive.
The firmware images are build into the module, better solution
will come later.

Obtained-from: FreeBSD

15 years agoDocument lockcountnb(9) which is the non-blocking counterpart of
Hiten Pandya [Wed, 22 Dec 2004 07:12:24 +0000 (07:12 +0000)]
Document lockcountnb(9) which is the non-blocking counterpart of
lockcount(9).  Add it to the MLINKs as well.

Correct header name, it is sys/lock.h and not sys/lockmgr.h.

15 years agoTell the reader about sys/buf.h as well.
Hiten Pandya [Wed, 22 Dec 2004 05:53:09 +0000 (05:53 +0000)]
Tell the reader about sys/buf.h as well.

Update the manual page date.

15 years agoMake sure that cn_flags is properly updated to account for side effects
Matthew Dillon [Wed, 22 Dec 2004 02:17:08 +0000 (02:17 +0000)]
Make sure that cn_flags is properly updated to account for side effects
for *_checkpath(), otherwise relookup will panic on an assertion.

15 years agoTrust your intuition. If something feels wrong, it often is wrong.
Joerg Sonnenberger [Wed, 22 Dec 2004 01:33:21 +0000 (01:33 +0000)]
Trust your intuition. If something feels wrong, it often is wrong.

15 years agoRemove support for ancient (FreeBSD) kernel, which don't set profrate.
Joerg Sonnenberger [Wed, 22 Dec 2004 01:28:39 +0000 (01:28 +0000)]
Remove support for ancient (FreeBSD) kernel, which don't set profrate.

15 years ago- string.h is unnecessary, remove it
Liam J. Foy [Wed, 22 Dec 2004 00:12:30 +0000 (00:12 +0000)]
- string.h is unnecessary, remove it
- Better err message kung-fu

15 years agoSync daemon(8) with FreeBSD:
Liam J. Foy [Tue, 21 Dec 2004 23:30:57 +0000 (23:30 +0000)]
Sync daemon(8) with FreeBSD:
- 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.
- Add some small modifications to the sync'd code.
- Add WARNS?= 6 and make it WARNS 6 clean.

Ok'ed by: Joerg

15 years agoDepend on _KERNEL or _KERNEL_STRUCTURES.
Joerg Sonnenberger [Tue, 21 Dec 2004 22:43:38 +0000 (22:43 +0000)]
Depend on _KERNEL or _KERNEL_STRUCTURES.

Submitted-by: cpressey
Remove the !DragonFly cases, they don't add any value. Add proper #ifdef
encapsulation.

15 years agoBump WARNS to 6:
Chris Pressey [Tue, 21 Dec 2004 20:00:57 +0000 (20:00 +0000)]
Bump WARNS to 6:
- Add missing prototype;
- Where appropriate, adjust types and consequently remove casts;
- Explicitly initialize variables that GCC can't tell won't be used
  unintialized.

Also, while here, apply style(9):
- Remove `register' keywords;
- Add `static' keywords to local functions and prototypes;
- Remove casts to void when ignoring return values;
- Explicitly compare non-booleans against zero or NULL;
- Make comments real sentences;
- Add braces and NOTREACHED.

15 years agoRemove confusing comment.
Matthew Dillon [Tue, 21 Dec 2004 19:41:36 +0000 (19:41 +0000)]
Remove confusing comment.

Reported-by: Dion Blazakis <dion.blazakis@gmail.com>
15 years agoFix NO_OBJC knob.
Joerg Sonnenberger [Tue, 21 Dec 2004 15:13:56 +0000 (15:13 +0000)]
Fix NO_OBJC knob.

15 years agoUse size_t for len.
Joerg Sonnenberger [Tue, 21 Dec 2004 15:12:34 +0000 (15:12 +0000)]
Use size_t for len.

15 years agoChange type of len to size_t.
Joerg Sonnenberger [Tue, 21 Dec 2004 15:07:42 +0000 (15:07 +0000)]
Change type of len to size_t.

15 years agoFix a regression with GCC 3.4.3 by using __packed instead of mode(byte).
Joerg Sonnenberger [Tue, 21 Dec 2004 14:41:31 +0000 (14:41 +0000)]
Fix a regression with GCC 3.4.3 by using __packed instead of mode(byte).

15 years agoInstall the GCC 2.95 main info pages as gcc2.info and cpp2.info.
Joerg Sonnenberger [Tue, 21 Dec 2004 13:10:48 +0000 (13:10 +0000)]
Install the GCC 2.95 main info pages as gcc2.info and cpp2.info.
Install the GCC 3.4.3 info pages as gcc.info and cpp.info instead.
Add the NO_CXX, NO_FORTRAN and NO_OBJC knobs to the gcc34 build
infrastructure.
Add the GCC 3.4 visibility patch, for further information read
http://www.nedprod.com/programs/gccvisibility.html

15 years agoDon't even include the GDB build framework.
Joerg Sonnenberger [Tue, 21 Dec 2004 11:57:29 +0000 (11:57 +0000)]
Don't even include the GDB build framework.

15 years agoClean up the routing and networking code before I parallelize routing.
Jeffrey Hsu [Tue, 21 Dec 2004 02:54:48 +0000 (02:54 +0000)]
Clean up the routing and networking code before I parallelize routing.

15 years agoFix whitespace.
Jeffrey Hsu [Tue, 21 Dec 2004 02:42:41 +0000 (02:42 +0000)]
Fix whitespace.

15 years agoReorder included headers to an acceptable standard. System headers
Hiten Pandya [Tue, 21 Dec 2004 02:07:27 +0000 (02:07 +0000)]
Reorder included headers to an acceptable standard.  System headers
should come first, then userland/normal headers, then application
specific headers, etc.

This should be in accordance with the style(9) manual page.

15 years ago- Detect and exit on write errors (from FreeBSD, but our code)
Liam J. Foy [Mon, 20 Dec 2004 23:59:45 +0000 (23:59 +0000)]
- Detect and exit on write errors (from FreeBSD, but our code)
- Add err.h

Ok'ed by: Joerg

15 years agoCorrect the make target the user is told to use to fetch required
Matthew Dillon [Mon, 20 Dec 2004 21:13:09 +0000 (21:13 +0000)]
Correct the make target the user is told to use to fetch required
packages.

15 years agoBump WARNS to 6:
Chris Pressey [Mon, 20 Dec 2004 20:09:23 +0000 (20:09 +0000)]
Bump WARNS to 6:
- Remove redundant nested extern declarations;
- Constify some char *'s, introducing new variables where existing
  variables were being used more than once for different purposes;
- Adjust the signedness of some integer variables to reflect their
  usage in comparisons;
- Use a struct timeval instead of a pair of integer variables to
  record the 'best' time.

15 years agoStyle(9):
Chris Pressey [Mon, 20 Dec 2004 19:59:54 +0000 (19:59 +0000)]
Style(9):
- Remove casts to void when ignoring return values;
- Un-block a useless inner block containing no variable declarations.

15 years agoMove the doscmd: depdendancy to after the .include so it does not
Matthew Dillon [Mon, 20 Dec 2004 19:24:38 +0000 (19:24 +0000)]
Move the doscmd: depdendancy to after the .include so it does not
override the ${PROG} target.

15 years agoMerge from vendor branch GCC:
Joerg Sonnenberger [Mon, 20 Dec 2004 19:23:26 +0000 (19:23 +0000)]
Merge from vendor branch GCC:
- Update GCC to version 3.4.3.
- Remove some unused files from the repository.
- Change default debug format back to DWARF-2, since gdb 6 works better with
  it.
- Compile libobjc dynamically too, it helps e.g. GnuStep.
- Install MMX/SSE/... support headers under /usr/libdata/gcc34.

15 years ago- Update GCC to version 3.4.3.
Joerg Sonnenberger [Mon, 20 Dec 2004 19:23:27 +0000 (19:23 +0000)]
- Update GCC to version 3.4.3.
- Remove some unused files from the repository.
- Change default debug format back to DWARF-2, since gdb 6 works better with
  it.
- Compile libobjc dynamically too, it helps e.g. GnuStep.
- Install MMX/SSE/... support headers under /usr/libdata/gcc34.

15 years ago- Update GCC to version 3.4.3.
Joerg Sonnenberger [Mon, 20 Dec 2004 19:23:26 +0000 (19:23 +0000)]
- Update GCC to version 3.4.3.
- Remove some unused files from the repository.
- Change default debug format back to DWARF-2, since gdb 6 works better with
  it.
- Compile libobjc dynamically too, it helps e.g. GnuStep.
- Install MMX/SSE/... support headers under /usr/libdata/gcc34.

15 years agoClean up "`cache' might be used uninitialized" warnings. These come from
Matthew Dillon [Mon, 20 Dec 2004 18:37:59 +0000 (18:37 +0000)]
Clean up "`cache' might be used uninitialized" warnings.  These come from
a really badly coded cache boolean related to NQ leases which is passed back
in a reply.  Just pre-initialize the variable to 0 to fix the warnings.

15 years agoRemove cruft for GCC 3.3
Joerg Sonnenberger [Mon, 20 Dec 2004 18:36:29 +0000 (18:36 +0000)]
Remove cruft for GCC 3.3

15 years agoThe ../Makefile.inc chain may be .included early (it is also included by
Matthew Dillon [Mon, 20 Dec 2004 18:10:11 +0000 (18:10 +0000)]
The ../Makefile.inc chain may be .included early (it is also included by
bsd.init.mk).  Make sure the chain is only included once to avoid
duplicate script warnings from make.

15 years agoRemove duplicate .include of bsd.subdir.mk. It is already indirectly
Matthew Dillon [Mon, 20 Dec 2004 18:08:32 +0000 (18:08 +0000)]
Remove duplicate .include of bsd.subdir.mk.   It is already indirectly
included.

15 years agoRemove duplicate _EXTRADEPEND entry. bsd.lib.mk already has one. It is
Matthew Dillon [Mon, 20 Dec 2004 18:02:19 +0000 (18:02 +0000)]
Remove duplicate _EXTRADEPEND entry.  bsd.lib.mk already has one.  It is
unclear how the source dependancy should be handled but since it only
generates entries for a .depend file we can comment it out for now.

15 years agoFix printf format specifier from %lx->%x for ntohl argument.
Matthew Dillon [Mon, 20 Dec 2004 17:44:51 +0000 (17:44 +0000)]
Fix printf format specifier from %lx->%x for ntohl argument.

15 years agoFix duplicate script warnings byt remove a duplicate .include of bsd.subdir.mk.
Matthew Dillon [Mon, 20 Dec 2004 17:21:39 +0000 (17:21 +0000)]
Fix duplicate script warnings byt remove a duplicate .include of bsd.subdir.mk.

15 years agoFix format %lx->%x for ntohl conversions in diagnostic warning printfs.
Matthew Dillon [Mon, 20 Dec 2004 17:15:40 +0000 (17:15 +0000)]
Fix format %lx->%x for ntohl conversions in diagnostic warning printfs.

15 years agoDefine __arysize for FreeBSD 4 buildworlds.
Joerg Sonnenberger [Mon, 20 Dec 2004 16:58:34 +0000 (16:58 +0000)]
Define __arysize for FreeBSD 4 buildworlds.

15 years agoAdd missing ..
Matthew Dillon [Mon, 20 Dec 2004 16:20:02 +0000 (16:20 +0000)]
Add missing ..

Reported-by: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
15 years agoCorrect the module search path in some manual pages.
Sascha Wildner [Mon, 20 Dec 2004 14:21:19 +0000 (14:21 +0000)]
Correct the module search path in some manual pages.

Submitted-by: Joerg Anslik <joerg@anslik.de>
15 years agoRemove unecessary range check. start and num are unsigned anyway and
Joerg Sonnenberger [Mon, 20 Dec 2004 13:58:02 +0000 (13:58 +0000)]
Remove unecessary range check. start and num are unsigned anyway and
the num == 0 case works fine already.

Noticed-by: Christer Öberg <christer.oberg@ornsat.com>
15 years agoUSER_LDT has been removed ages ago.
Joerg Sonnenberger [Mon, 20 Dec 2004 13:35:14 +0000 (13:35 +0000)]
USER_LDT has been removed ages ago.