18 years agoCorrect a pair of buffer overflows in the telnet(1) command:
David Rhodus [Mon, 28 Mar 2005 18:03:33 +0000 (18:03 +0000)]
Correct a pair of buffer overflows in the telnet(1) command:

CAN-2005-0468) A heap buffer overflow in env_opt_add() and related

(CAN-2005-0469) A global uninitialized data section buffer overflow in
slc_add_reply() and related functions.

As a result of these vulnerabilities, it may be possible for a malicious
telnet server or active network attacker to cause telnet(1) to execute
arbitrary code with the privileges of the user running it.

These fixes are based in part on patches
Submitted by:   Solar Designer <solar@openwall.com>
With calibration with the FreeBSD security officer: Jacques Vidrine <nectar@freebsd.org>

18 years agotest
David Rhodus [Mon, 28 Mar 2005 17:43:50 +0000 (17:43 +0000)]

18 years agoRemove the pre-NEWPCM sound drivers and the speaker-based emulations.
Joerg Sonnenberger [Mon, 28 Mar 2005 14:42:45 +0000 (14:42 +0000)]
Remove the pre-NEWPCM sound drivers and the speaker-based emulations.
In detail the devices css, gus, gusxvi, mpu, mss, opl, pas, sb, snd,
speaker, sscape, sscape_mss, trix and uart are no longer supported.

They are ISA-only devices and the more common devices are supported by
NEWPCM too. speaker and pca collide with the timer use of the default
kernel and have been broken for a while now.

18 years agoRemove redundant panic.
Joerg Sonnenberger [Mon, 28 Mar 2005 14:27:37 +0000 (14:27 +0000)]
Remove redundant panic.

18 years agoCleanup and retool portions of the TLS support and make sure that
Matthew Dillon [Mon, 28 Mar 2005 03:33:20 +0000 (03:33 +0000)]
Cleanup and retool portions of the TLS support and make sure that
non-threaded binaries remain compatible with older kernels.

* Removes the tcb alignment argument.  Instead an alignment #define is
  placed in sys/tls.h

* Gets rid of the Variant I code (we can add it in later, it just gets
  in the way).

* Retools the Variant II code to support %gs:OFFSET (negative offset)
  AND %gs:0 relative accesses, supporting both -mtls-direct-seg-refs and

* Changes the Elf_Addr array for the TCB into a real structure in

* Retains the DTV methodology.

* Retains the TCB methodology, but note that the area 'after' the tcb
  is now available for future use (at least with Variant I removed).
  Frankly I'm not sure we would ever want to support having the
  'data' area after the TCB instead of before the TCB, at least not
  for i386.

* Do not try to call sys_set_tls_area() if there is no TLS storage.
  i.e. so non-threaded binaries remain compatible with old kernels.

  The TLS is only initialized if (a) There is thread local storage, aka
  gcc3's __thread keyword, or (b) The program is linked against a threading
  library.  The threading library makes the appropriate calls to set up the

18 years agoDon't hide the library build's ar/ranlib lines, or shared library link
Matthew Dillon [Mon, 28 Mar 2005 03:25:36 +0000 (03:25 +0000)]
Don't hide the library build's ar/ranlib lines, or shared library link
command sequences.

18 years agoAdd another syscall test, and test cvs commits after loginfo/commitinfo/config
Matthew Dillon [Mon, 28 Mar 2005 03:13:26 +0000 (03:13 +0000)]
Add another syscall test, and test cvs commits after loginfo/commitinfo/config

18 years agotest 2
Matthew Dillon [Mon, 28 Mar 2005 03:09:17 +0000 (03:09 +0000)]
test 2

18 years agologinfo/commitinfo test
Matthew Dillon [Mon, 28 Mar 2005 03:02:54 +0000 (03:02 +0000)]
loginfo/commitinfo test

18 years agoTemporarily back out the last change due to time zone display issues
Matthew Dillon [Mon, 28 Mar 2005 02:40:47 +0000 (02:40 +0000)]
Temporarily back out the last change due to time zone display issues
(e.g. 'PST' not being displayed).  It will be recommitted when the issues
have been fixed.

18 years agoThe old ntpdate displayed the clock error by default. Change rdate to do
Matthew Dillon [Mon, 28 Mar 2005 02:39:57 +0000 (02:39 +0000)]
The old ntpdate displayed the clock error by default.  Change rdate to do
the same thing.

18 years agoDo a better job distributing RPC requests on the NFS server side. This
Matthew Dillon [Sun, 27 Mar 2005 23:51:42 +0000 (23:51 +0000)]
Do a better job distributing RPC requests on the NFS server side.  This
applies to both TCP and UDP mounts.

Previously when multiple requests were received all at once only one would
be immediately distributed to an idle NFSD, causing the requests to be
serialized on the server if no other nfsd's were active at the time and if
no other event occurs to wake up other idle nfsd's.

Now nfsrv_getstream() returns a count of the number of RPCs that were parsed
and multiple NFSDs will be woken up to process them.

Some fine-tuning is still required.  In particular, it is actually less
efficient for the server to wakeup multiple NFSd (at least on a UP machine)
if the requests do not entail I/O.  However, since this only effects client
operations that are issued in parallel (e.g. a make -j build on the client)
I believe the positive aspects outweight the negative ones.

18 years agoFix a bug where the main system clock stops operating. We were using a field
Matthew Dillon [Sun, 27 Mar 2005 19:25:10 +0000 (19:25 +0000)]
Fix a bug where the main system clock stops operating.  We were using a field
in the globaldata structure called gd_nextclock to determine whether a systimer
was queued for a cpu.  This field indicated the next pending timeout for the
systimer on the cpu.  However, at 8254 rates this 32 bit field has a chance of
calculating to 0 once every 1/18 second, which disables the systimer dispatch
on that cpu and can cause the system clocks to stop operating.

Remove the field and replace with a TAILQ_FIRST queue check instead.

The machine dependant part of the systimer implementations needs a better
way to figure out which cpus to dispatch to.

Reported-by: justin@shiningsilence.com
18 years ago- Correct usage of gethostname(3)
Liam J. Foy [Fri, 25 Mar 2005 14:15:23 +0000 (14:15 +0000)]
- Correct usage of gethostname(3)

18 years ago- WARNS 6
Liam J. Foy [Fri, 25 Mar 2005 12:56:48 +0000 (12:56 +0000)]

Submitted by: H}kon Schad Bergsaker <hakonsb@student.matnat.uio.no>

18 years ago${CC}'s here were supposed be used as preprocessor, add -E.
YONETANI Tomokazu [Fri, 25 Mar 2005 11:42:36 +0000 (11:42 +0000)]
${CC}'s here were supposed be used as preprocessor, add -E.

Reported-by: Martin P. Hellwig <mhellwig (a) xs4all.nl>
18 years agoSync with the kernel to make ncptrace work again. CINV_PARENT no longer
Matthew Dillon [Thu, 24 Mar 2005 20:15:11 +0000 (20:15 +0000)]
Sync with the kernel to make ncptrace work again.  CINV_PARENT no longer

18 years agoDisplay additional information about a vnode's object.
Matthew Dillon [Thu, 24 Mar 2005 20:14:42 +0000 (20:14 +0000)]
Display additional information about a vnode's object.

18 years agoFix a server-side TCP NFS mount stream sequencing problem which could result
Matthew Dillon [Thu, 24 Mar 2005 19:58:19 +0000 (19:58 +0000)]
Fix a server-side TCP NFS mount stream sequencing problem which could result
in portions of the TCP stream being parsed out of order, corrupting it and
causing the NFS server to drop the connection.

The TCP protocol stack upcalls into nfsrv_rcv().  The various nfsd threads
also call nfsrv_rcv().  A short blocking condition in the parsing code plus
the blocking lock on the sockbuf (when called via an nfsd) could result in
data from the socket being incorporated into the nfs socket's mbuf chain
out of order.

Reported-by: Andreas Hauser <andy@splashground.de>
18 years agoLicense typo.
Joerg Sonnenberger [Thu, 24 Mar 2005 17:24:04 +0000 (17:24 +0000)]
License typo.

18 years agoAdjust man page sections.
Sascha Wildner [Thu, 24 Mar 2005 12:48:04 +0000 (12:48 +0000)]
Adjust man page sections.

18 years agotcb is now managed by rtld, caching it is not correct,
David Xu [Thu, 24 Mar 2005 12:38:39 +0000 (12:38 +0000)]
tcb is now managed by rtld, caching it is not correct,
otherwise we may get stale copy of tls data from previous
dead thread, caching should be done in rtld if needed.

18 years agoHave the server complain if the NFS rpc stream from a client gets corrupted,
Matthew Dillon [Thu, 24 Mar 2005 06:44:27 +0000 (06:44 +0000)]
Have the server complain if the NFS rpc stream from a client gets corrupted,
so we at least know why the tcp link is reconnecting.  The client already
complains if the NFS rpc stream from a server gets corrupted).

18 years agoImport man pages for pf(4), pflog(4) and pfsync(4) devices.
Simon Schubert [Thu, 24 Mar 2005 01:15:59 +0000 (01:15 +0000)]
Import man pages for pf(4), pflog(4) and pfsync(4) devices.

These are not the latest versions, but those that seem to suit
best with our version of pf.

Reminded-By: "Alexander 'alxl' Lobachov" <alxl@alxl.info>
Obtained-From: OpenBSD

18 years agoUndo last commit. This was not my hisenbug. :-P
Max Okumoto [Wed, 23 Mar 2005 20:58:35 +0000 (20:58 +0000)]
Undo last commit.  This was not my hisenbug. :-P

18 years agoRemove an assertion in bundirty() that requires the buffer to not be on
Matthew Dillon [Wed, 23 Mar 2005 20:37:03 +0000 (20:37 +0000)]
Remove an assertion in bundirty() that requires the buffer to not be on
a queue.  There is a code path in brelse() where the buffer may be put on
a queue prior to calling bundirty().

Reported-by: David Rhodus <sdrhodus@gmail.com>
18 years agoAdditional note to last commit. GCC-3.4 improperly generates a warning
Matthew Dillon [Wed, 23 Mar 2005 19:09:33 +0000 (19:09 +0000)]
Additional note to last commit.  GCC-3.4 improperly generates a warning
and an int $5 for unpromoted conversions (somebody really scewed up in GCC
land if they thought that that was a reasonable solution!)... It really
should generate a fatal error for this case since the traditional varadic
macros were able to handle the case.

18 years agoUse the correct type in va_arg call, char is promoted to int before calling
Joerg Sonnenberger [Wed, 23 Mar 2005 17:22:21 +0000 (17:22 +0000)]
Use the correct type in va_arg call, char is promoted to int before calling
and has to be fetched as such.

18 years agoPass exact number of threads to thr_umtx_wake.
David Xu [Wed, 23 Mar 2005 11:21:02 +0000 (11:21 +0000)]
Pass exact number of threads to thr_umtx_wake.

18 years agoEliminate a redundant variable assignment.
Jeffrey Hsu [Wed, 23 Mar 2005 08:02:46 +0000 (08:02 +0000)]
Eliminate a redundant variable assignment.

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

18 years agoWe can only do upper-layer protocol length checks on the first fragment.
Jeffrey Hsu [Wed, 23 Mar 2005 07:47:40 +0000 (07:47 +0000)]
We can only do upper-layer protocol length checks on the first fragment.

18 years agoCorrect the th_off check against ip_len. The check in ip_demux occurs
Matthew Dillon [Wed, 23 Mar 2005 07:27:56 +0000 (07:27 +0000)]
Correct the th_off check against ip_len.  The check in ip_demux occurs
before ip_len is adjusted so we have to add iphlen into the equation.  We
forgot to do this when the code was originally moved from tcp_input to
ip_demux (in tcp_input the check occurs after ip_len is adjusted).

This fixes a panic assertion in tcp_input when a mangled packet is received.

Reported-by: Joe Talbott <josepht@cstone.net>
18 years agoFixed reference of memory after free.
Max Okumoto [Wed, 23 Mar 2005 05:02:37 +0000 (05:02 +0000)]
Fixed reference of memory after free.

18 years agoBecause destroy_all_dev() checks the mask/match against the device's si_udev,
Matthew Dillon [Wed, 23 Mar 2005 02:50:53 +0000 (02:50 +0000)]
Because destroy_all_dev() checks the mask/match against the device's si_udev,
which is a field combining both major and minor numbers, we must mask off the
major bits (to retain only the minor bits) from the 'mask' variable in order
to allow a generic -1 to be passed as the mask.  Otherwise we will not match

Revamp a good chunk of the documentation to try to make the major/minor
number masking issues clear.

Bug-found-by: Chuck Tuffli <chuck_tuffli@agilent.com>
18 years agoAllow an info.size field of -1 to indicate that the descriptor should map
Matthew Dillon [Wed, 23 Mar 2005 01:13:20 +0000 (01:13 +0000)]
Allow an info.size field of -1 to indicate that the descriptor should map
the entire address space, requires for direct-tls %gs:OFFSET support (where
the OFFSET is negative).  Otherwise the descriptor only maps the specified
range (typically just the TCB area created by the thread library) and %gs:0
must be used to obtain a pointer from which negative relative memory accesses
can be made.

18 years agoReverse the order of dragonfly and FreeBSD since it says right after
Matthew Dillon [Wed, 23 Mar 2005 00:25:18 +0000 (00:25 +0000)]
Reverse the order of dragonfly and FreeBSD since it says right after
it is in alphabetical order.

Submitted-by: Craig Dooley <xlnxminusx@gmail.com>
18 years agoDon't activate -fstrict-aliasing by default, not even with -O2+.
Joerg Sonnenberger [Tue, 22 Mar 2005 23:58:32 +0000 (23:58 +0000)]
Don't activate -fstrict-aliasing by default, not even with -O2+.

18 years agoFix handling of deallocation of dynamic TLS, the previous code could
Joerg Sonnenberger [Tue, 22 Mar 2005 23:54:18 +0000 (23:54 +0000)]
Fix handling of deallocation of dynamic TLS, the previous code could
free random memory after a DSO with TLS segment was unloaded.

18 years agoDon't restart a timeout wait, one can periodically send signal to
David Xu [Tue, 22 Mar 2005 23:42:53 +0000 (23:42 +0000)]
Don't restart a timeout wait, one can periodically send signal to
thread and interval is less than the timeout, then the thread will
never be timeout.

18 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.

18 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

18 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>)

18 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>
18 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>
18 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

18 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>
18 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.

18 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

18 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.

18 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>

18 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.

18 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>
18 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.

18 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>
18 years agoint size --> size_t size
Joerg Sonnenberger [Mon, 21 Mar 2005 17:11:38 +0000 (17:11 +0000)]
int size --> size_t size

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

18 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

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

18 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.

18 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>
18 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.

18 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.

18 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.

18 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>

18 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>

18 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

18 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

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

18 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>

18 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

18 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().

18 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().

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

18 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.

18 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.

18 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.

18 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.

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

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

18 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.

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


18 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.

18 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

18 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.

18 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
18 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.

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

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

18 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.

18 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.

18 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.

18 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.

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

18 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.

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

18 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.

18 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.

18 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

18 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.

18 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