16 years agoUse rtld's TLS interface to allocate tcb.
David Xu [Tue, 22 Mar 2005 23:07:24 +0000 (23:07 +0000)]
Use rtld's TLS interface to allocate tcb.

16 years agoAdd support for TLS.
David Xu [Tue, 22 Mar 2005 22:56:36 +0000 (22:56 +0000)]
Add support for TLS.

Obtained from : FreeBSD

16 years agoStart working on the full-duplex journaling feature, where the target can
Matthew Dillon [Tue, 22 Mar 2005 22:13:33 +0000 (22:13 +0000)]
Start working on the full-duplex journaling feature, where the target can
acknowledge the sequence space to prevent information loss if a journaling
stream is interrupted.  Implement a skeleton for the receiver thread.

Delete journals associated with a mount point that is undergoing an unmount.
(reported-by: Fabian <fabian.duelli@bluewin.ch>)

16 years agoDo not allow the journaling descriptor to be a regular file on the same
Matthew Dillon [Tue, 22 Mar 2005 21:42:39 +0000 (21:42 +0000)]
Do not allow the journaling descriptor to be a regular file on the same
filesystem that is being journaled.  This doesn't catch loops, but it
should catch the most common foot shooting case.

Reported-by: Fabian <fabian.duelli@bluewin.ch>
16 years agoFix a minor bug in pass*) generation. 'units' was not properly optioned.
Matthew Dillon [Tue, 22 Mar 2005 18:36:50 +0000 (18:36 +0000)]
Fix a minor bug in pass*) generation.  'units' was not properly optioned.

Submitted-by: Joerg Anslik <joerg@anslik.de>
16 years agoFixed indent for structure
Max Okumoto [Tue, 22 Mar 2005 11:29:49 +0000 (11:29 +0000)]
Fixed indent for structure

FreeBSD-Date: 2005/03/22 08:00:02
Author: harti

16 years agoRewrite a good chunk of MAKEDEV, commonizing paths, cleaning up device
Matthew Dillon [Tue, 22 Mar 2005 00:40:54 +0000 (00:40 +0000)]
Rewrite a good chunk of MAKEDEV, commonizing paths, cleaning up device
generation, and adding support for a /etc/devices.conf file to allow
custom owner/group/perms to be set.

Submitted-by: Joerg Anslik <joerg@anslik.de>
16 years agoInclude sys/types.h to make it self-contained.
Joerg Sonnenberger [Mon, 21 Mar 2005 23:08:55 +0000 (23:08 +0000)]
Include sys/types.h to make it self-contained.

16 years agoPick up changes in rev 1.8 of src/sys/dev/ic/mpt_netbsd.c from NetBSD.
Matthew Dillon [Mon, 21 Mar 2005 22:08:41 +0000 (22:08 +0000)]
Pick up changes in rev 1.8 of src/sys/dev/ic/mpt_netbsd.c from NetBSD.
Set the DMA SGL length correctly if the DMA request must be chained because
it is too large to fit in one SGL.

This should fix this driver for some Dell Precision systems.

Obtained-from: FreeBSD
Originally-from: NetBSD

16 years agoFix a crash in the firewire / DCONS code that occurs when the crom data
Matthew Dillon [Mon, 21 Mar 2005 22:07:24 +0000 (22:07 +0000)]
Fix a crash in the firewire / DCONS code that occurs when the crom data
block is empty.  This case isn't supposed to happen but apparently
it can happen when two machines are connected together via a firewire
cable and one machine is rebooting.  Either the data block is cleared before
the reboot occurs, or the other machines manages to poll the first one
while it is booting and the data block is empty.

The actual problem causing the empty data block has not been tracked down.

16 years ago- Remove unused variable
Liam J. Foy [Mon, 21 Mar 2005 19:26:14 +0000 (19:26 +0000)]
- Remove unused variable

Good old: Samuel J. Greear <sjg@evilcode.net>

16 years agoCheck for the signal handlers another time, they might not disrupt
Joerg Sonnenberger [Mon, 21 Mar 2005 19:20:57 +0000 (19:20 +0000)]
Check for the signal handlers another time, they might not disrupt
the recvmsg.

16 years agoDefer work from the signal handlers into the main loop.
Joerg Sonnenberger [Mon, 21 Mar 2005 19:18:51 +0000 (19:18 +0000)]
Defer work from the signal handlers into the main loop.

Submitted-by: Samuel J. Greear <sjg@evilcode.net>
16 years agoNo more Alpha support for RTLD.
Joerg Sonnenberger [Mon, 21 Mar 2005 18:25:22 +0000 (18:25 +0000)]
No more Alpha support for RTLD.

16 years agoFix reboot -k, it didn't truncate /boot/nextboot.conf.
Joerg Sonnenberger [Mon, 21 Mar 2005 17:57:54 +0000 (17:57 +0000)]
Fix reboot -k, it didn't truncate /boot/nextboot.conf.

Submitted-by: Gary Allan <dragonfly@gallan.plus.com>
16 years agoint size --> size_t size
Joerg Sonnenberger [Mon, 21 Mar 2005 17:11:38 +0000 (17:11 +0000)]
int size --> size_t size

16 years agoAdjust userland prototypes as well.
Joerg Sonnenberger [Mon, 21 Mar 2005 17:09:52 +0000 (17:09 +0000)]
Adjust userland prototypes as well.

16 years ago- sysctl(3), sethostname(3) and malloc(3) set errno, use it!
Liam J. Foy [Mon, 21 Mar 2005 16:59:31 +0000 (16:59 +0000)]
- sysctl(3), sethostname(3) and malloc(3) set errno, use it!
- Don't bother duplicating strings, just use optarg
- Use herror(3) when reporting an error for gethostbyaddr(3)
- Remove unnecessary header

16 years agoregen
Joerg Sonnenberger [Mon, 21 Mar 2005 16:47:49 +0000 (16:47 +0000)]

16 years agoChange prototype of sys_set_tls_area and sys_get_tls_area to take
Joerg Sonnenberger [Mon, 21 Mar 2005 16:45:08 +0000 (16:45 +0000)]
Change prototype of sys_set_tls_area and sys_get_tls_area to take
the size argument as size_t.

16 years agoAdd Windoz autorun support to the CD to automatically pop up a browser with a
Matthew Dillon [Mon, 21 Mar 2005 05:46:40 +0000 (05:46 +0000)]
Add Windoz autorun support to the CD to automatically pop up a browser with a
nice DragonFly information page and hotlinks to various DFly resources.

Submitted-by: Eduardo Tongson <propolice@gmail.com>
16 years agoPunctuation, formatting, grammar, and spelling nits.
Chris Pressey [Mon, 21 Mar 2005 04:52:34 +0000 (04:52 +0000)]
Punctuation, formatting, grammar, and spelling nits.

16 years agoUpdate the information regarding the installer and the pfi
Chris Pressey [Mon, 21 Mar 2005 04:07:13 +0000 (04:07 +0000)]
Update the information regarding the installer and the pfi
boot-configuration system.

16 years agoUpdate installer to version 1.1.5. Highlights include:
Chris Pressey [Mon, 21 Mar 2005 03:58:04 +0000 (03:58 +0000)]
Update installer to version 1.1.5.  Highlights include:

- ESC key can be used to return to previous form or menu.
- Better error dialog when network can't be configured as specified.
- Fixed a case where "Configure an Installed System" could fail due
  to the device node not existing (added an appropriate MAKEDEV)
- A friendly 'splash screen' (index.html) installed for CGI frontend.

16 years agoWhen doing Limited Transmit, don't retract snd_nxt if it was previously
Jeffrey Hsu [Mon, 21 Mar 2005 01:56:22 +0000 (01:56 +0000)]
When doing Limited Transmit, don't retract snd_nxt if it was previously
the same as snd_max.

Submitted by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>

16 years agoEnsure that Limited Transmit always sends new data, even after a
Jeffrey Hsu [Mon, 21 Mar 2005 01:49:43 +0000 (01:49 +0000)]
Ensure that Limited Transmit always sends new data, even after a
retransmission timeout.

Reported by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>

16 years agoOverride _kevent, not kevent. This should fix the DNS issue, since
Joerg Sonnenberger [Sun, 20 Mar 2005 18:45:15 +0000 (18:45 +0000)]
Override _kevent, not kevent. This should fix the DNS issue, since
the libc resolver was calling _kevent directly, which prevented
libc_r from switching to another thread.

Suggested-by: Jonathan Lemon
Problem-reports: Brock Johnson, Laurent Sartran and others
Special-thanks-to: Laurent Sartran for tracking down the timeframe

16 years agoAdd kqueue overwrite for libc_r. We have to trace the opened descriptor.
Joerg Sonnenberger [Sun, 20 Mar 2005 17:46:31 +0000 (17:46 +0000)]
Add kqueue overwrite for libc_r. We have to trace the opened descriptor.

Obtained-from: FreeBSD

16 years agoMinor style changes.
Joerg Sonnenberger [Sun, 20 Mar 2005 14:57:28 +0000 (14:57 +0000)]
Minor style changes.

16 years ago- Style(9)
Liam J. Foy [Sun, 20 Mar 2005 14:07:43 +0000 (14:07 +0000)]
- Style(9)
- Bump WARNS to 6

Submitted by: Sepherosa Ziehau <sepherosa@softhome.net>

16 years agopatch-7.163
Max Okumoto [Sun, 20 Mar 2005 12:25:40 +0000 (12:25 +0000)]
 Use VarParse() instead of Var_Parse() wapper within var.c

16 years agopatch-7.162
Max Okumoto [Sun, 20 Mar 2005 12:25:19 +0000 (12:25 +0000)]
  Use the same names for variables passed to Var_Parse().

16 years agopatch-7.161
Max Okumoto [Sun, 20 Mar 2005 12:24:40 +0000 (12:24 +0000)]
 Use same code structure for code using VarFind().

16 years agotch-7.160
Max Okumoto [Sun, 20 Mar 2005 12:24:13 +0000 (12:24 +0000)]
 Removed some extra parans.

16 years agopatch-7.158
Max Okumoto [Sun, 20 Mar 2005 12:23:53 +0000 (12:23 +0000)]
- Change VarGetPattern() to return a Buffer object.
- Change struct VarPattern to store Buffer objects instead of
  a 'char *' and len.

16 years agopatch-7.157
Max Okumoto [Sun, 20 Mar 2005 12:23:25 +0000 (12:23 +0000)]
  Use lhs field in VarPattern object instead of variable re.

16 years agopatch-7.156
Max Okumoto [Sun, 20 Mar 2005 12:22:46 +0000 (12:22 +0000)]
  Merge struct VarPattern and struct VarREPattern.  This will help
  factor out more common code.

16 years agoAdd the pfi_curses_escdelay variable. When using the curses frontend,
Chris Pressey [Sun, 20 Mar 2005 03:54:01 +0000 (03:54 +0000)]
Add the pfi_curses_escdelay variable.  When using the curses frontend,
this variable determines the amount of time, in milliseconds, that
must pass after ESC is pressed, in order for it to be recognized as a
plain ESC keystroke and not as the start of an escape code.  See the
ESCDELAY entry in the ncurses manual page for more information.

16 years agoClean up Var_SetEnv().
Max Okumoto [Sun, 20 Mar 2005 00:44:45 +0000 (00:44 +0000)]
Clean up Var_SetEnv().

16 years agoRemove unused version.
YONETANI Tomokazu [Sat, 19 Mar 2005 19:49:05 +0000 (19:49 +0000)]
Remove unused version.

16 years agoUpdate ACPI build wrappers to use new ACPICA(20050309) code.
YONETANI Tomokazu [Sat, 19 Mar 2005 19:38:31 +0000 (19:38 +0000)]
Update ACPI build wrappers to use new ACPICA(20050309) code.
The previously imported version(20050211) still had
AE_AML_BUFFER_LIMIT issue, which was fixed in the release
made just after the import.

16 years agoImport acpica-20050309 from Intel.
YONETANI Tomokazu [Sat, 19 Mar 2005 19:24:31 +0000 (19:24 +0000)]
Import acpica-20050309 from Intel.


16 years agoFix order for SI_SUB_TUNABLES.
Sascha Wildner [Sat, 19 Mar 2005 18:57:34 +0000 (18:57 +0000)]
Fix order for SI_SUB_TUNABLES.

16 years ago- Make sure we call exit() after clnt_pcreateerror()
Liam J. Foy [Sat, 19 Mar 2005 17:43:18 +0000 (17:43 +0000)]
- Make sure we call exit() after clnt_pcreateerror()
- Better parsing of passed options
- Fix (xdrproc_t) warnings
- Bump WARNS 6

16 years agoAdd /etc/firmware, remove /etc/gnats.
Joerg Sonnenberger [Sat, 19 Mar 2005 14:56:08 +0000 (14:56 +0000)]
Add /etc/firmware, remove /etc/gnats.

16 years agoGeneric firmware support. Currently implemented is loading from
Joerg Sonnenberger [Sat, 19 Mar 2005 14:54:50 +0000 (14:54 +0000)]
Generic firmware support. Currently implemented is loading from
/etc/firmware, support kernel builtin images and kernel modules
will follow later.

Written-by: Johannes Hofmann and Joerg Sonnenberger
16 years agoReindent stripvarname() to use 8 space tabs.
Max Okumoto [Sat, 19 Mar 2005 10:44:07 +0000 (10:44 +0000)]
Reindent stripvarname() to use 8 space tabs.

16 years agopatch-7.155
Max Okumoto [Sat, 19 Mar 2005 00:21:19 +0000 (00:21 +0000)]
Sort function proto types

16 years agopatch-7.154
Max Okumoto [Sat, 19 Mar 2005 00:20:55 +0000 (00:20 +0000)]
Fix indent VarPattern in var.h

16 years agopatch-7.151
Max Okumoto [Sat, 19 Mar 2005 00:19:55 +0000 (00:19 +0000)]
- Use Buf_Data() to simplify code.
- Use Buf_Peel() to simplify code.

16 years agopatch-7.150
Max Okumoto [Sat, 19 Mar 2005 00:19:13 +0000 (00:19 +0000)]
- Use Buf_Data() to simplify code.
- Use Buf_Peel() to simplify code.

16 years agopatch-7.149
Max Okumoto [Sat, 19 Mar 2005 00:18:50 +0000 (00:18 +0000)]
       - Use Buf_Data() to simplify code.
       - Use Buf_Peel() to simplify code.

16 years agopatch-7.148
Max Okumoto [Sat, 19 Mar 2005 00:18:28 +0000 (00:18 +0000)]
 Removed warning by using Buf_Peel() to simplify code.

16 years agopatch-7.147
Max Okumoto [Sat, 19 Mar 2005 00:18:01 +0000 (00:18 +0000)]
 Sort function declarations in buf.h

16 years agopatch-7.146
Max Okumoto [Sat, 19 Mar 2005 00:17:40 +0000 (00:17 +0000)]
 Add new functions:
       Buf_Data() - return a reference to the data contained in the buffer.
       Buf_AppendBuf(a, b) - append a copy of thecontent of b into a.

16 years agopatch-7.145
Max Okumoto [Sat, 19 Mar 2005 00:17:07 +0000 (00:17 +0000)]
 Replace redundent code with calls to VarGetPattern().

16 years agopatch-7.144
Max Okumoto [Sat, 19 Mar 2005 00:16:19 +0000 (00:16 +0000)]
       Removed unreachable code, VAR_NOSUBST is never set.

16 years agopatch-7.143
Max Okumoto [Sat, 19 Mar 2005 00:15:44 +0000 (00:15 +0000)]
       - Update vp->ptr instead of using temp variable.
       - Renamed variable pattern to patt.

16 years agoForced commit to supply a proper message for the previous change.
Sascha Wildner [Fri, 18 Mar 2005 23:20:34 +0000 (23:20 +0000)]
Forced commit to supply a proper message for the previous change.

1) Clean up:
* Traditional function declarations -> prototype form
* Remove unnecessary void casts
* Use '\0' where '\0' is meant
* Add some extra spaces
* include <stdlib.h> for exit()
* Add $DragonFly$ to Makefile

2) Raise WARNS to 6

16 years agoFreeBSD-Date: 2005/03/18 15:23:49
Max Okumoto [Fri, 18 Mar 2005 22:12:47 +0000 (22:12 +0000)]
FreeBSD-Date: 2005/03/18 15:23:49
FreeBSD-Date: 2005/03/18 15:25:23
Author: harti

o Replace a bogus use of Lst_Find with explicite LST_FOREACH calls
  and remove the unneeded second argument to ReadMakefile.

o Replace Lst_Find calls with LST_FOREACH loops. This helps in
  constification and simplifies the code because the one-liner
  predicates can be inlined into the code.

16 years ago- Correct usage of gethostname(3)
Liam J. Foy [Fri, 18 Mar 2005 22:08:08 +0000 (22:08 +0000)]
- Correct usage of gethostname(3)
- strlcpy

16 years agoFix dangling ref to auto variable.
Max Okumoto [Fri, 18 Mar 2005 18:39:07 +0000 (18:39 +0000)]
Fix dangling ref to auto variable.

16 years agoAdd a sysctl "net.inet.tcp.aggregate_acks" which controls the tcp ack
Matthew Dillon [Fri, 18 Mar 2005 18:29:05 +0000 (18:29 +0000)]
Add a sysctl "net.inet.tcp.aggregate_acks" which controls the tcp ack
aggregation feature, default to on.  This feature was added a while
back and most systems will want to leave it on.  The feature only effects
situations where TCP packets are aggregated by e.g. a GigE interface or a
router talking to a GigE interface and allows the tcp stack to send just
one ack after receiving a large burst (~8-10) of tcp packets rather then
sending four or five back-to-back acks.  The single ack actually gets the
sequence space updated more quickly on the other end as well as greatly
reduces the PPS rate and bandwidth used by the return channel.  Protocol
stacks on both ends are also made more efficient due to the fewer acks that
need to be sent and received.

The feature has one side-effect which warrents having the sysctl.  The
slow-start exponential ramp-up takes longer to ramp-up due to the lower
ack rate, reducing tcp bandwidth at the beginning of the connection (but
not once it gets going).  This ONLY effects links which huge bandwidth-delay
products (like 100ms x 100MBits), and then only for a short time, and
even in such cases the difference is not usually noticeable except when
explicitly tested for.  LANs and most WAN links are NOT effected.   The
positive aspects greatly outweight the negative ones in most cases and
sysops will almost always want to leave the feature on.

Delayed-Ack-Analysis-by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>
16 years agoPatch originally from Matt, then modified by harti.
Max Okumoto [Fri, 18 Mar 2005 18:21:10 +0000 (18:21 +0000)]
Patch originally from Matt, then modified by harti.

FreeBSD-Date: 2005/03/18 15:16:09
Author: matt, harti

Fix a bug in matching suffixes. Under certain circumstances the code
would access memory before the beginning of the string to match (the
suffix match starts at the end of both the string and the suffix and
proceedes to the begin until either the start of the suffix is hit
or the character does not match). This could lead to a memcpy copying
into random memory. Fix this by checking the length of the string to
match too and replacing the Lst_Find calls with LST_FOREACH loops
(last part by harti).

16 years ago../../../ppt.msg
Sascha Wildner [Fri, 18 Mar 2005 17:42:46 +0000 (17:42 +0000)]

16 years agoRaise WARNS to 6:
Chris Pressey [Fri, 18 Mar 2005 01:57:58 +0000 (01:57 +0000)]
Raise WARNS to 6:
- Constify some char *'s.
- Mark parameters as unused in callback function.

16 years agoWARNS=6.
Joerg Sonnenberger [Fri, 18 Mar 2005 00:57:10 +0000 (00:57 +0000)]

Partly-submitted-by: Samuel J. Greear <sjg@evilcode.net>
16 years agoWARNS=6.
Joerg Sonnenberger [Fri, 18 Mar 2005 00:52:49 +0000 (00:52 +0000)]

Submitted-by: Samuel J. Greear <sjg@evilcode.net>
16 years agoAdd RCNG support for setting the negative attribute cache timeout, make
Matthew Dillon [Thu, 17 Mar 2005 22:25:46 +0000 (22:25 +0000)]
Add RCNG support for setting the negative attribute cache timeout, make
the boot-time display of nfs client parameters more readable, and properly
document the nfs_access_cache and nfs_neg_cache RCNG configuration variables.

Increase the default NFS attribute cache timeout from 2 to 5 seconds.

16 years agoIgnore additional stty control characters like ^Y which interfere with
Matthew Dillon [Thu, 17 Mar 2005 21:41:16 +0000 (21:41 +0000)]
Ignore additional stty control characters like ^Y which interfere with
the editor's operation.

Reported-by: Jasse Jansson <jasse@hornet.ac>
16 years agoTesting a new commits monitoring script.
David Rhodus [Thu, 17 Mar 2005 20:59:34 +0000 (20:59 +0000)]
Testing a new commits monitoring script.

16 years agoUnbreak the pkg_add -r which the last commit broke.
David Rhodus [Thu, 17 Mar 2005 20:53:55 +0000 (20:53 +0000)]
Unbreak the pkg_add -r which the last commit broke.

16 years agoClean up a number of caching edge cases in NFS, rework the code to be
Matthew Dillon [Thu, 17 Mar 2005 17:28:46 +0000 (17:28 +0000)]
Clean up a number of caching edge cases in NFS, rework the code to be
a bit more readable, document some bits, and fix some cache coherency
detection issues.  The caching cleanups should allow the NFS client to
retain more of the NFS cache when doing complex operations on a file.

* Properly check and update the mtime using WCC records in the NFS response.
  This record gives us the 'before' and 'after' mtime.  The 'before' mtime
  must match our existing idea of the mtime, if it doesn't we flag the
  nfsnode as having been modified by the server.  Our notion of the mtime
  is then set to the 'after time.  This was not being done properly for
  several edge cases.

  This required extending the nfsm macros a bit in order to be able to tell
  loadattrcache how to handle the mtime data.  This also required rearranging
  (really fixing) the sequence in nfs_open(), nfs_write(), etc.

* Rearrange the flags a bit.  NSIZECHANGED -> NRMODIFIED (nfsnode modified
  by server), NMODIFIED -> NLMODIFIED (nfsnode modified by client).  Do
  not clear NRMODIFIED until we have actually invalidated the cache (this
  fixes a problem where programs using mmap() were not properly clearing
  the cache after a file was modified on the server).

* Don't code NRMODIFIED as an exception to NLMODIFIED.  Recode the flags so
  they (mostly) operate in tandem.

* When appending to a file, use nfs_flush() instead of nfs_vinvalbuf().
  There is no need to destroy our data cache for the file.  This makes
  appends considerably more efficient.

* Hopefully fix the last problem associated with attribute timeouts.

* Clear the attribute cache when a file is opened for write in nfs_open()
  BEFORE doing other checks rather then after.

* Document some of the nastier cache coherency hacks.

16 years agoFix warnings. Raise WARNS to 6.
Joerg Sonnenberger [Thu, 17 Mar 2005 15:39:34 +0000 (15:39 +0000)]
Fix warnings. Raise WARNS to 6.

Submitted-by: Samuel J. Greear <sjg@evilcode.net>
Add some explicit XXX comments about the signal handlers,
they have to be rewritten.

16 years agoUse a common source for the string to integer conversion. Add
Joerg Sonnenberger [Thu, 17 Mar 2005 15:09:01 +0000 (15:09 +0000)]
Use a common source for the string to integer conversion. Add
strtoimax and strtoumax.

Inspired-by: wide char versions.
16 years agoNow that make no longer needs it, remove the ispc98 sysctl.
Sascha Wildner [Thu, 17 Mar 2005 08:22:38 +0000 (08:22 +0000)]
Now that make no longer needs it, remove the ispc98 sysctl.

16 years agoNow that const'ification of users of dktypenames also const'ified
YONETANI Tomokazu [Thu, 17 Mar 2005 07:11:15 +0000 (07:11 +0000)]
Now that const'ification of users of dktypenames also const'ified
most of users of fstypenames, finish the last bit of const'ification.

16 years agoRemove pc98 support as a gift to Sascha Wildner :-)
Max Okumoto [Thu, 17 Mar 2005 02:34:31 +0000 (02:34 +0000)]
Remove pc98 support as a gift to Sascha Wildner :-)

16 years agoClose a possible security hole by using strvis() when displaying td_comm.
Matthew Dillon [Thu, 17 Mar 2005 02:17:54 +0000 (02:17 +0000)]
Close a possible security hole by using strvis() when displaying td_comm.

16 years agoFix a potential security hole by outputing non-printable characters related
Matthew Dillon [Thu, 17 Mar 2005 02:01:12 +0000 (02:01 +0000)]
Fix a potential security hole by outputing non-printable characters related
to file names or program commands as '?'.

16 years agopatch-7.142
Max Okumoto [Wed, 16 Mar 2005 22:50:06 +0000 (22:50 +0000)]
        Update vp->ptr instead of using temp variable.

16 years agopatch-7.141
Max Okumoto [Wed, 16 Mar 2005 22:49:51 +0000 (22:49 +0000)]
        Update vp->ptr instead of using temp variable.

16 years agopatch-7.140
Max Okumoto [Wed, 16 Mar 2005 22:49:01 +0000 (22:49 +0000)]
        - Removed comment about assuming that Var_Parse() is always
          passed '$' as first char.  Sometimes is is the last character
          of a conditional (e.g., defined(DragonFly), etc.)
        - Clean up some comments.
        - Moved common code out of if-statement.

16 years agopatch-7.139
Max Okumoto [Wed, 16 Mar 2005 22:48:47 +0000 (22:48 +0000)]
        Split out sysVvarsub() from ParseModifier()

16 years agopatch-7.138
Max Okumoto [Wed, 16 Mar 2005 22:48:31 +0000 (22:48 +0000)]
        - renamed freePtr to freeResult.

16 years agopatch-7.137
Max Okumoto [Wed, 16 Mar 2005 22:48:15 +0000 (22:48 +0000)]
        - Cleanup comments
        - Moved code from bottom of ParseModifier() in to calling function.

16 years agopatch-7.136
Max Okumoto [Wed, 16 Mar 2005 22:47:47 +0000 (22:47 +0000)]
 Clean up handling of VAR_JUNK.

16 years agoFix a bugaboo in the last commit. We cannot safely modify n_mtime based
Matthew Dillon [Wed, 16 Mar 2005 22:17:59 +0000 (22:17 +0000)]
Fix a bugaboo in the last commit.  We cannot safely modify n_mtime based
on the server indicating that it has changed without also flushing the
vnode's buffers.   Otherwise we end up with stale data in the buffer cache
and the client unaware that it is stale.  Since we do not want to flush
the buffers in the getattr code we instead simply mark the nfs node
NSIZECHANGED which will flush the buffers on the next read.

16 years agoRaise WARNS to 6.
Chris Pressey [Wed, 16 Mar 2005 21:26:01 +0000 (21:26 +0000)]
Raise WARNS to 6.

16 years agoRaise WARNS to 6:
Chris Pressey [Wed, 16 Mar 2005 21:21:34 +0000 (21:21 +0000)]
Raise WARNS to 6:
- Rename local variables to avoid conflict with globals.

16 years agoFreeBSD-Date: 2005/03/16 08:04:45
Max Okumoto [Wed, 16 Mar 2005 20:03:00 +0000 (20:03 +0000)]
FreeBSD-Date: 2005/03/16 08:04:45
FreeBSD-Date: 2005/03/16 08:06:28
FreeBSD-Date: 2005/03/16 12:22:15
FreeBSD-Date: 2005/03/16 16:02:09
FreeBSD-Date: 2005/03/16 16:11:11
Author: harti

o Get rid of another bunch of Lst_ForEach in favour of LST_FOREACH
  and simplify code accordingly.

o Fix a comment.

o Replace another bunch of Lst_ForEachs by LST_FOREACHs and simplify

o Replace Lst_ForEach by LST_FOREACH.

o Now that there are no users of Lst_ForEach and Lst_ForEachFrom are
  left delete these two macros and all the associated stuff.

16 years agoConstify all users of dktypenames to unbreak buildworld.
YONETANI Tomokazu [Wed, 16 Mar 2005 17:54:59 +0000 (17:54 +0000)]
Constify all users of dktypenames to unbreak buildworld.
Reported-by: walt
16 years agoAdd types prgregset_t and psaddr_t which will be used by
David Xu [Wed, 16 Mar 2005 14:30:31 +0000 (14:30 +0000)]
Add types prgregset_t and psaddr_t which will be used by
thread debugging code.

16 years agoStyle(9):
Chris Pressey [Wed, 16 Mar 2005 08:02:05 +0000 (08:02 +0000)]
- Spell NULL as NULL, and '\0' as '\0'.
- Explicitly check non-booleans against 0, '\0', or NULL.

16 years agoStyle(9):
Chris Pressey [Wed, 16 Mar 2005 07:30:33 +0000 (07:30 +0000)]
- Braces around multiline blocks.
- Spell NULL as NULL, not 0.
- Don't treat pointers and ints as booleans; use explicit tests.
- Minor whitespace adjustments.

16 years agoRemove redundant declarations. Convert to ANSI C function declarations.
Joerg Sonnenberger [Wed, 16 Mar 2005 07:22:07 +0000 (07:22 +0000)]
Remove redundant declarations. Convert to ANSI C function declarations.
Convert dates to ISO style.

16 years agoStyle(9):
Chris Pressey [Wed, 16 Mar 2005 07:16:14 +0000 (07:16 +0000)]
- Braces around multiline blocks.
- Space after 'switch'.
- 'errno' is not a boolean, use explicit test.
- Add explanatory comment for an issue which has caused confusion at
  least once in the past.

16 years agoStyle(9):
Chris Pressey [Wed, 16 Mar 2005 07:08:04 +0000 (07:08 +0000)]
- Braces around multiline block.
- Space after 'switch'.
- stat(2), lstat(2), link(2), unlink(2) and symlink(2) don't return
  boolean values; use explicit checks against 0.

16 years agoAdd some more path definitions as used by the Citrus framework.
Joerg Sonnenberger [Wed, 16 Mar 2005 06:56:20 +0000 (06:56 +0000)]
Add some more path definitions as used by the Citrus framework.

16 years agoAdd Citrus files not conflicting with the current rune implementation.
Joerg Sonnenberger [Wed, 16 Mar 2005 06:54:41 +0000 (06:54 +0000)]
Add Citrus files not conflicting with the current rune implementation.

Obtained-from: NetBSD / Citrus Project