christos
16b723da95
CID 1308958: Fix reversed arguments in copyin(9)
2015-06-29 15:44:45 +00:00
christos
876dffc92e
Wait for the next character forever as kgdb wants.
2015-06-26 14:26:38 +00:00
hannken
4e19d4c756
Add a vfs_newvnode() method to deadfs and use it to create
...
anonymous device vnodes with bdevvp() and cdevvp().
Implement spec_inactive() and spec_reclaim() to handle these nodes.
2015-06-23 10:42:34 +00:00
hannken
142e4ca539
Use VFS_PROTOS() for deadfs. Rename dead_mount to dead_rootmount.
2015-06-23 10:41:59 +00:00
hannken
20184d2ffd
Remove the test for mounted-on block devices in vclean() and
...
always close the vnode here.
A forced unmount of a file system holding a mounted-on
block device will make this mounted-on file system unusable.
2015-06-23 10:40:36 +00:00
matt
9d9e6580c0
Make module_machine const char *
2015-06-22 16:35:13 +00:00
martin
4c145ea87f
Make mqueue_get public, rearrange mq_open into a helper function that can
...
be called from compat code, adapt mqueue_create accordingly.
2015-06-20 14:41:54 +00:00
martin
c41d48b868
Make handle_modctl_load() usable from compat/netbsd32.
2015-06-19 14:23:59 +00:00
martin
5f7e4ad45b
Make kill1 public (we'll need it from compat/netbsd32)
2015-06-19 10:18:19 +00:00
pooka
a3cfad0d94
regen
2015-06-18 15:19:50 +00:00
pooka
3de8e14458
+RUMP to __posix_{,f,l}chown. at least python wants them.
2015-06-18 15:16:12 +00:00
gson
873b1ca5ad
Revert previous; it broke the lib/libc/ttyio/t_ttyio/ioctl test case.
2015-06-14 16:19:31 +00:00
dholland
aad8cec383
Typo in comment.
2015-06-12 19:18:30 +00:00
dholland
28bb489865
Use NOFOLLOW intead of <empty>. Purely cosmetic as NOFOLLOW is 0, but
...
it's supposed to be there for clarity.
2015-06-12 19:06:32 +00:00
gson
6b1c582456
When closing a tty, limit the amount of time spent waiting for the
...
output to drain to five seconds so that exiting processes with
buffered output for a serial port blocked by flow control do not
hang indefinitely. Should fix PR kern/12534. OK christos.
2015-06-12 17:28:53 +00:00
prlw1
4b3129d595
typo
2015-05-25 21:02:37 +00:00
rtr
d458601fe5
change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf *
...
fixes m_serv (single mbuf leak) leak in kern/subr_tftproot.c
2015-05-21 02:04:22 +00:00
pooka
6e547c6725
Don't log kern.msgbuf* sysctls. it's rather pointless, nobody can
...
unload subr_log.c
2015-05-20 11:18:36 +00:00
pooka
f67bb039d4
group msgbuf sysctls with the msgbuf code
...
(init_sysctl.c -> subr_log.c)
2015-05-20 11:17:24 +00:00
matt
d0c9fc59d2
Change the ksyms ioctls to more compat_netbsd32 friendly. Use _IOWR ioctls
...
to avoid extra copyouts. With these changes, netstat and vmstat work on
mips64eb with the normal N32 userland and a N64 kernel.
2015-05-20 02:45:20 +00:00
chs
f3abe35cbf
in bounds_check_with_*, reject negative block numbers and avoid
...
a potential overflow in calculating the size of the request.
2015-05-14 17:31:24 +00:00
pgoyette
50b0fae6fd
Regenerate
2015-05-13 02:13:08 +00:00
pgoyette
855a17b428
Update syscalls to point to the new module. (Regen of dependant
...
files to follow.)
2015-05-13 02:10:46 +00:00
pgoyette
75eb6c4280
Create a new sysv_ipc module to contain the SYSVSHM, SYSVSEM, and
...
SYSVMSG options. Move associated variables out of param.c and into
the module's source file.
2015-05-13 02:06:25 +00:00
pgoyette
40997f1238
Another xxxfini() routine.
2015-05-13 01:23:10 +00:00
pgoyette
446e5f46eb
More prep: add a xxxfini() routine to each subcomponent so we can
...
clean up after ourselves. Mostly, this checks to make sure that
there are no active itmes, and then deallocates wired kernel virtual
memory. For SYSVSEM, we also disestablish the exithook() so we
won't try to call it after destroying its memory pool!
2015-05-13 01:16:15 +00:00
pgoyette
748778c4ee
More preparation for modularizing the SYSVxxx options. Here we
...
change the kern.ipc.sysvxxx sysctls into dynamic values, so each
sub-component of SYSVxxx can declare its own availability.
2015-05-13 01:00:16 +00:00
pgoyette
ae8c40588e
In preparation for modularization of the SYSV* options, restore the
...
use of opt_sysv.h to get the -DSYSVxxx definitions.
2015-05-12 05:19:20 +00:00
rtr
a05061a0c1
mtod mbuf to sockaddr * for so_send().
2015-05-10 18:55:22 +00:00
pgoyette
5608b80ca0
Regen for changes related to separation of compat_sysv syscalls into a
...
separate module.
2015-05-10 08:13:41 +00:00
pgoyette
ff00f0b594
Split the SYSV* compat code out into a separate compat_sysv module.
...
For monolithic kernels, both modules will be compiled as "built-ins",
while modular environments will be able to load the SYSVSEM, SYSVSHM,
and SYSVMSG code independant from the rest of compat.
This is a necessary precursor step to making the "STD" SYSV* code
into a separate module.
Tested in both monolithic and modular environments with no errors
seen.
2015-05-10 07:41:15 +00:00
rtr
d53103fc75
change sosend() to accept sockaddr * instead of mbuf * for nam.
...
bump to 7.99.16
2015-05-09 15:22:47 +00:00
pooka
3e29c19da0
fix to work for syscalls.conf without sysautoload
...
reported by Justin('s buildbot)
2015-05-09 10:57:04 +00:00
pgoyette
e7d73c5ce1
Regen again, this time without the extra word in the "generated from" line.
2015-05-09 06:06:14 +00:00
pgoyette
6d24076578
Remove extraneous word 'compat' on header line
2015-05-09 06:04:13 +00:00
pgoyette
bd1072bc60
Another regenerated file
2015-05-09 05:58:53 +00:00
pgoyette
718c347b7c
Add new configuration variable to point at the list of auto-loadable
...
syscalls
2015-05-09 05:57:18 +00:00
pgoyette
6318a1352e
Use the generated list of auto-loadable syscalls rather than our own
...
hard-coded list.
2015-05-09 05:56:36 +00:00
pgoyette
060ac9689e
Regen from syscalls.master
2015-05-09 05:55:43 +00:00
pgoyette
98e18f463f
Teach makesyscalls.sh how to auto-generate the list of syscalls that
...
can be resolved by module auto-load.
Update syscalls.master to identify the specific module that contains
the auto-loadable code for each syscall.
2015-05-09 05:51:26 +00:00
martin
2a3b2deb34
Backout previous, Nick has a fix for binutils.
2015-05-08 09:43:41 +00:00
martin
fe65851c65
On mips64, the size calculation for the symbol table is off by a few bytes
...
(probably a bfd bug or misconfiguration), so add a bit of slope here
untill we fix it.
2015-05-08 07:41:07 +00:00
hannken
e10a32f7f7
Remove miscfs/syncfs and
...
- move the syncer into kern/vfs_subr.c.
- change the syncer to process the mountlist and VFS_SYNC as appropriate.
- use an API for mount points similiar to the API for vnodes:
- vfs_syncer_add_to_worklist(struct mount *mp) to add
- vfs_syncer_remove_from_worklist(struct mount *mp) to remove a mount.
No objections on tech-kern@
2015-05-06 15:57:07 +00:00
mlelstv
c0ea84ad3c
Always fixup zero sector size, even when other geometry values are invalid.
2015-05-05 22:09:24 +00:00
rtr
5f2c7f7738
flip (NULL == addr) to (addr == NULL) use in conditional from previous
...
commit.
2015-05-03 04:18:45 +00:00
rtr
f6bef303da
compare mbuf * pointer to NULL instead of 0
2015-05-02 23:46:04 +00:00
rtr
c027610558
remove unnecessary check that nam != NULL before deref in soconnect()
...
(added in previous commit).
sockargs copyin() makes sure we don't get NULL here
2015-05-02 21:15:33 +00:00
rtr
487c8ce86e
make soconnect() fail with EAFNOSUPPORT if the domain of the socket does
...
not match family received in the sockaddr.
* connect() now fails as documented in connect(2).
* atf test t_connect:connect_foreign_family now passes.
2015-05-02 20:10:26 +00:00
rtr
fd12cf39ee
make connect syscall use sockaddr_big and modify pr_{send,connect}
...
nam parameter type from buf * to sockaddr *.
final commit for parameter type changes to protocol user requests
* bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}
2015-05-02 17:18:03 +00:00
mlelstv
1cd9710165
Merge dk_intf and dkdriver interfaces.
...
Merge common disk driver functionality in ld.c with dksubr.c.
Adjust the two previous users of dk_intf (cgd and xbd) to
the changes.
This file was missing from the commit.
2015-05-02 12:57:19 +00:00