Commit Graph

36996 Commits

Author SHA1 Message Date
thorpej
b4e77b173a Add support for non-contiguous physical memory, using MACHINE_NEW_NONCONTIG.
These changes also recover memory that is located before the kernel in
the first system software segment on systems which do not use the PROM
for console I/O.  Written by Chris Demetriou and myself.
1998-02-16 03:59:55 +00:00
thorpej
2b06ffd5f9 Add support for UVM. 1998-02-15 21:19:34 +00:00
thorpej
8559f25d47 Implement kcopy(), like bcopy(), but aborts if a fault is encountered.
Required for UVM.
1998-02-15 21:18:45 +00:00
tls
91de585d5f Add correct copyright notice for IP address hash change. This code is donated to TNF by the original copyright holder, Panix. 1998-02-15 18:24:23 +00:00
kleink
fd709cbde8 Add an `-r' flag (which is a no-op) to meet XPG4.2 requirements. 1998-02-15 17:08:17 +00:00
thorpej
0149d8b5a8 Make this work as if we were using suffix rules. 1998-02-15 02:54:17 +00:00
thorpej
82c0730290 Sigh, pasto. 1998-02-15 02:41:40 +00:00
thorpej
c7c858669b Make a note that if additional troff macro definitions are added, the
dependency list in bsd.man.mk should be updated.
1998-02-15 01:08:50 +00:00
thorpej
4d8ed30c33 Make the .N.catN rules depend on the troff macros used in manpage builds. 1998-02-15 01:07:46 +00:00
thorpej
9452ea8c0b Put RCS IDs in the right place. 1998-02-15 00:40:07 +00:00
thorpej
7182d6c160 In the build targer, make sure the troff macros are installed before
attempting to build manual pages.
1998-02-15 00:33:03 +00:00
kleink
9d4229ed21 Regen: use POSIX semantics for chown()/fchown(). 1998-02-14 22:06:38 +00:00
kleink
d3e69807a6 Use sys___posix_{chown,fchown}() instead of sys_{chown,fchown}(). 1998-02-14 22:04:56 +00:00
kleink
96f0dccbdd * Use sys___posix_{chown,fchown}() instead of sys_{chown,fchown}().
* Change reference from sys_posix_rename() to sys___posix_rename().
1998-02-14 21:57:02 +00:00
kleink
f1d879bb87 Regen: use POSIX semantics for chown()/fchown()/rename() syscalls, add lchown(). 1998-02-14 21:43:35 +00:00
kleink
b9233971cd * Use sys___posix_{chown,fchown}() insteade of sys_{chown,fchown}().
* Change reference from sys_posix_rename() to sys___posix_rename().
* Emulate lchown().
1998-02-14 21:40:54 +00:00
kleink
6dccfbdf6f Regen: use POSIX semantics for chown()/fchown()/rename() syscalls, add lchown(). 1998-02-14 21:31:26 +00:00
kleink
c19ebc067c * Use sys___posix_{chown,fchown}() instead of sys_{chown,fchown}().
* Change reference from sys_posix_rename() to sys___posix_rename().
* Emulate lchown().
1998-02-14 21:29:14 +00:00
kleink
8defdfc372 Regen: sys_fchown() -> sys___posix_fchown(). 1998-02-14 21:19:37 +00:00
kleink
ab93fc5e02 Use sys___posix_fchown() instead of sys_fchown(). 1998-02-14 21:16:35 +00:00
kleink
9cda9b2393 * chown(): use sys___posix_chown().
* rename():  change reference to sys___posix_rename().
1998-02-14 21:13:52 +00:00
kleink
81f5f29918 Regen: sys_fchown() -> sys___posix_fchown(). 1998-02-14 21:03:48 +00:00
mycroft
b1d2d2c0b4 Do the OBJDIR hackery just like everything else does it.
Fixes several bugs.
1998-02-14 20:58:23 +00:00
kleink
5d1d29ff65 Use sys___posix_fchown() instead of sys_fchown(). 1998-02-14 20:58:21 +00:00
mycroft
bfea7a2499 Nuke echo_objdir from orbit. 1998-02-14 20:57:21 +00:00
kleink
5c1fbd0e44 * chown(): use sys___posix_chown().
* rename():  change reference to sys___posix_rename().
1998-02-14 20:52:47 +00:00
kleink
2323c86415 Bump libposix minor version to 1: addition of chown(), fchown() and lchown(). 1998-02-14 20:44:54 +00:00
kleink
2182dd6195 Generate PSEUDO-stubs for chown(), fchown() and lchown(). Also, change the
prefix of the actual syscall from "posix_" to "__posix_".
1998-02-14 20:44:06 +00:00
kleink
c0dde81ddb If standards-compliance is requested by defining the preprocessor symbols
_POSIX_SOURCE or _XOPEN_SOURCE at compile time, use __RENAME() to call
__posix_chown(), __posix_fchown(), __posix_lchown() and __posix_rename()
instead of their NetBSD counterparts in order to remove the requirement of
linking against libposix.
1998-02-14 20:39:26 +00:00
kleink
5d431855e2 If standards-compliance is requested by defining the preprocessor symbols
_POSIX_SOURCE or _XOPEN_SOURCE at compile time, use __RENAME() to call
__posix_rename() instead of rename() in order to remove the requirement of
linking against libposix.
1998-02-14 20:33:21 +00:00
kleink
e85603746a Bump libc minor version to 26: addition of getsid(), tcgetsid() (both from
thorpej), __posix_chown(), __posix_fchown() and __posix_lchown().
1998-02-14 20:23:28 +00:00
kleink
a2cd9cfb2f Add tcgetsid.c (for thorpej). 1998-02-14 20:20:44 +00:00
kleink
b8ae64f983 Oops, silly typo in last commit. Sigh. 1998-02-14 20:19:35 +00:00
kleink
a2e65602ea Generate syscall stubs for getsid() (from thorpej), __posix_chown(),
__posix_fchown() and __posix_lchown().
1998-02-14 20:18:12 +00:00
kleink
f339e80ad6 Regen: syscalls.master change (addition of __posix_chown(), __posix_fchown(),
__posix_lchown(); posix_rename() -> __posix_rename()).
1998-02-14 20:05:53 +00:00
kleink
3404e6deb3 Implement __posix_chown(), __posix_fchown() and __posix_lchown(). Also,
rename posix_rename() to __posix_rename() to follow this convention.
1998-02-14 20:01:05 +00:00
kleink
e34b0a84a9 Move some permission-checking code for file owner/group changes up to
vfs_syscalls.c::change_owner().  Also, always update the inode's change time
if the operation succeeds.
1998-02-14 19:56:30 +00:00
kleink
3ef309317a * Factor out some permission-checking code from ufs_setattr() into
change_owner().
* Change the semantics of chown(), fchown() and lchown(): when requesting a
  change of the owner of a file, clear the set-user-id bit; analogous behaviour
  for group changes.
* Since the above is a violation of the semantics specified by POSIX and
  X/Open, add corresponding compatibility syscalls: __posix_chown(),
  __posix_fchown(), __posix_lchown().  (Neither fchown() nor lchown() is
  specified by POSIX; the prefix is intended to reflect the semantics.)
* Rename posix_rename() to __posix_rename() to follow the above convention.
1998-02-14 19:49:43 +00:00
kleink
59fe905973 Fix variable declarations: register -> register int. 1998-02-14 19:34:12 +00:00
pk
0fc808b760 Think-o in pmap_extract4m(), detected by UVM. 1998-02-14 09:28:52 +00:00
mycroft
371ff49dd5 Kill a GCC warning on the SPARC. 1998-02-14 07:25:55 +00:00
cgd
1584dc4420 The pmap_emulate_reference warning about the page not being managed should
be a panic instead.  If it's hit, "random" memory is going to be corrupted.
1998-02-14 02:04:05 +00:00
thorpej
8d14398fed Note that tcgetsid(3) and getsid(2) are not yet built into the C library.
This is because with a day or two, 3 other system calls are going to be
added to the C library, and we want to avoid bumping the minor number
twice.
1998-02-14 01:40:22 +00:00
thorpej
e6eb50fc11 Add getsid.2 1998-02-14 01:38:36 +00:00
thorpej
4af6e3220d Document getsid(2). 1998-02-14 01:38:21 +00:00
thorpej
a83de03bf8 Add tcgetsid.3 1998-02-14 01:37:06 +00:00
thorpej
722a21c4ab Implement tcgetsid(3) - get session ID associated with a controlling
terminal, per XPG4.2.
1998-02-14 01:36:14 +00:00
thorpej
5f8168f660 Use the sesssion's stored SID in getsid(). 1998-02-14 01:33:18 +00:00
thorpej
8efb4289b4 syscalls.master changed; regen. 1998-02-14 01:30:20 +00:00
thorpej
44102031da We now have a native getsid(2), so there's no need to implement it here;
just use sys_getsid().
1998-02-14 01:29:43 +00:00