dragonfly.git
15 years ago* Remove Alpha support and redundant flags from the Makefile.
Sascha Wildner [Sun, 13 Feb 2005 02:11:26 +0000 (02:11 +0000)]
* Remove Alpha support and redundant flags from the Makefile.
* Rename 2 local variables.
* Cast 2 sizeof's to int for comparison.
* Add WARNS?= 6.

Submitted by: Sepherosa Ziehau <sepherosa@softhome.net>
              (with minor modifications by me)

15 years agoFix a little redundancy from my last commit. The border cannot be outside
Sascha Wildner [Sat, 12 Feb 2005 23:44:54 +0000 (23:44 +0000)]
Fix a little redundancy from my last commit. The border cannot be outside
of the drawing area.

15 years agoIn VESA_800x600, never draw the mouse pointer in the border area
Sascha Wildner [Sat, 12 Feb 2005 23:25:41 +0000 (23:25 +0000)]
In VESA_800x600, never draw the mouse pointer in the border area
which means the border does no longer have to be redrawn in
remove_pxlmouse_planar().

15 years agoI have added a per cpu buffer for ktr, so this note can be scraped.
Eirik Nygaard [Sat, 12 Feb 2005 21:12:01 +0000 (21:12 +0000)]
I have added a per cpu buffer for ktr, so this note can be scraped.

15 years agoAdd per cpu buffer for storing KTR information.
Eirik Nygaard [Sat, 12 Feb 2005 21:09:46 +0000 (21:09 +0000)]
Add per cpu buffer for storing KTR information.
Dynamically allocate entries to each cpu buffer on boot.

15 years agoAllow numbers to be used after a letter in the modifier section after a
Eirik Nygaard [Sat, 12 Feb 2005 21:04:41 +0000 (21:04 +0000)]
Allow numbers to be used after a letter in the modifier section after a
command.

15 years agoFix a cache_resolve() vs cache_inval() race which can result in a livelock.
Matthew Dillon [Sat, 12 Feb 2005 18:56:47 +0000 (18:56 +0000)]
Fix a cache_resolve() vs cache_inval() race which can result in a livelock.
The namecache invalidation code was being a bit overzealous when asked to
invalidate a subhierarchy.  It was retrying until the subhierarchy was
completely invalidated, re-invalidating new entries created after the initial
call to cache_inval().  This can occur if the filesystem is heavily loaded
and a high level directory is being recursively invalidated.

It is unnecessary to retry in this case... the purpose is to invalidate
as-of the call to cache_inval(), so it is acceptable to allow new entries
to be resolved within the subhierarchy undergoing the invalidation.

Certain higher level entities... rename, and vnode reclamation, require
complete invalidation.  The retry has been moved to a higher level for
these entities.  The basic cache_inval() code is now single-pass.

Reported-by: Richard Nyberg <rnyberg@it.su.se>
15 years agoMark it as ALTQ ready too.
Joerg Sonnenberger [Sat, 12 Feb 2005 04:18:05 +0000 (04:18 +0000)]
Mark it as ALTQ ready too.

15 years agoALTQ support.
Joerg Sonnenberger [Sat, 12 Feb 2005 04:15:52 +0000 (04:15 +0000)]
ALTQ support.

15 years agoALTQ support.
Joerg Sonnenberger [Sat, 12 Feb 2005 04:07:34 +0000 (04:07 +0000)]
ALTQ support.

15 years agoALTQ support.
Joerg Sonnenberger [Sat, 12 Feb 2005 04:00:13 +0000 (04:00 +0000)]
ALTQ support.

15 years agolink in altq support.
Joerg Sonnenberger [Sat, 12 Feb 2005 03:06:23 +0000 (03:06 +0000)]
link in altq support.

15 years agoInline some users of SC_STAT to avoid lvalue cast.
Joerg Sonnenberger [Sat, 12 Feb 2005 02:58:29 +0000 (02:58 +0000)]
Inline some users of SC_STAT to avoid lvalue cast.

15 years agoMove mac = NULL initialisation up and simplify second conditional.
Joerg Sonnenberger [Sat, 12 Feb 2005 02:56:05 +0000 (02:56 +0000)]
Move mac = NULL initialisation up and simplify second conditional.
This both fixes the compiler warning and makes the code a bit more
obvious.

15 years agoMark dead. Not supported and if we ever want to support it again, this needs
Joerg Sonnenberger [Sat, 12 Feb 2005 02:43:36 +0000 (02:43 +0000)]
Mark dead. Not supported and if we ever want to support it again, this needs
to be changed massively anyway.

15 years agoClean-up.
Joerg Sonnenberger [Sat, 12 Feb 2005 02:23:24 +0000 (02:23 +0000)]
Clean-up.

Partly-obtained-from: FreeBSD
Partly-submitted-by: Andreas Hauser
15 years agoGC local variable size.
Joerg Sonnenberger [Sat, 12 Feb 2005 01:32:49 +0000 (01:32 +0000)]
GC local variable size.

15 years agoGC strsize.
Joerg Sonnenberger [Sat, 12 Feb 2005 01:30:57 +0000 (01:30 +0000)]
GC strsize.

15 years agoSeparate error handling path from normal return to avoid
Joerg Sonnenberger [Sat, 12 Feb 2005 01:28:07 +0000 (01:28 +0000)]
Separate error handling path from normal return to avoid
compiler warnings about unused variables.

15 years agoRemove extra token after #endif introduced in last commit.
Joerg Sonnenberger [Sat, 12 Feb 2005 01:24:34 +0000 (01:24 +0000)]
Remove extra token after #endif introduced in last commit.

15 years agoRemove unneeded packed attributes.
Joerg Sonnenberger [Sat, 12 Feb 2005 00:23:02 +0000 (00:23 +0000)]
Remove unneeded packed attributes.

Verified-by: md5
15 years ago- Fix a few grammar 'nits'.
Liam J. Foy [Sat, 12 Feb 2005 00:18:14 +0000 (00:18 +0000)]
- Fix a few grammar 'nits'.

Submitted by: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>

15 years agoRemove unnecessary packed attribute.
Joerg Sonnenberger [Fri, 11 Feb 2005 23:54:10 +0000 (23:54 +0000)]
Remove unnecessary packed attribute.

Verified-by: md5
15 years agoinstall altq headers
Joerg Sonnenberger [Fri, 11 Feb 2005 23:20:58 +0000 (23:20 +0000)]
install altq headers

15 years agoaltq include dir
Joerg Sonnenberger [Fri, 11 Feb 2005 23:20:19 +0000 (23:20 +0000)]
altq include dir

15 years agoHarti moved my comment.
Max Okumoto [Fri, 11 Feb 2005 22:52:23 +0000 (22:52 +0000)]
Harti moved my comment.

15 years agoRemoved period from end of sentence, to reduce diffs between FreeBSD us from
Max Okumoto [Fri, 11 Feb 2005 22:34:02 +0000 (22:34 +0000)]
Removed period from end of sentence, to reduce diffs between FreeBSD us from
getting too large.

15 years agoAdd ALTQ support to pfctl(8). Fix a small bug introduced earlier
Joerg Sonnenberger [Fri, 11 Feb 2005 22:31:45 +0000 (22:31 +0000)]
Add ALTQ support to pfctl(8). Fix a small bug introduced earlier
in the HTONL --> htonl conversion.

15 years agoImport ALTQ support from KAME. This is based on the FreeBSD 4 snapshot.
Joerg Sonnenberger [Fri, 11 Feb 2005 22:26:35 +0000 (22:26 +0000)]
Import ALTQ support from KAME. This is based on the FreeBSD 4 snapshot.
This includes neither the ALTQ3 compat code nor the !DragonFly defines.
The macros have been replaced with inline functions in net/ifq_var.h.

This also renames pkthdr.pf_flags as it is intended as general flag bit.
Currently supported are ppp(4), sppp(4), tun(4) and wi(4), more drivers
are coming later.

Reviewed-by: corecode, dillon, hsu
Comments-from: hmp

15 years agoRemove unused variable.
Joerg Sonnenberger [Fri, 11 Feb 2005 22:07:32 +0000 (22:07 +0000)]
Remove unused variable.

15 years agoReduced diff between FreeBSD.
Max Okumoto [Fri, 11 Feb 2005 20:14:53 +0000 (20:14 +0000)]
Reduced diff between FreeBSD.

15 years ago- Fix some spelling mistakes.
Liam J. Foy [Fri, 11 Feb 2005 17:28:10 +0000 (17:28 +0000)]
- Fix some spelling mistakes.

Submitted by: Jonathon McKitrick <jcm@freebsd-uk.eu.org>

15 years ago- Improve the debugging functionality in battd.
Liam J. Foy [Fri, 11 Feb 2005 16:22:33 +0000 (16:22 +0000)]
- Improve the debugging functionality in battd.
- In the last commit, I removed a check on the percentage. This
  was wrong since we need to test whether the default can be
  supported also (most likely is).
- Make sure we check whether time is supported by /dev/apm when
  using the -T option.

15 years agoRenamed variable 'l' to 'ln'
Max Okumoto [Fri, 11 Feb 2005 01:09:48 +0000 (01:09 +0000)]
Renamed variable 'l' to 'ln'

15 years agoLst_Append returns void, so the other case of the ? statement
Max Okumoto [Fri, 11 Feb 2005 01:07:09 +0000 (01:07 +0000)]
Lst_Append returns void, so the other case of the ? statement
should also be void.

Author: harti
Taken-from: FreeBSD

15 years agoInitialise the status variable. W_SETTERMSIG uses its value.
Max Okumoto [Fri, 11 Feb 2005 01:04:41 +0000 (01:04 +0000)]
Initialise the status variable. W_SETTERMSIG uses its value.
Author: harti
Taken-from: FreeBSD

15 years agoMore cleaning:
Liam J. Foy [Thu, 10 Feb 2005 21:06:36 +0000 (21:06 +0000)]
More cleaning:

- Remove unnecessary header

15 years agoAdd the 'All rights reserved.'. It's not entirely clear if this is still
Joerg Sonnenberger [Thu, 10 Feb 2005 14:28:54 +0000 (14:28 +0000)]
Add the 'All rights reserved.'. It's not entirely clear if this is still
necessary by Law or not.

15 years agoTemporarily create new scope and reindent section which should
Max Okumoto [Thu, 10 Feb 2005 11:33:37 +0000 (11:33 +0000)]
Temporarily create new scope and reindent section which should
become its own function.

15 years agoFix comment indention.
Max Okumoto [Thu, 10 Feb 2005 10:45:59 +0000 (10:45 +0000)]
Fix comment indention.

15 years agoMove assignment of variables {freePtr, dynamic, start} closer to
Max Okumoto [Thu, 10 Feb 2005 07:42:17 +0000 (07:42 +0000)]
Move assignment of variables {freePtr, dynamic, start} closer to
return statements.  This helps clarify what variables are used to
communicate between largely seperated code.

15 years agoMove some variables at top of Var_Parse() into local scope.
Max Okumoto [Thu, 10 Feb 2005 07:39:38 +0000 (07:39 +0000)]
Move some variables at top of Var_Parse() into local scope.
Makes the code more clean, and in prep for splitting up this
900 line function.

15 years agoRemove stale local variable ifq.
Joerg Sonnenberger [Thu, 10 Feb 2005 00:20:09 +0000 (00:20 +0000)]
Remove stale local variable ifq.

15 years agoUse ifp->if_snd directly. Use IFQ_SET_MAXLEN.
Joerg Sonnenberger [Thu, 10 Feb 2005 00:09:17 +0000 (00:09 +0000)]
Use ifp->if_snd directly. Use IFQ_SET_MAXLEN.

15 years agoDon't assign &ifp->if_snd to a temporary variable, it's type will change
Joerg Sonnenberger [Thu, 10 Feb 2005 00:08:38 +0000 (00:08 +0000)]
Don't assign &ifp->if_snd to a temporary variable, it's type will change
soon. Use ifp directly for BPF_MTAP.

15 years agoDirectly use ifp->if_snd, it's type will change soon.
Joerg Sonnenberger [Thu, 10 Feb 2005 00:07:23 +0000 (00:07 +0000)]
Directly use ifp->if_snd, it's type will change soon.

15 years agoAdd -DIN_TARGET_LIB to prevent libobjc from depending on in-tree GCC code.
Joerg Sonnenberger [Wed, 9 Feb 2005 22:46:58 +0000 (22:46 +0000)]
Add -DIN_TARGET_LIB to prevent libobjc from depending on in-tree GCC code.
This removes the undefined x86_field_alignment from the DSO.

Noticed-by: eirikn
15 years agoCleanup white space (removed spc between tabs)
Max Okumoto [Wed, 9 Feb 2005 22:10:08 +0000 (22:10 +0000)]
Cleanup white space (removed spc between tabs)

15 years agoConnect our 1:1 threading library to the build.
David Rhodus [Wed, 9 Feb 2005 21:01:50 +0000 (21:01 +0000)]
Connect our 1:1 threading library to the build.

15 years agoChanged renamed macros *_BRACKET to *_BRACE.
Max Okumoto [Wed, 9 Feb 2005 20:55:15 +0000 (20:55 +0000)]
Changed renamed macros *_BRACKET to *_BRACE.

15 years agoUntangle VarFind and, while rewriting most of the function, fix the
Max Okumoto [Wed, 9 Feb 2005 20:40:38 +0000 (20:40 +0000)]
Untangle VarFind and, while rewriting most of the function, fix the
intendation. (A large part of the function was already at intendation 8).
Cool! much cleaner.

Taken-from: FreeBSD
Author: harti

15 years agoMove VarCreate() and VarDestroy() close to top of file, and add white
Max Okumoto [Wed, 9 Feb 2005 20:26:53 +0000 (20:26 +0000)]
Move VarCreate() and VarDestroy() close to top of file, and add white
space at begining of some functions.

15 years agoRemoved uneeded white space.
Max Okumoto [Wed, 9 Feb 2005 11:52:18 +0000 (11:52 +0000)]
Removed uneeded white space.

15 years ago- Move Error case to top of elseif chain.
Max Okumoto [Wed, 9 Feb 2005 06:05:41 +0000 (06:05 +0000)]
- Move Error case to top of elseif chain.

- Do not initialize startc, at top of function, but where a know
  valid value can be assigned.

15 years ago- Split out error case where input to Var_Parse() is "$", only a
Max Okumoto [Wed, 9 Feb 2005 06:03:05 +0000 (06:03 +0000)]
- Split out error case where input to Var_Parse() is "$", only a
  dollar sign.
- Make default case an explicit error instead of falling out of the
  switch statment into another error case.

15 years agoFix a case that can prevent the vnlru_proc vnode recycler from operating.
Matthew Dillon [Wed, 9 Feb 2005 02:51:04 +0000 (02:51 +0000)]
Fix a case that can prevent the vnlru_proc vnode recycler from operating.
The vnode recycler is not allowed to recycle 'internal' directory nodes
in the namecache topology.  i.e. if the path A/B/C/D is cached, then the
recycler is not allowed to remove A, B, or C.  The recycler checks
this condition by checking the vnode's v_holdcnt.  The recycler also tries
to recycle vnodes with little or no cached data rather then the vnodes
with a great deal of cached data.

However, the buffer cache now uses v_holdcnt as well.  If the buffer cache
is large enough and maxvnodes is small enough the recycler can wind up not
finding any vnodes to recycle.

The fix is clean out the buffers with the candidate vnode and then make a
final v_holdcnt check.

Reported-by: Gary Allan <dragonfly@gallan.plus.com>
15 years agoEliminate conditional check for initialized 'fp' on error in kern_sendfile().
Jeffrey Hsu [Tue, 8 Feb 2005 23:00:33 +0000 (23:00 +0000)]
Eliminate conditional check for initialized 'fp' on error in kern_sendfile().

15 years agoNow that 'so_pcb' is properly declared as a 'void *', remove a layer of
Jeffrey Hsu [Tue, 8 Feb 2005 22:56:19 +0000 (22:56 +0000)]
Now that 'so_pcb' is properly declared as a 'void *', remove a layer of
indirection and directly use 'so->so_pcb' in place of 'sotoinpcb(so)'.

15 years agoSet so->so_pcb directly to NULL to avoid lvalue cast.
Joerg Sonnenberger [Tue, 8 Feb 2005 15:54:01 +0000 (15:54 +0000)]
Set so->so_pcb directly to NULL to avoid lvalue cast.

15 years agoInclude pci_private.h to get pci_class_to_string.
Joerg Sonnenberger [Tue, 8 Feb 2005 15:51:24 +0000 (15:51 +0000)]
Include pci_private.h to get pci_class_to_string.

15 years ago- convert to bus_space macros
Joerg Sonnenberger [Tue, 8 Feb 2005 14:31:16 +0000 (14:31 +0000)]
- convert to bus_space macros
- netgraph cleanup
- bus_alloc_resource_any
- if_printf insteed of printf("%s...", ifp_if_xname);
- use M_WAITOK in arc_init, it's called only from arc_attach

Mostly-obtained-from: FreeBSD

15 years agoRemove call to readdir() that was missed durning the libc namespace
David Rhodus [Tue, 8 Feb 2005 04:07:57 +0000 (04:07 +0000)]
Remove call to readdir() that was missed durning the libc namespace
cleanup.  We now make use of _readidir_unlocked().

First reported by : Joerg Anslik <joerg@anslik.de>
Bug hunter and fix provided by : YONETANI Tomokazu <qhwt+dfly@les.ath.cx>

15 years ago- Removed declaration of VarModify() since it is defined before it is used.
Max Okumoto [Tue, 8 Feb 2005 02:13:13 +0000 (02:13 +0000)]
- Removed declaration of VarModify() since it is defined before it is used.
  Done to sync with FreeBSD.

15 years agoChange whitespace to match with FreeBSD. But to reduce diffs, but
Max Okumoto [Tue, 8 Feb 2005 02:11:28 +0000 (02:11 +0000)]
Change whitespace to match with FreeBSD.  But to reduce diffs, but
we really need to do a complete file sweep and clean them all up.

15 years ago- Add brace around switch statement.
Max Okumoto [Tue, 8 Feb 2005 02:07:03 +0000 (02:07 +0000)]
- Add brace around switch statement.
- Cleanup white space in var.h

15 years agoUp the initial interrupt configuration hook delay to 20 seconds before
Matthew Dillon [Mon, 7 Feb 2005 23:32:26 +0000 (23:32 +0000)]
Up the initial interrupt configuration hook delay to 20 seconds before
reporting a potential problem.

15 years agoAdd support for pure kernel thread stack frames. Pure kernel threads do not
Matthew Dillon [Mon, 7 Feb 2005 21:33:36 +0000 (21:33 +0000)]
Add support for pure kernel thread stack frames.  Pure kernel threads do not
have a PCB, they simply push the register state (depending on the situation)
onto the stack and save the stack pointer.

15 years agoMore white space diff reduction with FreeBSD.
Max Okumoto [Mon, 7 Feb 2005 20:46:19 +0000 (20:46 +0000)]
More white space diff reduction with FreeBSD.

15 years agogdb-6 uses /dev/kmem exclusively for kernel addresses when gdb'ing a live
Matthew Dillon [Mon, 7 Feb 2005 20:39:01 +0000 (20:39 +0000)]
gdb-6 uses /dev/kmem exclusively for kernel addresses when gdb'ing a live
kernel, but the globaldata mapping is outside the bounds of kernel_map.
Make sure that the globaldata mapping is visible to it.

15 years ago- Reduce white space diffs with FreeBSD.
Max Okumoto [Mon, 7 Feb 2005 20:11:54 +0000 (20:11 +0000)]
- Reduce white space diffs with FreeBSD.

15 years ago- Reduce white space diffs after harti commited my change to FreeBSD.
Max Okumoto [Mon, 7 Feb 2005 20:09:45 +0000 (20:09 +0000)]
- Reduce white space diffs after harti commited my change to FreeBSD.
- Removed extra scope.

15 years ago- Remove two unnecessary headers
Liam J. Foy [Mon, 7 Feb 2005 18:00:46 +0000 (18:00 +0000)]
- Remove two unnecessary headers

15 years ago- Use a temp variable to simplify long condition in if-statement.
Max Okumoto [Sun, 6 Feb 2005 23:58:23 +0000 (23:58 +0000)]
- Use a temp variable to simplify long condition in if-statement.

15 years ago- Eliminate duplicate code.
Max Okumoto [Sun, 6 Feb 2005 23:56:21 +0000 (23:56 +0000)]
- Eliminate duplicate code.

15 years ago- cleanup Var_Parse() by removing negtive logic in if statement.
Max Okumoto [Sun, 6 Feb 2005 23:54:55 +0000 (23:54 +0000)]
- cleanup Var_Parse() by removing negtive logic in if statement.

15 years agoDon't cast lvavalues.
Joerg Sonnenberger [Sun, 6 Feb 2005 23:26:43 +0000 (23:26 +0000)]
Don't cast lvavalues.

15 years ago- Remove redundent code. Why check for isupper before a
Max Okumoto [Sun, 6 Feb 2005 23:22:04 +0000 (23:22 +0000)]
- Remove redundent code. Why check for isupper before a
  case statement where you only have upper case values.

15 years ago- Define new typedef VarModifyProc and use it to clarify the code.
Max Okumoto [Sun, 6 Feb 2005 23:17:16 +0000 (23:17 +0000)]
- Define new typedef VarModifyProc and use it to clarify the code.

15 years agoMoved WARNS?=6 out of subdir Makefiles in to src/bin/Makefile.inc.
Max Okumoto [Sun, 6 Feb 2005 06:16:40 +0000 (06:16 +0000)]
Moved WARNS?=6 out of subdir Makefiles in to src/bin/Makefile.inc.
Subdir that need lower values should set WARNS instead.

15 years agoMove WARNS?=6 into src/bin/Makefile.inc instead of having it set
Max Okumoto [Sun, 6 Feb 2005 06:12:32 +0000 (06:12 +0000)]
Move WARNS?=6 into src/bin/Makefile.inc instead of having it set
in all the subdir Makefiles.  Subdirectories that fail WARNS=6
should have lower values to override.

15 years agoAdd missing */.
Joerg Sonnenberger [Sun, 6 Feb 2005 02:00:23 +0000 (02:00 +0000)]
Add missing */.

Noticed-by: corecode
15 years agoRemove the conditionalized FreeBSD 5 code. Keep the capability assignment,
Joerg Sonnenberger [Sat, 5 Feb 2005 23:23:25 +0000 (23:23 +0000)]
Remove the conditionalized FreeBSD 5 code. Keep the capability assignment,
even if we currently don't use it.

15 years agoDuring init time, we can savely allocate the mbuf cluster with
Joerg Sonnenberger [Sat, 5 Feb 2005 23:16:42 +0000 (23:16 +0000)]
During init time, we can savely allocate the mbuf cluster with
MB_WAIT. Pass the flag to em_get_buf to allow this.

15 years agoAdd a macro SYSCTL_SET_CHILDREN. Use it to avoid lhs cast.
Joerg Sonnenberger [Sat, 5 Feb 2005 23:04:28 +0000 (23:04 +0000)]
Add a macro SYSCTL_SET_CHILDREN. Use it to avoid lhs cast.

15 years ago- Add support for DT_FLAGS.
Joerg Sonnenberger [Sat, 5 Feb 2005 22:54:49 +0000 (22:54 +0000)]
- Add support for DT_FLAGS.
- Define various things from the most recent ELF spec.

rtld.c, 1.83
rtld.h, 1.28
map_object.c, 1.14
sys/elf_common.h, 1.12

15 years agoDo initialise fp to NULL explicitly, the last comment wasn't enough.
Joerg Sonnenberger [Sat, 5 Feb 2005 22:20:20 +0000 (22:20 +0000)]
Do initialise fp to NULL explicitly, the last comment wasn't enough.
The first conditional can fail and the variable points to some random
place.

15 years ago- Remove mode argument from open().
Liam J. Foy [Sat, 5 Feb 2005 16:07:08 +0000 (16:07 +0000)]
- Remove mode argument from open().

15 years agoRaise WARNS to 6:
Chris Pressey [Sat, 5 Feb 2005 01:05:12 +0000 (01:05 +0000)]
Raise WARNS to 6:
- Move the print() function above the display() function so that it can
  be inlined by the compiler.
- Un-nest extern declarations; put them into the shared header file.
- Initialize some local variables.

15 years ago- Reduce diffs from FreeBSD.
Max Okumoto [Sat, 5 Feb 2005 00:58:47 +0000 (00:58 +0000)]
- Reduce diffs from FreeBSD.

15 years ago- make a temporary copy of the name because Var_Subst insists on
Max Okumoto [Fri, 4 Feb 2005 23:32:09 +0000 (23:32 +0000)]
- make a temporary copy of the name because Var_Subst insists on
  writing into the string

15 years ago- Pass NULL to brk_string() when we don't need the number
Max Okumoto [Fri, 4 Feb 2005 23:18:42 +0000 (23:18 +0000)]
- Pass NULL to brk_string() when we don't need the number
  of result strings.

15 years agoReadd the copystr for f_mntfromname of root. It wasn't meant to be
Joerg Sonnenberger [Fri, 4 Feb 2005 23:16:28 +0000 (23:16 +0000)]
Readd the copystr for f_mntfromname of root. It wasn't meant to be
deleted, but didn't change normal system behaviour. In case of an
unclean root filesystem, it prevented the remounting.

15 years ago- Fix syntax error. That I added. :-P
Max Okumoto [Fri, 4 Feb 2005 23:09:06 +0000 (23:09 +0000)]
- Fix syntax error.  That I added. :-P

15 years ago- In main.c use NULL instead of 0
Max Okumoto [Fri, 4 Feb 2005 22:35:42 +0000 (22:35 +0000)]
- In main.c use NULL instead of 0
- In str.c check if brk_string() is passed a null pointer in
  store_argc.  If so then don't return argc.

Taken-from: FreeBSD

15 years agoStop caring about GCC versions between 2.5 and 2.7, they are
Joerg Sonnenberger [Fri, 4 Feb 2005 22:28:23 +0000 (22:28 +0000)]
Stop caring about GCC versions between 2.5 and 2.7, they are
historic artefacts.
Remove a double define of __func__ from the !LINT case.
Define __func__ to NULL for GCC before 2.7 and non ISO C99 compilers.
Since all GCC versions above 2.95 support __restrict, include them
in the check too. Remove the weak defines for !__STDC__, we don't
support such a setting.
If _C99_SOURCE is set, don't include POSIX / BSD / XSI extensions.

Partly-submitted-by: Andreas Hauser <andy@splashground.de>
15 years ago- Constify Var_Delete()
Max Okumoto [Fri, 4 Feb 2005 22:06:01 +0000 (22:06 +0000)]
- Constify Var_Delete()
- And more white space work

15 years ago- Removed unneeded variable 'internal'.
Max Okumoto [Fri, 4 Feb 2005 21:53:47 +0000 (21:53 +0000)]
- Removed unneeded variable 'internal'.

15 years ago- Revert some white space changes, to keep us in sync with FreeBSD.
Max Okumoto [Fri, 4 Feb 2005 21:45:36 +0000 (21:45 +0000)]
- Revert some white space changes, to keep us in sync with FreeBSD.
- Move Buf_Clear() to end of file (why?) to keep us in sycn with FreeBSD.

15 years agoRaise WARNS to 6:
Chris Pressey [Fri, 4 Feb 2005 21:32:55 +0000 (21:32 +0000)]
Raise WARNS to 6:
- ANSIfy function arguments.

15 years agoRaise WARNS to 6.
Chris Pressey [Fri, 4 Feb 2005 21:30:42 +0000 (21:30 +0000)]
Raise WARNS to 6.