Tim J. Robbins [Sat, 15 Jun 2002 10:52:20 +0000 (10:52 +0000)]
Remove obsolescent -tabstop option from Synopsis (it was already removed
from the usage() message). Document what the -t option does in a more
standard place. Add a standard Diagnostics section.
Tim J. Robbins [Sat, 15 Jun 2002 10:16:39 +0000 (10:16 +0000)]
Allow <blank>s to be used to separate tab stop positions with the -t
argument, not just ASCII space characters and commas. Don't count
non-printing characters when determining column position.
Tim J. Robbins [Sat, 15 Jun 2002 07:38:27 +0000 (07:38 +0000)]
Improve parsing of character and equivalence classes:
[:*] and [=*] are parsed as `infinitely many repetitions of :' (or *)
instead of literal characters (SUSv3)
Chris Costello [Sat, 15 Jun 2002 06:00:56 +0000 (06:00 +0000)]
o Move more information from BUGS into SECURITY CONSIDERATIONS and
condense the redundant bits.
o Provide an example for using snprintf over sprintf. This may be
supplemented with an asprintf() example soon.
Maxime Henrion [Fri, 14 Jun 2002 20:04:21 +0000 (20:04 +0000)]
Change vfs_copyopt() so that the length argument passed to it
must be the exact same size as the mount option. This makes
vfs_copyopt() much more useful.
Garrett Wollman [Fri, 14 Jun 2002 19:37:06 +0000 (19:37 +0000)]
Implement the <sys/statvfs.h> header. Related changes to <sys/types.h>
are still awaiting a worldstone. Functions and their declarations to
come later.
Andrew R. Reiter [Fri, 14 Jun 2002 19:31:07 +0000 (19:31 +0000)]
- Chainsaw the storage pool code. This was being used by a bunch of code
within the HARP atm stack and the hea and hfa device drivers, but since
all of these systems were changed to use UMA zones, there is no use for
the api any longer.
Alan Cox [Fri, 14 Jun 2002 18:21:01 +0000 (18:21 +0000)]
o Use vm_map_wire() and vm_map_unwire() in place of vm_map_pageable() and
vm_map_user_pageable().
o Remove vm_map_pageable() and vm_map_user_pageable().
o Remove vm_map_clear_recursive() and vm_map_set_recursive(). (They were
only used by vm_map_pageable() and vm_map_user_pageable().)
Andrew R. Reiter [Fri, 14 Jun 2002 16:59:38 +0000 (16:59 +0000)]
- Turn the hea and hfa HARP storage pools into UMA zones and insert
the necesary uma_zcreate() and uma_zdestroy calls into module loading
handler and the device attach handling.
- Change the related HARP netatm code to use UMA zone functions when
dealing with the zones that were formerly the ATM interface (hea, hfa)
storage pools.
- Have atm_physif_freenifs() now get passed an uma_zone_t so that we can
properly free the allocated NIF's back to their zone.
This should be the last commit to remove any code that makes use of the
netatm storage pool api. I will be removing the api code within the near
future.
Tim J. Robbins [Fri, 14 Jun 2002 09:53:11 +0000 (09:53 +0000)]
Don't treat the trailing ']' of an equivalence class expression as a
character in the set. tr -d '[=a=]' was deleting ]'s as well as a's.
Noticed by the textutils test suite.
Jeffrey Hsu [Fri, 14 Jun 2002 08:35:21 +0000 (08:35 +0000)]
Notify functions can destroy the pcb, so they have to return an
indication of whether this happenned so the calling function
knows whether or not to unlock the pcb.
Submitted by: Jennifer Yang (yangjihui@yahoo.com)
Bug reported by: Sid Carter (sidcarter@symonds.net)
Robert Watson [Fri, 14 Jun 2002 07:24:01 +0000 (07:24 +0000)]
Add a comment about how we should use vn_open() here instead of directly
invoking VOP_OPEN(). This would reduce code redundancy with the rest
of the kernel, and also is required for MAC to work properly.
Maxim Sobolev [Fri, 14 Jun 2002 01:28:52 +0000 (01:28 +0000)]
Fix one serious bug and one potential problem with in-place editing code:
- original version of code worked incorrectly when more than one
input files were specified - it was moving the last line from the 1st file
to be the first line of the 2nd, last line of the 2nd to be the first
line of the 3rd and so on;
- use mmap()->write() to create temporary file instead of
malloc()->read()->write(), which was not only slower, but also did not
bother to free allocated memory once backup file was created, potentially
leading to memory exhausting when regex is applied to a big file or a large
number of small ones.
Chris Costello [Thu, 13 Jun 2002 23:35:22 +0000 (23:35 +0000)]
Include information on the dangers of passing a user-supplied string as
a format string. This will later on be changed to a reference to the
FreeBSD Security Architecture after it has been committed.
Gordon Tetlow [Thu, 13 Jun 2002 22:30:02 +0000 (22:30 +0000)]
Add the final bits that allow the use of rc.d. Note that you can toggle
between rc.d and the classic boot scripts based on the rcng variable in
your rc.conf. Defaults to classic boot scripts.
Semen Ustimenko [Thu, 13 Jun 2002 21:49:09 +0000 (21:49 +0000)]
Fix a race during null node creation between relookuping the hash and
adding vnode to hash. The fix is to use atomic hash-lookup-and-add-if-
not-found operation. The odd thing is that this race can't happen
actually because the lowervp vnode is locked exclusively now during the
whole process of null node creation. This must be thought as a step
toward shared lookups.
Also remove vp->v_mount checks when looking for a match in the hash,
as this is the vestige.
Greg Lehey [Thu, 13 Jun 2002 21:20:56 +0000 (21:20 +0000)]
Add two new options:
-W is like -A (number of days in the future to consider, but also
specifies that we don't want special treatment at weekends.
-F changes our notion of "Friday" (the day before the weekend).
Arguably, calendar(1) is broken to have special treatment of weekends
by default, but this method maintains POLA.
Semen Ustimenko [Thu, 13 Jun 2002 18:25:06 +0000 (18:25 +0000)]
Fix the "error" path (when dropping not fully initialized vnode).
Also move hash operations out of null_vnops.c and explicitly initialize
v_lock in null_node_alloc (to set wmesg).
Hajimu UMEMOTO [Thu, 13 Jun 2002 16:59:31 +0000 (16:59 +0000)]
Changed the behavior when an interface-direct prefix being advertised
was removed from the kernel;
Advertise the prefix with zero lifetimes rather than to remove the prefix
from the prefix list to be advertised.
This will help renumber a receiving host by deprecating the address
derived from the old prefix.
Andrew R. Reiter [Thu, 13 Jun 2002 14:32:51 +0000 (14:32 +0000)]
- Finish the uni part of the storage pool cleanup. There should now only
be a few bits left to clean from the HARP code in terms of what is using
the storage pools; once that's done, the memory management code can be
removed entirely.
This commit effectively changes the use of dynamic memory routines from
atm_allocate, atm_free, atm_release_pool to uma_zcreate, uma_zalloc,
uma_zfree, uma_zdestroy.
Tim J. Robbins [Thu, 13 Jun 2002 12:48:50 +0000 (12:48 +0000)]
Add the -m option, which counts characters (as opposed to -c, which
counts bytes). In locales that don't have multibyte characters, -m
is effectively an alias for -c.
Tim J. Robbins [Thu, 13 Jun 2002 08:07:20 +0000 (08:07 +0000)]
Support the "--" end of options marker, useful to disambiguate between
signal numbers and process groups (negative pid arguments), and
required by SUSv3.
Warner Losh [Thu, 13 Jun 2002 07:19:31 +0000 (07:19 +0000)]
Use a cv rather than tsleep and friends to do the sleep/wakeup
handshake between the ISR and the worker thread. Move the mutex lock
so that it only protects the cv_wait. This elimiates the not sleeping
with pccbb1 held messages some people were seeing.
Almost complete rewrite of the lpc commands 'abort', 'enable', 'disable',
'restart', 'start', 'stop' and 'up'. These are commands which mainly
just alter the access bits on the lock-file of a queue, and they all
now use a central routine to do that. This reduces the amount of code
that is run as the priv userid, and eliminates a number of cases where
error messages were written while that priv uid was in effect.
As far as users are concerned, there should be no noticable difference
in the new versions. In case there *is*, the previous implementations
are still there as 'xabort', 'xenable', etc, so they are available for
instant fallback. If no one reports a problem after a few weeks, then
a later update will remove those x-commands.
Reviewed by: freebsd-audit and freebsd-print@bostonradio.org
MFC after: 10 days
Brian Somers [Wed, 12 Jun 2002 21:36:07 +0000 (21:36 +0000)]
Don't forget to process the Ident field on the front of
RAD_MICROSOFT_MS_CHAP_ERROR and RAD_MICROSOFT_MS_CHAP2_SUCCESS
messages, and remove the hack in chap.c to ignore that ident field
on the client side.
This anomoly was hacked around during development, and I forgot to
go back and fix it properly.
Thomas Moestl [Wed, 12 Jun 2002 19:20:57 +0000 (19:20 +0000)]
Add PCI bus enumeration and latency timer setup to the sparc64 MD PCI
code. Both tasks are not always performed completely by the firmware.
The former is required to get some e450 models to boot; the latter fixes
the repeated fifo underruns with hme(4)s and gem(4)s observed on some
machines (and probably performance problems with other peripherals as
well).
Bruce Evans [Wed, 12 Jun 2002 13:30:52 +0000 (13:30 +0000)]
If trap() is called when ddb is active, then go directly to trap_fatal();
do not blunder around enabling interrupts and running trap handlers.
trap_pfault() will normally pass control to ddb's fault handler which
will normally do the right thing.
This bug is very old. but in old versions of FreeBSD it is probably only
serious for trap handling that involves sleeping. In -current, attempting
to examine unmapped memory while stopped at a breakpoint at mi_switch()
was always fatal.