Maxim Sobolev [Fri, 11 Oct 2002 11:43:09 +0000 (11:43 +0000)]
- Add support for IPC_64 extensions into shmctl(2), semctl(2) and msgctl(2);
- add wrappers for mmap2(2) and ftruncate64(2) system calls;
- don't spam console with printf's when VFAT_READDIR_BOTH ioctl(2) is invoked;
- add support for SOUND_MIXER_READ_STEREODEVS ioctl(2);
- make msgctl(IPC_STAT) and IPC_SET actually working by converting from
BSD msqid_ds to Linux and vice versa;
- properly return EINVAL if semget(2) is called with nsems being negative.
David E. O'Brien [Fri, 11 Oct 2002 10:07:46 +0000 (10:07 +0000)]
Sync with 2.13. Reduce forking by using multiple sed expressions rather
than piping thru tr(1). Also prefer case over for+test, as case will
handle regex's nicely.
Note we can't exactly follow the real 2.13 genscripts.sh as we wind up with
multiple "'s in search paths. It is too late tonight to track down why.
Ruslan Ermilov [Fri, 11 Oct 2002 09:16:24 +0000 (09:16 +0000)]
Groff 1.18.1 comes in with ANSI color support, enabled by default.
In "nroff" mode, italic font renders as an underlined text, which
makes it indistinguishable from the bold text on color monitors
(cons25 terminal type), yet it requires the less(1)'s -R option.
(Refer to the new grotty(1) manpage for details.)
So turn off the color support for now (when generating catpages),
until we figure out what do we do with this new feature. I have
a patch for grotty(1) that tells it to use the "reverse video"
attribute to render the italic font. Once this is accepted, we
can turn color support back on (if there won't be any objections
from the community).
David E. O'Brien [Fri, 11 Oct 2002 07:42:20 +0000 (07:42 +0000)]
*sigh* The GNU folks want to layer and abstract yet another standard API.
This time remove the xregex redirection and just directly use their own
gnuregex.
David E. O'Brien [Fri, 11 Oct 2002 06:08:01 +0000 (06:08 +0000)]
Merge our ELF branding into Binutils 2_13_20021011 snapshot.
(note that this will be the last Binutils update to offer our original
method of ELF branding (WANT_OLD_BRANDELF_METHOD))
Warner Losh [Fri, 11 Oct 2002 04:30:59 +0000 (04:30 +0000)]
o Set CBB_CARD_OK just before CARD_ATTACH_CARD. If ATTACH_CARD fails, then
clear the bit. This allows ata driver to attach its children because
it needs the interrupts enabled to succeed.
Submitted by: iwasaki-san
o Spell CardBus as CardBus, not Cardbus or CardBUS while I'm here.
Kirk McKusick [Fri, 11 Oct 2002 01:04:14 +0000 (01:04 +0000)]
When considering a vnode for reuse in getnewvnode, we call
vcanrecycle to check a free vnode's availability. If it is
available, vcanrecycle returns an error code of zero and the
vnode in question locked. The getnewvnode routine then used
to call vn_start_write with the V_NOWAIT flag. If the filesystem
was suspended while taking a snapshot, the vn_start_write would
fail but getnewvnode would fail to unlock the vnode, instead
leaving it locked on the freelist. The result would be that the
vnode would be locked forever and would eventually hang the
system with a race to the root when it was attempted to recycle
it. This fix moves the vn_start_write check into vcanrecycle
where it will properly unlock the vnode if it is unavailable
for recycling due to filesystem suspension.
Tim J. Robbins [Thu, 10 Oct 2002 22:56:18 +0000 (22:56 +0000)]
Add a UTF-8 encoding method, which will eventually replace the antique
"UTF2" method. Although UTF-8 and the old UTF2 encoding are compatible
for 16-bit characters, the new UTF-8 implementation is much more strict
about rejecting malformed input and also handles the full 31 bit range
of characters.
Juli Mallett [Thu, 10 Oct 2002 19:27:48 +0000 (19:27 +0000)]
Move utilitarian routines to util.c, which isn't the same as the old
compatability-geared util.c. These are things like message printers
and the PrintAddr function for traversing lists. Other general-purpose
utilities inside make(1) can go here, in time.
Robert Watson [Thu, 10 Oct 2002 17:02:11 +0000 (17:02 +0000)]
Hook up strsep(3) to libkern following a repo-copy by Peter. This will
allow us to avoid nasty by-hand string parsing stuff in a number of
places in the kernel, reducing the risk of unexpected consequences
for kernel correctness.
Robert Watson [Thu, 10 Oct 2002 16:47:21 +0000 (16:47 +0000)]
Add -h flags to each of the *extattr(8) commands, indicating that
the command should not follow the symlink if the target file is a
symlink. Invoke the extattr_*_link(2) version of the system call
in that situation, instead of extattr_*_file(2). This is
consistent with other attribute management tools in the system.
Robert Watson [Thu, 10 Oct 2002 13:59:58 +0000 (13:59 +0000)]
Incremental style improvements: more consistently avoid assignments
in conditionals; remove some excess vertical whitespace; remove a
bug in the return handling of the delete_vp() case for MAC.
Alexander Kabaev [Thu, 10 Oct 2002 04:53:15 +0000 (04:53 +0000)]
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
1.10 -mno-align-long-strings
1.11 Allow the specification of LONG_TYPE_SIZE on the command line.
Alexander Kabaev [Thu, 10 Oct 2002 04:51:11 +0000 (04:51 +0000)]
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
1.2 -fformat-extensions
1.7 FORCE_OPTIMIZATION_DOWNGRADE knob for Alpha
1.14 -O0 -O1 should optimize alignment for time, not size
Alexander Kabaev [Thu, 10 Oct 2002 04:49:03 +0000 (04:49 +0000)]
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
1.\\{2,15\\} FREEBSD_NATIVE
1.\\{5,13\\} ELF, and objformat support
1.\\{16,23,25\\} Better cross building control
1.21 'GCC_OPTIONS'
1.27 cross-arch MD_EXEC_PREFIX fixes
cc -print-search-dir fixes
1.28 Read specs from /usr/libdata/gcc/specs, if available