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
functions.
(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>
David Rhodus [Mon, 28 Mar 2005 17:43:50 +0000 (17:43 +0000)]
test
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.
Joerg Sonnenberger [Mon, 28 Mar 2005 14:27:37 +0000 (14:27 +0000)]
Remove redundant panic.
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
-mno-tls-direct-seg-refs.
* Changes the Elf_Addr array for the TCB into a real structure in
sys/tls.h
* 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
TLS.
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.
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
updates.
Matthew Dillon [Mon, 28 Mar 2005 03:09:17 +0000 (03:09 +0000)]
test 2
Matthew Dillon [Mon, 28 Mar 2005 03:02:54 +0000 (03:02 +0000)]
loginfo/commitinfo test
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.
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.
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.
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
Liam J. Foy [Fri, 25 Mar 2005 14:15:23 +0000 (14:15 +0000)]
- Correct usage of gethostname(3)
Liam J. Foy [Fri, 25 Mar 2005 12:56:48 +0000 (12:56 +0000)]
- WARNS 6
Submitted by: H}kon Schad Bergsaker <hakonsb@student.matnat.uio.no>
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>
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
exists.
Matthew Dillon [Thu, 24 Mar 2005 20:14:42 +0000 (20:14 +0000)]
Display additional information about a vnode's object.
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>
Joerg Sonnenberger [Thu, 24 Mar 2005 17:24:04 +0000 (17:24 +0000)]
License typo.
Sascha Wildner [Thu, 24 Mar 2005 12:48:04 +0000 (12:48 +0000)]
Adjust man page sections.
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.
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).
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
Max Okumoto [Wed, 23 Mar 2005 20:58:35 +0000 (20:58 +0000)]
Undo last commit. This was not my hisenbug. :-P
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>
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.
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.
David Xu [Wed, 23 Mar 2005 11:21:02 +0000 (11:21 +0000)]
Pass exact number of threads to thr_umtx_wake.
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>
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.
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>
Max Okumoto [Wed, 23 Mar 2005 05:02:37 +0000 (05:02 +0000)]
Fixed reference of memory after free.
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
anything.
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>
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.
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>
Joerg Sonnenberger [Tue, 22 Mar 2005 23:58:32 +0000 (23:58 +0000)]
Don't activate -fstrict-aliasing by default, not even with -O2+.
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.
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.
David Xu [Tue, 22 Mar 2005 23:07:24 +0000 (23:07 +0000)]
Use rtld's TLS interface to allocate tcb.
David Xu [Tue, 22 Mar 2005 22:56:36 +0000 (22:56 +0000)]
Add support for TLS.
Obtained from : FreeBSD
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>)
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>
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>
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
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>
Joerg Sonnenberger [Mon, 21 Mar 2005 23:08:55 +0000 (23:08 +0000)]
Include sys/types.h to make it self-contained.
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
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.
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>
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.
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>
Joerg Sonnenberger [Mon, 21 Mar 2005 18:25:22 +0000 (18:25 +0000)]
No more Alpha support for RTLD.
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>
Joerg Sonnenberger [Mon, 21 Mar 2005 17:11:38 +0000 (17:11 +0000)]
int size --> size_t size
Joerg Sonnenberger [Mon, 21 Mar 2005 17:09:52 +0000 (17:09 +0000)]
Adjust userland prototypes as well.
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
Joerg Sonnenberger [Mon, 21 Mar 2005 16:47:49 +0000 (16:47 +0000)]
regen
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.
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>
Chris Pressey [Mon, 21 Mar 2005 04:52:34 +0000 (04:52 +0000)]
Punctuation, formatting, grammar, and spelling nits.
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.
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.
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>
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>
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
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
Joerg Sonnenberger [Sun, 20 Mar 2005 14:57:28 +0000 (14:57 +0000)]
Minor style changes.
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>
Max Okumoto [Sun, 20 Mar 2005 12:25:40 +0000 (12:25 +0000)]
patch-7.163
Use VarParse() instead of Var_Parse() wapper within var.c
Max Okumoto [Sun, 20 Mar 2005 12:25:19 +0000 (12:25 +0000)]
patch-7.162
Use the same names for variables passed to Var_Parse().
Max Okumoto [Sun, 20 Mar 2005 12:24:40 +0000 (12:24 +0000)]
patch-7.161
Use same code structure for code using VarFind().
Max Okumoto [Sun, 20 Mar 2005 12:24:13 +0000 (12:24 +0000)]
tch-7.160
Removed some extra parans.
Max Okumoto [Sun, 20 Mar 2005 12:23:53 +0000 (12:23 +0000)]
patch-7.158
- Change VarGetPattern() to return a Buffer object.
- Change struct VarPattern to store Buffer objects instead of
a 'char *' and len.
Max Okumoto [Sun, 20 Mar 2005 12:23:25 +0000 (12:23 +0000)]
patch-7.157
Use lhs field in VarPattern object instead of variable re.
Max Okumoto [Sun, 20 Mar 2005 12:22:46 +0000 (12:22 +0000)]
patch-7.156
Merge struct VarPattern and struct VarREPattern. This will help
factor out more common code.
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.
Max Okumoto [Sun, 20 Mar 2005 00:44:45 +0000 (00:44 +0000)]
Clean up Var_SetEnv().
YONETANI Tomokazu [Sat, 19 Mar 2005 19:49:05 +0000 (19:49 +0000)]
Remove unused version.
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.
YONETANI Tomokazu [Sat, 19 Mar 2005 19:24:31 +0000 (19:24 +0000)]
Import acpica-
20050309 from Intel.
http://developer.intel.com/technology/iapc/acpi/downloads/acpica-unix-
20050309.tar.gz
Sascha Wildner [Sat, 19 Mar 2005 18:57:34 +0000 (18:57 +0000)]
Fix order for SI_SUB_TUNABLES.
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
Joerg Sonnenberger [Sat, 19 Mar 2005 14:56:08 +0000 (14:56 +0000)]
Add /etc/firmware, remove /etc/gnats.
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
Max Okumoto [Sat, 19 Mar 2005 10:44:07 +0000 (10:44 +0000)]
Reindent stripvarname() to use 8 space tabs.
Max Okumoto [Sat, 19 Mar 2005 00:21:19 +0000 (00:21 +0000)]
patch-7.155
Sort function proto types
Max Okumoto [Sat, 19 Mar 2005 00:20:55 +0000 (00:20 +0000)]
patch-7.154
Fix indent VarPattern in var.h
Max Okumoto [Sat, 19 Mar 2005 00:19:55 +0000 (00:19 +0000)]
patch-7.151
- Use Buf_Data() to simplify code.
- Use Buf_Peel() to simplify code.
Max Okumoto [Sat, 19 Mar 2005 00:19:13 +0000 (00:19 +0000)]
patch-7.150
- Use Buf_Data() to simplify code.
- Use Buf_Peel() to simplify code.
Max Okumoto [Sat, 19 Mar 2005 00:18:50 +0000 (00:18 +0000)]
patch-7.149
- Use Buf_Data() to simplify code.
- Use Buf_Peel() to simplify code.
Max Okumoto [Sat, 19 Mar 2005 00:18:28 +0000 (00:18 +0000)]
patch-7.148
Removed warning by using Buf_Peel() to simplify code.
Max Okumoto [Sat, 19 Mar 2005 00:18:01 +0000 (00:18 +0000)]
patch-7.147
Sort function declarations in buf.h
Max Okumoto [Sat, 19 Mar 2005 00:17:40 +0000 (00:17 +0000)]
patch-7.146
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.
Max Okumoto [Sat, 19 Mar 2005 00:17:07 +0000 (00:17 +0000)]
patch-7.145
Replace redundent code with calls to VarGetPattern().
Max Okumoto [Sat, 19 Mar 2005 00:16:19 +0000 (00:16 +0000)]
patch-7.144
VarGetPattern()
Removed unreachable code, VAR_NOSUBST is never set.
Max Okumoto [Sat, 19 Mar 2005 00:15:44 +0000 (00:15 +0000)]
patch-7.143
VarGetPattern()
- Update vp->ptr instead of using temp variable.
- Renamed variable pattern to patt.
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
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.
Liam J. Foy [Fri, 18 Mar 2005 22:08:08 +0000 (22:08 +0000)]
- Correct usage of gethostname(3)
- strlcpy