]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoDisconnect closefrom.c as we have it as a system call.
delphij [Tue, 16 Jun 2009 00:09:06 +0000 (00:09 +0000)]
Disconnect closefrom.c as we have it as a system call.

15 years agoNow we have closefrom().
delphij [Mon, 15 Jun 2009 23:03:38 +0000 (23:03 +0000)]
Now we have closefrom().

15 years agoFix usb2_find_descriptor function name.
thompsa [Mon, 15 Jun 2009 22:38:05 +0000 (22:38 +0000)]
Fix usb2_find_descriptor function name.

15 years agoI have several machines where the following warning is printed:
ps [Mon, 15 Jun 2009 21:55:29 +0000 (21:55 +0000)]
I have several machines where the following warning is printed:
warning: no time-of-day clock registered, system time will not be set accurately

Provide hints to atrtc on amd64 since it's not being described in
ACPI on some systems.

Reviewed by: jhb

15 years agoAdd revoke(1).
ed [Mon, 15 Jun 2009 21:52:27 +0000 (21:52 +0000)]
Add revoke(1).

While hacking on TTY code, I often miss a small utility to revoke my own
(pseudo-)terminals. This small utility is just a small wrapper around
the revoke(2) call, so you can destroy your very own login sessions.

Approved by: re

15 years agoMake the chpass Makefile honour NO_FSCHG.
ed [Mon, 15 Jun 2009 21:05:00 +0000 (21:05 +0000)]
Make the chpass Makefile honour NO_FSCHG.

The chpass Makefile tried to set the fschg flag on the binaries, even if
NO_FSCHG was passed to the installworld. This meant that if I installed
FreeBSD into a Jail, I couldn't installworld from within the Jail
anymore.

Now that it listens to NO_FSCHG, we can just make it bail out when it
fails, just like PRECIOUSPROG does.

15 years agoPerform some more cleanups to in-kernel session handling.
ed [Mon, 15 Jun 2009 20:45:51 +0000 (20:45 +0000)]
Perform some more cleanups to in-kernel session handling.

The code that was in place in exit1() was mainly based on code from the
old TTY layer. The main reason behind this, was because at one moment I
ran a system that had two TTY layers in place at the same time. It is
now sufficient to do the following:

- Remove references from the session structure to the TTY vnode and the
  session leader.

- If we have a controlling TTY and the session used by the TTY is equal
  to our session, send the SIGHUP.

- If we have a vnode to the controlling TTY which has not been revoked,
  revoke it.

While there, change sys/kern/tty.c to use s_ttyp in the comparison
instead of s_ttyvp. It should not make any difference, because s_ttyvp
can only become null when the session leader already left, but it's
nicer to compare against the proper value.

15 years agoRegen.
jhb [Mon, 15 Jun 2009 20:40:23 +0000 (20:40 +0000)]
Regen.

15 years agoAdd a new 'void closefrom(int lowfd)' system call. When called, it closes
jhb [Mon, 15 Jun 2009 20:38:55 +0000 (20:38 +0000)]
Add a new 'void closefrom(int lowfd)' system call.  When called, it closes
any open file descriptors >= 'lowfd'.  It is largely identical to the same
function on other operating systems such as Solaris, DFly, NetBSD, and
OpenBSD.  One difference from other *BSD is that this closefrom() does not
fail with any errors.  In practice, while the manpages for NetBSD and
OpenBSD claim that they return EINTR, they ignore internal errors from
close() and never return EINTR.  DFly does return EINTR, but for the common
use case (closing fd's prior to execve()), the caller really wants all
fd's closed and returning EINTR just forces callers to call closefrom() in
a loop until it stops failing.

Note that this implementation of closefrom(2) does not make any effort to
resolve userland races with open(2) in other threads.  As such, it is not
multithread safe.

Submitted by: rwatson (initial version)
Reviewed by: rwatson
MFC after: 2 weeks

15 years agor193336 moved ifq_detach to if_free which broke if_alloc followed
sam [Mon, 15 Jun 2009 19:50:03 +0000 (19:50 +0000)]
r193336 moved ifq_detach to if_free which broke if_alloc followed
by if_free (w/o doing if_attach); move ifq_attach to if_alloc and
rename ifq_attach/detach to ifq_init/ifq_delete to better identify
their purpose

Reviewed by: jhb, kmacy

15 years agoRemove redundant code from runshutdown() now tcsetsid(3) works reliably.
ed [Mon, 15 Jun 2009 19:24:47 +0000 (19:24 +0000)]
Remove redundant code from runshutdown() now tcsetsid(3) works reliably.

We can now just call setctty() without any problems. This means the
shell running the shutdown script is now the session leader, just like
on startup.

15 years agoMake tcsetsid(3) work on revoked TTYs.
ed [Mon, 15 Jun 2009 19:17:52 +0000 (19:17 +0000)]
Make tcsetsid(3) work on revoked TTYs.

Right now the only way to make tcsetsid(3)/TIOCSCTTY work, is by
ensuring the session leader is dead. This means that an application that
catches SIGHUPs and performs a sleep prevents us from assigning a new
session leader.

Change the code to make it work on revoked TTYs as well. This allows us
to change init(8) to make the shutdown script run in a more clean
environment.

15 years agoGet vnets from creds instead of threads where they're available, and from
jamie [Mon, 15 Jun 2009 19:01:53 +0000 (19:01 +0000)]
Get vnets from creds instead of threads where they're available, and from
passed threads instead of curthread.

Reviewed by: zec, julian
Approved by: bz (mentor)

15 years agoManage vnets via the jail system. If a jail is given the boolean
jamie [Mon, 15 Jun 2009 18:59:29 +0000 (18:59 +0000)]
Manage vnets via the jail system.  If a jail is given the boolean
parameter "vnet" when it is created, a new vnet instance will be created
along with the jail.  Networks interfaces can be moved between prisons
with an ioctl similar to the one that moves them between vimages.
For now vnets will co-exist under both jails and vimages, but soon
struct vimage will be going away.

Reviewed by: zec, julian
Approved by: bz (mentor)

15 years agoLong long time ago, several utilities in base used to parse %c output and
jkim [Mon, 15 Jun 2009 18:49:06 +0000 (18:49 +0000)]
Long long time ago, several utilities in base used to parse %c output and
we were not able to change c_fmt without breaking these utilities.  Since
ache fixed all known issues 8 years ago, now we make ko_KR more usable.
Better late than never...

15 years agoAdd cas(4).
marius [Mon, 15 Jun 2009 18:27:27 +0000 (18:27 +0000)]
Add cas(4).

Approved by: re (kib)
MFC after: 2 weeks

15 years agoAdd cas(4).
marius [Mon, 15 Jun 2009 18:25:10 +0000 (18:25 +0000)]
Add cas(4).

Approved by: re (kib)
MFC after: 2 weeks

15 years agoAdd a man page for cas(4) and reference it as appropriate.
marius [Mon, 15 Jun 2009 18:24:04 +0000 (18:24 +0000)]
Add a man page for cas(4) and reference it as appropriate.

Approved by: re (kib)
MFC after: 2 weeks

15 years agoAdd cas(4), a driver for Sun Cassini/Cassini+ and National Semiconductor
marius [Mon, 15 Jun 2009 18:22:41 +0000 (18:22 +0000)]
Add cas(4), a driver for Sun Cassini/Cassini+ and National Semiconductor
DP83065 Saturn Gigabit Ethernet controllers. These are the successors
of the Sun GEM controllers and still have a similar but extended transmit
logic. As such this driver is based on gem(4).
Thanks to marcel@ for providing a Sun Quad GigaSwift Ethernet UTP (QGE)
card which was vital for getting this driver to work on architectures
not using Open Firmware.

Approved by: re (kib)
MFC after: 2 weeks

15 years agoSince dn_pipe.numbytes is int64_t now - remove unnecessary overflow detection
oleg [Mon, 15 Jun 2009 17:14:47 +0000 (17:14 +0000)]
Since dn_pipe.numbytes is int64_t now - remove unnecessary overflow detection
code in ready_event_wfq().

15 years ago- The maximum number of heads is 255, not 256.
lulf [Mon, 15 Jun 2009 16:51:07 +0000 (16:51 +0000)]
- The maximum number of heads is 255, not 256.

Pointed out by: marcel

15 years ago- Remove old and add new valid flags for the chunk structure.
lulf [Mon, 15 Jun 2009 16:42:08 +0000 (16:42 +0000)]
- Remove old and add new valid flags for the chunk structure.

Submitted by: randi

15 years agoAM/PM should come first in korean.
jkim [Mon, 15 Jun 2009 16:32:17 +0000 (16:32 +0000)]
AM/PM should come first in korean.

15 years ago- Relax sanitazion requirements in libdisk, as a previous commit enabling this
lulf [Mon, 15 Jun 2009 16:18:24 +0000 (16:18 +0000)]
- Relax sanitazion requirements in libdisk, as a previous commit enabling this
  sanitization broke sysinstall on some disks.  This was due to the disks
  reporting a geometry that was incorrectly sanitized by sysinstall. This makes
  the sanitization consistent with fdisk.

Tested by: randi

15 years agoNote that the structures are defined in <sys/user.h> in the text (using
jhb [Mon, 15 Jun 2009 15:43:00 +0000 (15:43 +0000)]
Note that the structures are defined in <sys/user.h> in the text (using
language from stat(2)) rather than in the synopsis.

Requested by: bde

15 years agoReplace the global references to "hostid" in svc_rpcsec_gss.c to local
rmacklem [Mon, 15 Jun 2009 14:44:55 +0000 (14:44 +0000)]
Replace the global references to "hostid" in svc_rpcsec_gss.c to local
variables set via the getcredhostid() function. I also changed the type
of ci_hostid to "unsigned long" so that it matches what is returned by
getcredhostid(). Although "struct svc_rpc_gss_clientid" goes on the wire
during RPCSEC_GSS, it is just a variable # of opaque bytes to the client,
so it doesn't matter how much storage ci_hostid uses.

Approved by: kib (mentor)

15 years agoForbid multi-vector MSI interrupt vectors migration to another CPU once
mav [Mon, 15 Jun 2009 13:47:49 +0000 (13:47 +0000)]
Forbid multi-vector MSI interrupt vectors migration to another CPU once
allocated. MSI have strict vectors allocation requirements, which are not
satisfied now during reallocation. This is not the best possible solution,
but better then just broken, as it was.

No objections: current@, arch@, jhb@

15 years ago- Add a way to change filter oversampling factor through
ariff [Mon, 15 Jun 2009 04:31:34 +0000 (04:31 +0000)]
- Add a way to change filter oversampling factor through
  FEEDER_RATE_PRESET "OVERSAMPLING_FACTOR:X .. .." where
  X = log2(oversampling factor).

- Lower down default filter oversampling factor from 128
  (log2 = 7) to 32 (log2 = 5), saving worth of 80 Kb.
  The use of better polynomial interpolator will raise
  its conversion quality/accuracy to match (or slightly
  better) with previous settings.

- Bump driver version.

15 years agoRemap type of polynomial interpolators for better polyphase
ariff [Mon, 15 Jun 2009 04:05:38 +0000 (04:05 +0000)]
Remap type of polynomial interpolators for better polyphase
coefficients quality:
- Linear interpolator for oversampling factor larger and equal
  than 4096 (log2 = 12).
- Quadratic interpolator for oversampling factor larger and equal
  than 256 (log2 = 8).

Default oversampling factor (128 ~ log2 = 7) will use OPT32X, which
provides better accuracy.

15 years agoUndo the change in r193688 as suggested in conf/72076.
edwin [Mon, 15 Jun 2009 02:17:10 +0000 (02:17 +0000)]
Undo the change in r193688 as suggested in conf/72076.

People on IRC and the -doc mailinglist (June 2009) showed that this
new format wasn't used or known widely enough to justify the change.

15 years agoFix _USB2_* refernces in the header protection defines.
thompsa [Mon, 15 Jun 2009 01:09:19 +0000 (01:09 +0000)]
Fix _USB2_* refernces in the header protection defines.

15 years agoFix compile with changes to the usb_config struct.
thompsa [Mon, 15 Jun 2009 01:05:46 +0000 (01:05 +0000)]
Fix compile with changes to the usb_config struct.

15 years agos/usb2_/usb_|usbd_/ on all function names for the USB stack.
thompsa [Mon, 15 Jun 2009 01:02:43 +0000 (01:02 +0000)]
s/usb2_/usb_|usbd_/ on all function names for the USB stack.

15 years agoRemove usb2_cv_* and just use the kernel condvar implementation, it was needed
thompsa [Mon, 15 Jun 2009 00:33:18 +0000 (00:33 +0000)]
Remove usb2_cv_* and just use the kernel condvar implementation, it was needed
earlier since condition variables didnt work with Giant but this was fixed 10
months ago.

15 years agoEd forgot this in r190751.
des [Sun, 14 Jun 2009 23:44:06 +0000 (23:44 +0000)]
Ed forgot this in r190751.

15 years agoEd forgot this in r190751.
des [Sun, 14 Jun 2009 23:27:09 +0000 (23:27 +0000)]
Ed forgot this in r190751.

15 years agoRemove the note about using vt220, which makes no sense at all.
ed [Sun, 14 Jun 2009 22:35:33 +0000 (22:35 +0000)]
Remove the note about using vt220, which makes no sense at all.

vt220 will not work better. Even though it probably will remove warnings
about unknown terminal types, a cons25 emulator is not compatible with
vt220 at all.

15 years agoAdd volatile to sig_atomic_t where it was missing.
des [Sun, 14 Jun 2009 21:39:52 +0000 (21:39 +0000)]
Add volatile to sig_atomic_t where it was missing.

MFC after: 1 week

15 years agoBump __FreeBSD_version for OpenSSL 0.9.8k import.
simon [Sun, 14 Jun 2009 19:53:52 +0000 (19:53 +0000)]
Bump __FreeBSD_version for OpenSSL 0.9.8k import.

15 years agoLong, long ago in r27464 special case code for mapping device-backed
alc [Sun, 14 Jun 2009 19:51:43 +0000 (19:51 +0000)]
Long, long ago in r27464 special case code for mapping device-backed
memory with 4MB pages was added to pmap_object_init_pt().  This code
assumes that the pages of a OBJT_DEVICE object are always physically
contiguous.  Unfortunately, this is not always the case.  For example,
jhb@ informs me that the recently introduced /dev/ksyms driver creates
a OBJT_DEVICE object that violates this assumption.  Thus, this
revision modifies pmap_object_init_pt() to abort the mapping if the
OBJT_DEVICE object's pages are not physically contiguous.  This
revision also changes some inconsistent if not buggy behavior.  For
example, the i386 version aborts if the first 4MB virtual page that
would be mapped is already valid.  However, it incorrectly replaces
any subsequent 4MB virtual page mappings that it encounters,
potentially leaking a page table page.  The amd64 version has a bug of
my own creation.  It potentially busies the wrong page and always an
insufficent number of pages if it blocks allocating a page table page.

To my knowledge, there have been no reports of these bugs, hence,
their persistance.  I suspect that the existing restrictions that
pmap_object_init_pt() placed on the OBJT_DEVICE objects that it would
choose to map, for example, that the first page must be aligned on a 2
or 4MB physical boundary and that the size of the mapping must be a
multiple of the large page size, were enough to avoid triggering the
bug for drivers like ksyms.  However, one side effect of testing the
OBJT_DEVICE object's pages for physical contiguity is that a dubious
difference between pmap_object_init_pt() and the standard path for
mapping devices pages, i.e., vm_fault(), has been eliminated.
Previously, pmap_object_init_pt() would only instantiate the first
PG_FICTITOUS page being mapped because it never examined the rest.
Now, however, pmap_object_init_pt() uses the new function
vm_object_populate() to instantiate them all (in order to support
testing their physical contiguity).  These pages need to be
instantiated for the mechanism that I have prototyped for
automatically maintaining the consistency of the PAT settings across
multiple mappings, particularly, amd64's direct mapping, to work.
(Translation: This change is also being made to support jhb@'s work on
the Nvidia feature requests.)

Discussed with: jhb@

15 years agoRegenerate manual pages for OpenSSL 0.9.8k.
simon [Sun, 14 Jun 2009 19:51:05 +0000 (19:51 +0000)]
Regenerate manual pages for OpenSSL 0.9.8k.

15 years agoUpdate build infrastructure for OpenSSL 0.9.8k.
simon [Sun, 14 Jun 2009 19:46:18 +0000 (19:46 +0000)]
Update build infrastructure for OpenSSL 0.9.8k.

15 years agoMerge OpenSSL 0.9.8k into head.
simon [Sun, 14 Jun 2009 19:45:16 +0000 (19:45 +0000)]
Merge OpenSSL 0.9.8k into head.

Approved by: re

15 years agoEnable PRINTF_BUFR_SIZE on i386 and amd64 by default.
ed [Sun, 14 Jun 2009 18:01:35 +0000 (18:01 +0000)]
Enable PRINTF_BUFR_SIZE on i386 and amd64 by default.

In the past there have been some reports of PRINTF_BUFR_SIZE not
functioning correctly. Instead of having garbled console messages, we
should just see whether the issues are still there and analyze them.

Approved by: re

15 years agoUnlock process lock when return error from getrobustlist call.
dchagin [Sun, 14 Jun 2009 17:53:55 +0000 (17:53 +0000)]
Unlock process lock when return error from getrobustlist call.

Tested by: Alexander Best <alexbestms at math uni-muenster de>
Approved by: kib (mentor)
MFC after: 3 days

15 years agoWhen the KOBJMETHOD() macro was updated, it resulted in the
rmacklem [Sun, 14 Jun 2009 17:33:46 +0000 (17:33 +0000)]
When the KOBJMETHOD() macro was updated, it resulted in the
compiler doing argument type checking. Since the prototypes in
kgss_if.h used the generic gss_ctx_id_t for the context argument,
but the functions in sys/kgssapi/krb5/krb5_mech.c used the
KerberosV specific context argument, the file would no longer build.
This patch fixes it so it will build by replacing the argument with
a gss_ctx_id_t one and setting a local "struct krb5_context *" variable
to it for use by the function.

Reviewed by: dfr
Approved by: kib (mentor)

15 years agoAdd an optional callback function that will be invoked when a per-CPU
bz [Sun, 14 Jun 2009 17:15:18 +0000 (17:15 +0000)]
Add an optional callback function that will be invoked when a per-CPU
queue was drained.  It will never fire for a directly dispatched packet.

You will most likely never want to use this for any ordinary netisr usage
and you will never blame netisr in case you try to use it and it does
not work as expected.

Reviewed by: rwatson

15 years agoFix the staircase issue properly this time.
ed [Sun, 14 Jun 2009 17:00:35 +0000 (17:00 +0000)]
Fix the staircase issue properly this time.

Even though I thought this bug was somewhere in the TTY layer, it turns
out init(8) doesn't make sure /dev/console is opened initially properly.
I've added revoke() to two pieces of code:

- death(): Apart from killing the gettys on shutdown, this doesn't
  guarantee the TTY to be closed immediately.
- runshutdown(): Just like setctty(), we should revoke /dev/console.
  Applications like syslogd may have file descriptors to the console.

15 years agoAdd myself.
nork [Sun, 14 Jun 2009 16:48:17 +0000 (16:48 +0000)]
Add myself.

Approved by: imp (mentor)

15 years agoAdd tests for r194127 and r194128.
jilles [Sun, 14 Jun 2009 16:21:51 +0000 (16:21 +0000)]
Add tests for r194127 and r194128.

Approved by: ed (mentor)

15 years agoAllow "make update" work with SVN, if you take the time to set up your
markm [Sun, 14 Jun 2009 15:16:24 +0000 (15:16 +0000)]
Allow "make update" work with SVN, if you take the time to set up your
/etc/make.conf properly.

Only one SCM?
I do not think this is right.
Now I have fixed it.

15 years agoImprove the description a bit and add a reference to vlan(4).
marius [Sun, 14 Jun 2009 14:46:20 +0000 (14:46 +0000)]
Improve the description a bit and add a reference to vlan(4).

15 years agoInstead of only being able to compare two terminal definitions, now
edwin [Sun, 14 Jun 2009 13:46:32 +0000 (13:46 +0000)]
Instead of only being able to compare two terminal definitions, now
also be able to print information about...

- length of the terminal capabilties
- dump of one terminal definition
- relationship overview for a terminal definition

15 years agoRename since it has will have more capabilities than just comparing of
edwin [Sun, 14 Jun 2009 13:43:07 +0000 (13:43 +0000)]
Rename since it has will have more capabilities than just comparing of
two termcap entries.

15 years agoInclude <sys/module.h> for modfind().
ed [Sun, 14 Jun 2009 12:47:27 +0000 (12:47 +0000)]
Include <sys/module.h> for modfind().

Submitted by: Pawel Worach

15 years agoInclude <camlib.h> for cam_path_string().
ed [Sun, 14 Jun 2009 12:46:34 +0000 (12:46 +0000)]
Include <camlib.h> for cam_path_string().

Submitted by: Pawel Worach

15 years agoInclude <stdio.h> for asprintf().
ed [Sun, 14 Jun 2009 12:45:48 +0000 (12:45 +0000)]
Include <stdio.h> for asprintf().

Submitted by: Pawel Worach

15 years agoInclude <sys/wait.h> and <signal.h> for wait() and kill().
ed [Sun, 14 Jun 2009 12:44:09 +0000 (12:44 +0000)]
Include <sys/wait.h> and <signal.h> for wait() and kill().

15 years agoFix missing includes of <string.h>, to silence some compiler warnings.
ed [Sun, 14 Jun 2009 12:42:06 +0000 (12:42 +0000)]
Fix missing includes of <string.h>, to silence some compiler warnings.

Submitted by: Pawel Worach

15 years agoRemove a line break leaving a function return type attached to the old
bz [Sun, 14 Jun 2009 12:11:15 +0000 (12:11 +0000)]
Remove a line break leaving a function return type attached to the old
function declaration bottom rather than the new function declaration
start.

15 years agoAdd more entries to the Unicode-to-CP437 table.
ed [Sun, 14 Jun 2009 12:04:34 +0000 (12:04 +0000)]
Add more entries to the Unicode-to-CP437 table.

Characters between 0x07 and 0x0d are now also mapped, which means we can
display almost 256 different characters. Also remap certain types of
dashes and quotes, which means we can finally read our manual pages
without red question marks in them.

Submitted by: Christoph Mallon

15 years agoFix type of lowaddr variable.
mav [Sun, 14 Jun 2009 07:34:21 +0000 (07:34 +0000)]
Fix type of lowaddr variable.

15 years agoAdd missing passthrough printing entries for VT100 and workalikes
edwin [Sun, 14 Jun 2009 07:02:50 +0000 (07:02 +0000)]
Add missing passthrough printing entries for VT100 and workalikes
in /etc/termcap:

    VT100 spec indicates that passthrough printing can be enabled
    by sending ESC[5i and disabled by sending ESC[4i These entries
    should be listed as po and pf in /etc/termcap, but are absent.
    See http://www.vt100.net/docs/vt102-ug/chapter5.html#S5.5.2.23

PR: conf/71549
Submitted by: Andrew Webster <andrew@pubnix.net>
MFC after: 1 week

15 years agoTermcap updates for screen and linux console:
edwin [Sun, 14 Jun 2009 06:48:31 +0000 (06:48 +0000)]
Termcap updates for screen and linux console:

screen entry: F11-F20 keys added
linux entry: F10-F20 keys added, ACS line graphics added

PR: kern/108899
Submitted by: Joseph Terner<jtsn@gmx.de>
MFC after: 1 week

15 years agoAdd -m and -t options.
brian [Sun, 14 Jun 2009 06:47:21 +0000 (06:47 +0000)]
Add -m and -t options.

PR: 129554
Submitted by: gavin
MFC after: 3 weeks

15 years agoRemove HOME= - this has surprised me several times in the past.
brian [Sun, 14 Jun 2009 06:37:19 +0000 (06:37 +0000)]
Remove HOME= - this has surprised me several times in the past.

PR: 132135
Submitted by: Craig Leres
MFC after: 3 weeks

15 years agoDon't set $PATH - if the caller doesn't have /bin and /usr/bin in their
brian [Sun, 14 Jun 2009 06:09:33 +0000 (06:09 +0000)]
Don't set $PATH - if the caller doesn't have /bin and /usr/bin in their
PATH then they can expect things to break.

PR: 135417
MFC after: 3 weeks

15 years agoAdd missing terminal definition for Wyse 120 in termcap
edwin [Sun, 14 Jun 2009 04:03:18 +0000 (04:03 +0000)]
Add missing terminal definition for Wyse 120 in termcap

Although the PR contains also the definitions of the Wyse 60, they
are not copied into it since there are already definition for them
in the termcap file since 1997.

Also, the PR didn't use the :tc=xxx: feature, so I've imploded them.

PR: conf/81882
Submitted by: Meister des Chaos <meister@netz00.com>
MFC after: 1 week

15 years agoAdd missing termcap entry for rxvt-unicode.
edwin [Sun, 14 Jun 2009 03:34:54 +0000 (03:34 +0000)]
Add missing termcap entry for rxvt-unicode.

The termcap database does not have an entry for rxvt-unicode.
This means that programs that need an entry such as vi fail
to work when connecting via ssh using this terminal emulator.

The added data is not the same as the PR submitted by Richard, it
uses the :tc=xxx: option to inherit everything from rxvt-mono.

PR: conf/117323
Submitted by: Richard Bradshaw <richard.bradshaw@blueyonder.co.uk>
MFC after: 1 week

15 years agoFix typo... bad imp.
imp [Sun, 14 Jun 2009 03:32:52 +0000 (03:32 +0000)]
Fix typo...  bad imp.

15 years agoTool to compare two (roughly similar) termcap entries (like rxvt-mono
edwin [Sun, 14 Jun 2009 03:29:14 +0000 (03:29 +0000)]
Tool to compare two (roughly similar) termcap entries (like rxvt-mono
and rxvt-unicode) so see which fields should don't need to be copied
if the :tc=xxx: option is used.

15 years agoAfter Marcel's change to DEFAULTS, we were bringing in a bogus copy of
imp [Sun, 14 Jun 2009 02:58:56 +0000 (02:58 +0000)]
After Marcel's change to DEFAULTS, we were bringing in a bogus copy of
uart_8250.  Remove it here since the UART on the ADM5120 isn't the
typical 16550: its completely different.

15 years agoFormatting nit.
imp [Sun, 14 Jun 2009 02:55:07 +0000 (02:55 +0000)]
Formatting nit.

15 years agoMissed style fixes.
marius [Sun, 14 Jun 2009 00:15:26 +0000 (00:15 +0000)]
Missed style fixes.

15 years agoFix style.
marius [Sun, 14 Jun 2009 00:05:38 +0000 (00:05 +0000)]
Fix style.

15 years agonote abi change for IEEE80211_IOC_STA_INFO
sam [Sat, 13 Jun 2009 23:44:56 +0000 (23:44 +0000)]
note abi change for IEEE80211_IOC_STA_INFO

15 years agoRev IEEE80211_IOC_STA_INFO abi: ni_flags grew from 16 bits to 32
sam [Sat, 13 Jun 2009 23:43:00 +0000 (23:43 +0000)]
Rev IEEE80211_IOC_STA_INFO abi: ni_flags grew from 16 bits to 32
bits but isi_state did not follow; expand it to 32 bits and pad to
maintain alignment.  Note this is an incompatible change that
requires rebuilding of user applications.

Submitted by: rpaulo, cbzimmer, avatar

15 years agopurge HAL_TXSTAT_ALTRATE; you can figure this out by checking ts_finaltsi
sam [Sat, 13 Jun 2009 23:36:54 +0000 (23:36 +0000)]
purge HAL_TXSTAT_ALTRATE; you can figure this out by checking ts_finaltsi
and it cannot be used with MCS rate codes

15 years ago- Also probe DP83865, which is an is an ultra low power version
marius [Sat, 13 Jun 2009 23:27:04 +0000 (23:27 +0000)]
- Also probe DP83865, which is an is an ultra low power version
  of the DP83861 and DP83891.
- Reset the PHY during attach so it's in a known state.
- Add a comment describing why we hardwire 10baseT support in
  the BMSR.
- Always explicitly set IFM_HDX for half-duplex. [1]

Obtained from: OpenBSD [1]
MFC after: 2 weeks

15 years agoWhen a Solaris10 client does an NFS mount using krb5i or krb5p, the
rmacklem [Sat, 13 Jun 2009 23:16:40 +0000 (23:16 +0000)]
When a Solaris10 client does an NFS mount using krb5i or krb5p, the
server would crash because the Solaris10 client would attempt to use
Sun's NFSACL protocol, which FreeBSD doesn't support. When the server
generated the error reply via svcerr_noprog(), it would cause a crash
because it would try and wrap a NULL reply. According to RFC2203, no
wrapping is required for error cases. This one line change avoids
wrapping of NULL replies.

Reviewed by: dfr
Approved by: kib (mentor)

15 years agoupdate backend_changed to reflect .m prototype
kmacy [Sat, 13 Jun 2009 21:55:08 +0000 (21:55 +0000)]
update backend_changed to reflect .m prototype

15 years agoAvoid leaving unnecessary waiting shells in many forms of sh -c COMMAND.
jilles [Sat, 13 Jun 2009 21:17:45 +0000 (21:17 +0000)]
Avoid leaving unnecessary waiting shells in many forms of sh -c COMMAND.

This change only affects strings passed to -c, when the -s
option is not used.

The approach is to check if there may be additional data
in the string after parsing each command. If there is none,
use the EV_EXIT flag so that a fork may be omitted in
specific cases.

If there are empty lines after the command, the check will
not see the end and forks will not be omitted. The same
thing seems to happen in bash.

Example:
  sh -c 'ps lT'
No longer shows a shell process waiting for ps to finish.

PR: bin/113860
Reviewed by: stefanf
Approved by: ed (mentor)

15 years agoDon't skip forking for an external command if any traps are active.
jilles [Sat, 13 Jun 2009 21:10:41 +0000 (21:10 +0000)]
Don't skip forking for an external command if any traps are active.

Example:
  sh -c '(trap "echo trapped" EXIT; sleep 3)'
now correctly prints "trapped".

With this check, it is no longer necessary to check for -T
explicitly in that case.

This is a useful bugfix by itself and also important because I plan to
skip forking more often.

PR: bin/113860 (part of)
PR: bin/74404 (part of)
Reviewed by: stefanf
Approved by: ed (mentor)

15 years agoEliminate an unnecessary clearing of a page's dirty bits in
alc [Sat, 13 Jun 2009 20:58:12 +0000 (20:58 +0000)]
Eliminate an unnecessary clearing of a page's dirty bits in
phys_pager_getpages().

15 years agoEliminate unnecessary variables.
alc [Sat, 13 Jun 2009 20:21:08 +0000 (20:21 +0000)]
Eliminate unnecessary variables.

15 years agoCorrect the method of waking the page daemon when the number of allocated
alc [Sat, 13 Jun 2009 18:35:29 +0000 (18:35 +0000)]
Correct the method of waking the page daemon when the number of allocated
pv entries surpasses the high water mark.  The problem was that the page
daemon would only be awakened the first time that the high water mark was
surpassed.  (The variable "pagedaemon_waken" is a non-working vestige of
FreeBSD 4.x, in which it was external and reset by the page daemon whenever
it ran.  This reset allowed subsequent wakeups by the pv entry allocator.)

15 years agoRename the host-related prison fields to be the same as the host.*
jamie [Sat, 13 Jun 2009 15:39:12 +0000 (15:39 +0000)]
Rename the host-related prison fields to be the same as the host.*
parameters they represent, and the variables they replaced, instead of
abbreviated versions of them.

Approved by: bz (mentor)

15 years agoUse getcredhostuuid instead of accessing the prison directly.
jamie [Sat, 13 Jun 2009 15:35:22 +0000 (15:35 +0000)]
Use getcredhostuuid instead of accessing the prison directly.

Approved by: bz (mentor)

15 years agoClobber "cc" instead of using volatile.
ed [Sat, 13 Jun 2009 14:30:08 +0000 (14:30 +0000)]
Clobber "cc" instead of using volatile.

Submitted by: Christoph Mallon

15 years agoRemove "extern" from function prototypes, and fix some (but not all)
des [Sat, 13 Jun 2009 14:12:55 +0000 (14:12 +0000)]
Remove "extern" from function prototypes, and fix some (but not all)
style(9) violations.

MFC after: 1 week

15 years agoClobber "cc" instead of using volatile; remove obsolete register keyword.
ed [Sat, 13 Jun 2009 14:00:10 +0000 (14:00 +0000)]
Clobber "cc" instead of using volatile; remove obsolete register keyword.

Submitted by: Christoph Mallon

15 years agoSimplify the inline assembler (and correct potential error) of pte_load_store().
ed [Sat, 13 Jun 2009 13:56:06 +0000 (13:56 +0000)]
Simplify the inline assembler (and correct potential error) of pte_load_store().

Submitted by: Christoph Mallon

15 years agoWrap some macros that needed wrapping.
des [Sat, 13 Jun 2009 13:54:03 +0000 (13:54 +0000)]
Wrap some macros that needed wrapping.

MFC after: 1 week

15 years agoSync termcap.small with main termcap; add xterm entry for libteken
edwin [Sat, 13 Jun 2009 13:35:18 +0000 (13:35 +0000)]
Sync termcap.small with main termcap; add xterm entry for libteken

PR: conf/135530
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
MFC after: 1 week

15 years agoRemove the static from int hardlink_check_uid.
bz [Sat, 13 Jun 2009 13:09:20 +0000 (13:09 +0000)]
Remove the static from int hardlink_check_uid.
There is an external use in the opensolaris code.

I am not sure how this ever worked but I have seen two reports of:
link_elf: symbol hardlink_check_uid undefined
lately.

Reported by: Scott Ullrich (sullrich gmail.com), pfsense
Reported by: Mister Olli (mister.olli googlemail.com)

15 years agoRemove casts from {c,m,re}alloc() and simplify sizeof().
des [Sat, 13 Jun 2009 13:07:56 +0000 (13:07 +0000)]
Remove casts from {c,m,re}alloc() and simplify sizeof().

MFC after: 1 week

15 years agoMake the proof-of-concept UTF-8 support in Syscons less useless.
ed [Sat, 13 Jun 2009 12:23:31 +0000 (12:23 +0000)]
Make the proof-of-concept UTF-8 support in Syscons less useless.

Add a small Unicode-to-CP437 remapping table to at least demonstrate
that the terminal emulator is perfectly capable of handling UTF-8. This
will of course break if the user loads a different font map, but it at
least allows people to give it a try.

I can now see the box drawing in dialog(1) and the arrows in mutt(1)
correctly.

15 years agoCorrect entry of vendor ID 0x0d8c. It's C-Media, not ABC.
sanpei [Sat, 13 Jun 2009 11:18:47 +0000 (11:18 +0000)]
Correct entry of vendor ID 0x0d8c.  It's C-Media, not ABC.

Obtained from: NetBSD usbdevs rev.1.418

15 years agoFix Book-E/MPC85XX build. Some prototypes were wrong and got revealed with
raj [Sat, 13 Jun 2009 08:57:04 +0000 (08:57 +0000)]
Fix Book-E/MPC85XX build. Some prototypes were wrong and got revealed with
the recent kobj signature checking.

15 years agoMake variables static where appropriate.
thompsa [Sat, 13 Jun 2009 04:56:45 +0000 (04:56 +0000)]
Make variables static where appropriate.

Found by: cscout