NetBSD/sys/sys
manu 41bfbd28fe On Darwin, mach_init is the system bootstrap process. It is responsible
for forking the traditional UNIX init(8) and it does the Mach port naming
service. We need mach_init for the naming service, but unfortunately, it
will only act as such if its PID is 1. We introduce a sysctl
(emul.darwin.init_pid) to fool a given process into thinking its PID is 1.
That way we can get mach_init into behaving as the name server.

Typical use:
/sbin/sysctl -w emul.darwin.init_pid=$$ ; exec /emul/darwin/sbin/mach_init
2002-12-24 12:15:45 +00:00
..
Makefile For some mysterious reason we have to actually install "siginfo.h" to be 2002-11-27 13:30:06 +00:00
acct.h acctp is not used anywhere so delete it. 2002-05-12 20:35:15 +00:00
agpio.h
ansi.h Provide private definitions for in_{addr,port}_t. 2002-05-12 22:58:48 +00:00
ataio.h "definitions" has lots of 'i's, but that's not reason to leave one out. 2002-09-29 23:23:56 +00:00
audioio.h Add AudioNvideo, AudioNcenter, AudioNdepth, and AudioNlfe 2002-10-12 07:39:00 +00:00
boot_flag.h
bootblock.h /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:30:55 +00:00
bswap.h
buf.h Move forward decls earlier in the file. Expose bufq_state for the 2002-10-06 17:05:56 +00:00
callout.h
cdefs.h Add support for "link sets", which are arrays of pointers to objects 2002-11-01 22:58:44 +00:00
cdefs_aout.h Fix typo in a.out link set macros (s/ifdef/ifndef/). 2002-12-05 05:47:24 +00:00
cdefs_elf.h Add support for "link sets", which are arrays of pointers to objects 2002-11-01 22:58:44 +00:00
cdio.h
chio.h
clockctl.h Changed clocktl interface to use syscallargs structures 2001-12-09 16:10:43 +00:00
conf.h now that mem_no is emitted by config(8), there is no reason to keep 2002-10-26 13:50:17 +00:00
core.h
device.h Add an EVCNT_ATTACH_STATIC() macro which gathers static evcnts 2002-11-24 17:33:43 +00:00
dir.h
dirent.h
disk.h implement separate read/write disk statistics: 2002-11-01 11:31:50 +00:00
disklabel.h Add a type for CGD. 2002-10-04 18:26:31 +00:00
disklabel_acorn.h
disklabel_mbr.h add MBR_PTYPE_APPLEUFS of 0xa8 2002-09-28 00:56:25 +00:00
dkbad.h Keep the isbad() prototype here where it belongs, instead of random places. 2002-04-21 20:55:48 +00:00
dkio.h Add ioctls to get (DIOCGCACHE) and set (DIOCSCACHE) cache enables 2002-01-09 04:12:11 +00:00
dkstat.h Add sysctls to read tk_{nin,nout,cancc,rawcc} (under a kern.tkstat node). 2002-01-28 02:06:02 +00:00
domain.h framework to add af-dependent data structure to struct ifnet. 2002-05-27 02:53:49 +00:00
dvdio.h Add some headers for region code support (RPC), which will be added in the 2001-12-09 22:54:51 +00:00
endian.h Use <sys/ansi.h> definitions for in_{addr,port}_t. 2002-05-12 22:59:50 +00:00
envsys.h
errno.h Oops, ENOSR: resource -> resources here, too. 2002-11-12 13:52:28 +00:00
event.h merge kqueue branch into -current 2002-10-23 09:10:23 +00:00
eventvar.h merge kqueue branch into -current 2002-10-23 09:10:23 +00:00
exec.h Added support for fingerprinted executables aka verified exec 2002-10-29 12:31:20 +00:00
exec_aout.h Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is. 2002-12-10 17:14:02 +00:00
exec_coff.h
exec_ecoff.h
exec_elf.h Fix typo in comment. 2002-11-27 13:47:15 +00:00
exec_macho.h back out the previous change, which is useless. Darwin loads the libraries 2002-11-29 15:49:09 +00:00
exec_script.h
extent.h
fcntl.h s/FNOSYMLINK/O_NOFOLLOW/ and allow it in open(2). For compatibility with other 2002-12-06 22:43:35 +00:00
fdio.h
featuretest.h From the comment added to the file: 2001-12-20 20:07:24 +00:00
file.h merge kqueue branch into -current 2002-10-23 09:10:23 +00:00
filedesc.h merge kqueue branch into -current 2002-10-23 09:10:23 +00:00
filio.h Provide a ioctl called FIOGETBMAP (there are some who call 2002-12-11 18:25:03 +00:00
gmon.h
hash.h Add <sys/hash.h>, which currently implements three inline functions: 2001-12-05 06:51:55 +00:00
inttypes.h
ioccom.h
ioctl.h
ioctl_compat.h Reorder things so that multiple inclusion protection so optional 2002-12-01 22:57:17 +00:00
ipc.h Expose the IPC_[RWM] symbols to userspace. 2002-08-07 23:39:24 +00:00
kcore.h
kernel.h Implement pmc(9) -- An interface to hardware performance monitoring 2002-08-07 05:14:47 +00:00
kgdb.h add support for the `D' kgdb detach command 2002-01-05 22:57:38 +00:00
kthread.h
ktrace.h Pass the system call table to trace_enter() and ktrsys() so that it is 2002-12-21 16:23:56 +00:00
lkm.h Avoid strict-alias warnings. 2002-12-11 12:13:11 +00:00
localedef.h - No need to include sys/param.h and sys/types.h here. 2002-11-19 09:53:16 +00:00
lock.h Move kernel_lock manipulation info functions so that they will 2002-05-21 01:38:26 +00:00
lockf.h
malloc.h M_ZERO for inline'ed MALLOC. 2002-11-02 06:24:34 +00:00
mbuf.h Reorder things so that multiple inclusion protection so optional 2002-12-01 22:57:17 +00:00
md4.h
md5.h
midiio.h
mman.h
mount.h Add MNT_GETARGS that retrieves fs specific arguments. Also add an empty 2002-09-21 18:06:08 +00:00
msg.h
msgbuf.h
mtio.h Use "#define<tab>" consistantly. 2002-04-08 12:09:09 +00:00
namei.h Eliminate commons. 2002-05-12 23:06:27 +00:00
null.h
param.h Allow NOFILE to be overridden in kernel configs, similar to MAXUPRC 2002-12-11 23:22:03 +00:00
pipe.h use 'pid_t' for pipe_pgid, rather that 'gid_t' 2002-08-16 10:32:12 +00:00
pmc.h Expose <machine/pmc.h> to userland. 2002-08-08 16:23:19 +00:00
poll.h
pool.h Fix signed/unsigned comparison warnings from GCC 3.3. 2002-08-25 22:51:05 +00:00
proc.h Re-add yield(). Only used by compat code at the moment. 2002-12-21 23:52:05 +00:00
properties.h
protosw.h Spelling police. "DETATCH" is not the right speling. 2002-12-20 20:57:26 +00:00
ptrace.h Move code shared by procfs and the kernel proper out of procfs and 2002-05-09 15:44:44 +00:00
queue.h Add STAILQ_*. Really the same as SIMPLEQ, but this syncs the API with FreeBSD. 2002-12-06 22:23:34 +00:00
radioio.h Add support for radio cards. Written by Maxim Tsyplakov and Vladimir Popov 2002-01-01 21:51:38 +00:00
ras.h MI kernel support for user-level Restartable Atomic Sequences (RAS). 2002-08-28 07:16:33 +00:00
reboot.h
resource.h
resourcevar.h
rnd.h Fix signed/unsigned comparison warnings. 2002-11-10 03:28:59 +00:00
scanio.h
sched.h
scsiio.h Fix two typos in comments. From OpenBSD. 2002-07-10 21:56:42 +00:00
select.h change fields of struct selinfo from si_ to sel_ so that the don't conflict 2002-11-26 19:08:06 +00:00
sem.h use the exithook mechanism to clean up semaphores. 2002-03-17 22:21:58 +00:00
sha1.h
shm.h Expose the IPC_[RWM] symbols to userspace. 2002-08-07 23:39:24 +00:00
siginfo.h This is not used yet. 2002-11-26 19:06:38 +00:00
signal.h deal with siginfo changes, but don't enable SA_SIGINFO outside the kernel 2002-11-26 19:07:14 +00:00
signalvar.h Move declartion of SIGPROP to outside of multiple inclusion protection. 2002-12-01 21:32:05 +00:00
socket.h
socketvar.h merge kqueue branch into -current 2002-10-23 09:10:23 +00:00
sockio.h Add SIOCGIFDATA and SIOCZIFDATA ioctl's to get interface data. (the Z 2002-05-23 21:34:39 +00:00
stat.h Use _LP64 insteadl of __alpha__ to determine if we're generating 64-bit 2002-05-03 00:27:45 +00:00
stdint.h
swap.h
syscall.h Regen: reserved syscall slots for sigwaitinfo(2), sigtimedwait(2), 2002-12-19 23:53:42 +00:00
syscallargs.h Regen: reserved syscall slots for sigwaitinfo(2), sigtimedwait(2), 2002-12-19 23:53:42 +00:00
sysctl.h On Darwin, mach_init is the system bootstrap process. It is responsible 2002-12-24 12:15:45 +00:00
syslimits.h
syslog.h
systm.h Pass the system call table to trace_enter() and ktrsys() so that it is 2002-12-21 16:23:56 +00:00
systrace.h Back out previous, it caused compile errors in kern_fork.c. ISSET 2002-11-10 14:01:57 +00:00
tablet.h
termios.h
time.h Implement the CLOCK_MONOTONIC clock for the posix/opengroup realtime 2002-01-31 00:13:07 +00:00
timeb.h
timepps.h
times.h Version times() so that programs compiled before the recent change to make 2002-06-30 09:45:39 +00:00
timex.h Don't 'extern' function prototypes. 2002-03-17 11:14:04 +00:00
tprintf.h Add multiple inclusion protection. 2002-12-01 21:25:10 +00:00
trace.h
tree.h /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:30:55 +00:00
tty.h Reorder things so that multiple inclusion protection so optional 2002-12-01 22:57:17 +00:00
ttychars.h Reorder things so that multiple inclusion protection so optional 2002-12-01 22:57:17 +00:00
ttycom.h Add IRFRAMEDISC line discipline for IrDA frames. 2001-12-03 23:29:11 +00:00
ttydefaults.h Only declare ttydefchars if _KERNEL is defined. 2002-12-02 05:11:02 +00:00
ttydev.h
types.h Minimize uses of quad_t. Also, use C99 types more thoroughly. 2002-05-28 23:36:30 +00:00
ucred.h
uio.h Back out revision 1.22: 2002-03-31 14:21:56 +00:00
un.h
unistd.h Add a sysconf(3) knob for {ATEXIT_MAX}. 2002-12-19 23:31:54 +00:00
unpcb.h
user.h
userconf.h
utsname.h
vadvise.h
verified_exec.h Added support for fingerprinted executables aka verified exec 2002-10-29 12:31:20 +00:00
vmmeter.h Remove declaration of total. nothing uses it. 2002-05-12 23:15:42 +00:00
vnode.h Added support for fingerprinted executables aka verified exec 2002-10-29 12:31:20 +00:00
vnode_if.h regen: kqueue branch merge, addition of VOP_KQFILTER() 2002-10-23 09:16:46 +00:00
wait.h
wdog.h