Commit Graph

97390 Commits

Author SHA1 Message Date
wiz
f7d76b1062 bcmp -> memcmp. 2002-05-22 16:03:14 +00:00
wiz
45bbb2368f bcopy -> memcpy. Reviewed by Greg Oster. 2002-05-22 15:40:47 +00:00
uch
c46d7a2d08 increase partition to 16. 2002-05-22 15:02:22 +00:00
uch
ba28fa4dc2 change disklabel to
16 partition.
 no bsd area of the disk.
2002-05-22 15:01:33 +00:00
tron
f2679ef4e3 Revert last change after protoype of getnameinfo(3) has been changed back. 2002-05-22 14:42:37 +00:00
drochner
7a829b7e85 -Subtract vm_map_min(kernel_map) from kernel virtual addresses to get offsets
into kernel_object where this was missing.
 (important here because VM_MIN_KERNEL_ADDRESS != 0)
-add some diagnostics
-eliminate some differences to other Utah derived pmaps
2002-05-22 14:34:26 +00:00
drochner
60b6f587bc Subtract vm_map_min(kernel_map) from kernel virtual addresses to get offsets
into kernel_object where this was missing.
This is a no-op on ports where VM_MIN_KERNEL_ADDRESS==0, ie all but
cesfic.
Confirmed and corrected by Chuck Silvers.
2002-05-22 14:29:23 +00:00
simonb
c9e9cab056 We don't need the code to discard setgid privileges if we aren't setgid! 2002-05-22 13:12:27 +00:00
wiz
5f7ebe2497 Grammar fix, and drop a .Pp after a section header. 2002-05-22 10:22:41 +00:00
bjh21
6bd902a1db Adapt for recent lib/libc/softfloat changes. 2002-05-22 10:20:20 +00:00
kleink
a24f74d0fd Turn the flags argument to getnameinfo(3) back into an int (from unsigned
int); this is consistent with RFC2553, the current draft-ietf-ipngwg-
rfc2553bis-05 and the majority of deployed implementations.

Also, there is an effort under way to have this changed back to int in
XBD6/XSH6, XNS, and POSIX-2001 TC1.
2002-05-22 09:42:37 +00:00
itojun
0ee7a49136 if called multiple times with different names, only the last pid file
will be kept
2002-05-22 07:37:26 +00:00
itojun
c2c2980f42 change return type of pidfile(3) to int (-1 on error), to inform caller
of errors.  behavior now in sync with openbsd implementation.
(see tech-userlevel and bsd-api-discuss)
2002-05-22 07:31:40 +00:00
simonb
1c5a1746ae Fix space/tab indentation nit. 2002-05-22 05:49:57 +00:00
manu
381f22f4de File forgotten in the previous commit. 2002-05-22 05:14:51 +00:00
manu
23f31f2a3a First implementation of IRIX /dev/usemaclone functionnalities. This
successfully emulates a few test program that use poll semaphores,
including the attach-to-file-descriptor-and-select feature.

There are a few issues:
1) at least one ioctl need to set retval. We handle this in irix_sys_ioctl()
by replacing the data argument by a pointer to a strucutre in the stackgap
that carries the real data and retval. The underlying ioctl methods can
therefore retreive both data and retval.

2) usemaclone is a cloning device: each time it is open, it creates a new
context, and ioctl operation on each open file descriptor will lead to
different behavior. This functionnality is available in NetBSD through the
devvp branch. This first implementation does not use devvp yet, but this
should be done later. Currently, we create a new vnode, and we provide our
own vnode operations. Some operation are applied to the cloned vnode, others
are applied to the original vnode. The v_data field is used to hold a
reference to the original vnode so that we can work on it.

3) at least the setattr vnode operation needs some customisation: IRIX
libc relies on the fact that fchmod on /dev/usema will return 0 in case
of failure.
2002-05-22 05:14:00 +00:00
manu
c56a07ad1c Added an irix_machdep.h (in the future, COMPAT_IRIX will be available on
several MIPS architectures)
2002-05-22 04:59:45 +00:00
tv
d2f1bd9cd1 Wouldn't it be nice if there were only one thing that needed changing on a
full version bump?  (Fix comment after __NetBSD_Version__.)
2002-05-22 03:29:09 +00:00
tv
3479915ba0 And it would probably be nice if 1.6 were reflected in the list of version
numbers.
2002-05-22 03:27:52 +00:00
tv
9f4e74bc62 1.6 has branched. Welcome to "NetBSD 1.6A". 2002-05-22 03:18:19 +00:00
itojun
6a3445b8a3 be picky about string manipulation in reverse lookups 2002-05-22 02:39:15 +00:00
itojun
b617695b31 use strlcpy, not strcpy 2002-05-22 01:52:24 +00:00
uch
dd2fce922b fix device minor. 2002-05-22 01:28:57 +00:00
nathanw
86d9b59155 We're up to libcurses 5 these days. 2002-05-22 00:26:10 +00:00
bjh21
8f63ecd333 Correct the types of float_rounding_mode and float_exception_flags. 2002-05-22 00:01:35 +00:00
bjh21
e60b25c155 Adapt for recent changes to lib/libc/softfloat 2002-05-21 23:58:42 +00:00
nathanw
be856ef968 When attempting to guess the filesystem type from the disklabel, don't
consider a out-of-range partition letter at the end of the special
device node to be a fatal error; just return NULL and let the caller
fall back to FFS.

This fixes the "mount -u /kern/rootdev /" done by the script installer.

XXX this is still gross, and breaks things like
"mount /my/strange/dev/path/b /mnt". Perhaps it should stat the node
and use the minor number as an index instead?
2002-05-21 23:51:19 +00:00
bjh21
936b7f4cf8 Import the 32-bit version of SoftFloat 2a and separate it and the 64-bit
version into different directories.  Which version a given port uses is
controlled by the SOFTFLOAT_BITS make variable.  This is set to 64 (which
uses the same code we had before) by default.  32-bit platforms that don't
need extended precision support might get better performance by using 32.

Set the ARM port to use the 32-bit version of SoftFloat, since this is more
than a factor of two faster than the 64-bit version.  This should get the
floating-point performance back to what it was in 1.5.
2002-05-21 23:51:04 +00:00
itojun
861f132ad1 use pidfile(3). sync w/kame 2002-05-21 23:35:18 +00:00
rafal
7a98b3fbfe Another one from Scott Taylor: add boot.elf to sgimips MD base list. 2002-05-21 23:23:48 +00:00
itojun
1b614e8939 minor sync w/kame (prototype location) 2002-05-21 23:16:39 +00:00
rafal
4a3f0ef3a4 sysinst updates for sgimips from Scott Taylor with some tweaks from me.
For now, we keep the GENERIC/GENERIC_INDY sets, but make the labels a
bit clearer as to their purposes.

XXX: Still need code to install bootloader into volhdr; need either to
integrate into MI installboot or fix up sgivol (I have changes from Scott
for sgivol, just haven't folded them in yet).
2002-05-21 21:59:03 +00:00
rafal
3ac921616c Make sure to read from stdin, not stdout. From Scott Taylor. 2002-05-21 21:53:35 +00:00
rafal
722dca8509 Turn kernels into ecoff as well by default. 2002-05-21 21:01:34 +00:00
rafal
a5a7e0f25c Add RAMDISK kernels for installation. 2002-05-21 21:00:35 +00:00
rafal
be1025a9ed Add glue for release stuff, extra ramdisk kernels, etc. 2002-05-21 20:56:19 +00:00
rafal
8917c72df2 Release machinery for port-sgimips; original work by Scott Taylor (sgimips
at mrynet.com), NDWO-ified by me (so all bugs are probably my fault).
2002-05-21 20:54:16 +00:00
rafal
3d46bd9251 For reference purposes (as it currently doesn't build): add miniroot build
directory; the ramdisk build also relies on the termcap entry here, so this
isn't totally useless.  All based on work by Scott Taylor (sgimips at
mrynet.com), with bugs most likely added by me.
2002-05-21 20:51:34 +00:00
matt
077fee836c Add code to distinguish between apple and sun gem cores. 2002-05-21 19:58:24 +00:00
tsutsui
8157a94d99 Define and use both HOSTTOTARGET32() and TARGET32TOHOST() properly.
(just for consistency)
2002-05-21 16:49:19 +00:00
tsutsui
88023fad08 Rename dir ramdisk-kernel/ -> instkernel/ 2002-05-21 16:33:37 +00:00
tsutsui
e1e5065c28 List shortlived MD bbinfo.h. 2002-05-21 16:20:03 +00:00
tsutsui
67d9bb7946 /usr/mdec/installboot has been superseded by MI /usr/sbin/installboot. 2002-05-21 16:16:25 +00:00
tsutsui
4a46bc7dbc boot block info stuff is now in MI <sys/bootblock.h>. 2002-05-21 16:11:11 +00:00
tsutsui
6734af58f9 NEWS_BOOT_BLOCK_OFFSET is now changed to 0, so use NEWS_BOOT_BLOCK_BLOCKSIZE
to allocate buffer to read LABELSECTOR.
2002-05-21 14:59:38 +00:00
itojun
313e584cb8 correct bitmask computation. more KNF. sync w/kame 2002-05-21 14:29:52 +00:00
itojun
33413b2866 KNF. a memory leak fix. sync w/kame 2002-05-21 14:22:05 +00:00
lukem
1dfde69630 Support shell metacharacters (`*', '?', '[') in /etc/changelist lines,
including checks for "backups that exist when actual file is deleted", a la
the existing mechanism used for "/etc/ifconfig.*" ... "/etc/rc.d/*" checks.
This resolves [security/15798] from Bob Kemp <bob@allegory.demon.co.uk>.
2002-05-21 13:50:46 +00:00
christos
71fa9914d7 PR/16941: Antti Kantee: Clean up unused functions. 2002-05-21 12:51:27 +00:00
lukem
a40243df30 When using backup_uses_rcs=YES in backup_file(), after checking the file
in and setting -kb, check it out again, since the initial check in
trashes any RCSIDs (because -kb wasn't set at that time).

This stops the annoying situation where you add a new file (e.g, "foo")
which contains an RCSID and you get *two* notifications of differences
in two successives runs of /etc/security; the first when the file is
initially checked in and a second when diff finds the RCSID is different
(contains "foo.conf,v 1.1" instead of "foo,v 1.66").
2002-05-21 12:31:01 +00:00