├── .gitignore ├── BUGS ├── COPYING ├── ChangeLog ├── INSTALL ├── INSTALL-cross ├── Makeconf ├── Makefile ├── NEWS ├── README ├── TODO ├── aclocal.m4 ├── acpi ├── Makefile ├── acpi-ops.c ├── acpi.c ├── acpifs.c ├── acpifs.h ├── func_files.c ├── func_files.h ├── main.c ├── mig-mutate.h ├── myacpi.h ├── ncache.c ├── ncache.h ├── netfs_impl.c ├── netfs_impl.h ├── options.c └── options.h ├── auth ├── Makefile ├── auth.c ├── auth.h ├── mig-decls.h └── mig-mutate.h ├── benchmarks ├── Makefile └── forks.c ├── boot ├── Makefile ├── boot.c ├── boot_script.c ├── boot_script.h ├── mig-decls.h ├── mig-mutate.h ├── private.h └── userland-boot.c ├── build.mk.in ├── build.mkcf.in ├── config.guess ├── config.make.in ├── config.sub ├── config ├── Makefile ├── login-.bash_login ├── login-.bashrc ├── login-.hushlogin ├── login-.profile ├── login-README ├── motd ├── ttys └── ttys.in ├── configure.ac ├── console-client ├── Makefile ├── bdf.c ├── bdf.h ├── bell.h ├── console.c ├── current-vcs.c ├── display.h ├── driver.c ├── driver.h ├── fb.c ├── fb.h ├── generic-speaker.c ├── input.h ├── kbd-repeat.c ├── mach-inputdev.h ├── ncursesw.c ├── pc-kbd.c ├── pc-mouse.c ├── timer.c ├── timer.h ├── trans.c ├── trans.h ├── unicode.h ├── vga-dynacolor.c ├── vga-dynacolor.h ├── vga-dynafont.c ├── vga-dynafont.h ├── vga-hw.h ├── vga-support.c ├── vga-support.h ├── vga.c └── xkb │ ├── MISSING-FEATURES │ ├── README │ ├── TODO │ ├── xkb.c │ ├── xkb.h │ └── xkbtimer.c ├── console ├── Makefile ├── README.UTF8 ├── console.c ├── display.c ├── display.h ├── hurd.ti ├── input.c ├── input.h ├── motd.UTF8 ├── mutations.h ├── pager.c └── pager.h ├── daemons ├── Makefile ├── console-run.c ├── getty.c ├── lmail.c ├── rc.sh ├── runsystem.hurd.sh ├── runsystem.hurd.sh.in ├── runsystem.sh └── runttys.c ├── defpager ├── Makefile ├── backing.c ├── defpager.c └── wiring.c ├── devnode ├── Makefile ├── README ├── devnode.c ├── mig-mutate.h └── util.h ├── doc ├── .gitignore ├── Makefile ├── gpl.texinfo ├── hurd.texi └── navigating ├── eth-multiplexer ├── ChangeLog ├── Makefile ├── README ├── dead-name.c ├── demuxer.c ├── dev_stat.c ├── device_impl.c ├── ethernet.c ├── ethernet.h ├── mig-decls.h ├── mig-mutate.h ├── multiplexer.c ├── netfs_impl.c ├── netfs_impl.h ├── test.c ├── util.h ├── vdev.c └── vdev.h ├── exec ├── Makefile ├── elfcore.c ├── exec.c ├── execmutations.h ├── hashexec.c ├── hostarch.c ├── main.c ├── mig-decls.h └── priv.h ├── ext2fs ├── Makefile ├── balloc.c ├── bitmap.c ├── dir.c ├── ext2_fs.h ├── ext2fs.c ├── ext2fs.h ├── getblk.c ├── hyper.c ├── ialloc.c ├── inode.c ├── msg.c ├── pager.c ├── pokel.c ├── storeinfo.c ├── truncate.c ├── xattr.c ├── xattr.h └── xinl.c ├── fatfs ├── Makefile ├── dir.c ├── fat.c ├── fat.h ├── fatfs.h ├── inode.c ├── main.c ├── node-create.c ├── pager.c ├── virt-inode.c └── virt-inode.h ├── fstests ├── Makefile ├── fdtests.c ├── fstests.c ├── opendisk.c └── timertest.c ├── ftpfs ├── Makefile ├── ccache.c ├── ccache.h ├── conn.c ├── dir.c ├── fs.c ├── ftpfs.c ├── ftpfs.h ├── host.c ├── ncache.c ├── netfs.c └── node.c ├── gitlog-to-changelog ├── hostmux ├── Makefile ├── hostmux-xinl.c ├── hostmux.c ├── hostmux.h ├── leaf.c ├── mux.c ├── node.c └── stubs.c ├── hurd.boot ├── hurd ├── =pending-changes ├── Makefile ├── acpi.defs ├── auth.defs ├── auth_reply.defs ├── auth_request.defs ├── console.h ├── crash.defs ├── crash_reply.defs ├── default_pager.defs ├── default_pager_reply.defs ├── default_pager_types.h ├── exec.defs ├── exec_startup.defs ├── fs.defs ├── fs_notify.defs ├── fsys.defs ├── fsys_reply.defs ├── gensym.awk ├── hurd_types.defs ├── hurd_types.h ├── ifsock.defs ├── iioctl.defs ├── interrupt.defs ├── io.defs ├── io_reply.defs ├── io_request.defs ├── ioctl-decode.h ├── ioctl-tmpl.sym ├── ioctl.awk ├── ioctl_types.defs ├── ioctl_types.h ├── ioctls.defs ├── kdioctl.defs ├── kernel_boot.defs ├── login.defs ├── msg.defs ├── msg_reply.defs ├── msg_request.defs ├── newterm.defs ├── password.defs ├── paths.h ├── pci.defs ├── pfinet.defs ├── pioctl.defs ├── process.defs ├── process_reply.defs ├── process_request.defs ├── rioctl.defs ├── rtc.h ├── shared.h ├── shutdown.defs ├── socket.defs ├── startup.defs ├── startup_notify.defs ├── startup_reply.defs ├── subsystems ├── term.defs ├── tioctl.defs └── version.h ├── include ├── Makefile ├── pids.h └── sys │ └── procfs.h ├── init ├── Makefile └── init.c ├── install-sh ├── isofs ├── EXTENSIONS ├── Makefile ├── ext.c ├── inode.c ├── iso9660.h ├── isofs.h ├── lookup.c ├── main.c ├── pager.c ├── rr.c └── rr.h ├── libbpf ├── Makefile ├── bpf_impl.c ├── bpf_impl.h ├── queue.c ├── queue.h └── util.h ├── libcons ├── Makefile ├── cons-lookup.c ├── cons-switch.c ├── cons.h ├── demuxer.c ├── dir-changed.c ├── file-changed.c ├── init-init.c ├── init-loop.c ├── mutations.h ├── opts-std-startup.c ├── opts-version.c ├── priv.c ├── priv.h ├── vcons-add.c ├── vcons-close.c ├── vcons-destroy.c ├── vcons-event.c ├── vcons-input.c ├── vcons-move-mouse.c ├── vcons-open.c ├── vcons-refresh.c ├── vcons-remove.c └── vcons-scrollback.c ├── libdiskfs ├── Makefile ├── boot-start.c ├── conch-fetch.c ├── conch-set.c ├── console.c ├── dead-name.c ├── demuxer.c ├── dir-chg.c ├── dir-clear.c ├── dir-init.c ├── dir-link.c ├── dir-lookup.c ├── dir-mkdir.c ├── dir-mkfile.c ├── dir-readdir.c ├── dir-rename.c ├── dir-renamed.c ├── dir-rmdir.c ├── dir-unlink.c ├── direnter.c ├── dirremove.c ├── dirrewrite.c ├── disk-pager.c ├── diskfs-pager.h ├── diskfs.h ├── extern-inline.c ├── fhandle.h ├── file-access.c ├── file-chauthor.c ├── file-chflags.c ├── file-chg.c ├── file-chmod.c ├── file-chown.c ├── file-exec.c ├── file-get-fs-opts.c ├── file-get-trans.c ├── file-get-transcntl.c ├── file-getcontrol.c ├── file-getfh.c ├── file-getlinknode.c ├── file-lock-stat.c ├── file-lock.c ├── file-record-lock.c ├── file-reparent.c ├── file-set-size.c ├── file-set-trans.c ├── file-statfs.c ├── file-sync.c ├── file-syncfs.c ├── file-utimes.c ├── fsmutations.h ├── fsys-forward.c ├── fsys-get-children.c ├── fsys-get-source.c ├── fsys-getfile.c ├── fsys-getroot.c ├── fsys-goaway.c ├── fsys-options.c ├── fsys-startup.c ├── fsys-syncfs.c ├── get-source.c ├── ifsock.c ├── init-first.c ├── init-init.c ├── init-main.c ├── init-startup.c ├── io-async-icky.c ├── io-async.c ├── io-duplicate.c ├── io-get-conch.c ├── io-identity.c ├── io-map-cntl.c ├── io-map.c ├── io-modes-get.c ├── io-modes-off.c ├── io-modes-on.c ├── io-modes-set.c ├── io-owner-get.c ├── io-owner-mod.c ├── io-pathconf.c ├── io-prenotify.c ├── io-read.c ├── io-readable.c ├── io-reauthenticate.c ├── io-rel-conch.c ├── io-restrict-auth.c ├── io-revoke.c ├── io-seek.c ├── io-select.c ├── io-sigio.c ├── io-stat.c ├── io-stubs.c ├── io-version.c ├── io-write.c ├── lithp.h ├── lookup.c ├── name-cache.c ├── node-cache.c ├── node-create.c ├── node-drop.c ├── node-lastref.c ├── node-make.c ├── node-nput.c ├── node-nputl.c ├── node-nref.c ├── node-nrefl.c ├── node-nrele.c ├── node-nrelel.c ├── node-rdwr.c ├── node-times.c ├── node-update.c ├── opts-append-std.c ├── opts-common.c ├── opts-get.c ├── opts-runtime.c ├── opts-set.c ├── opts-std-runtime.c ├── opts-std-startup.c ├── opts-version.c ├── peropen-make.c ├── peropen-rele.c ├── priv.c ├── priv.h ├── protid-make.c ├── protid-rele.c ├── rdwr-internal.c ├── readonly-changed.c ├── readonly.c ├── remount.c ├── shutdown.c ├── sync-default.c ├── sync-interval.c ├── trans-callback.c ├── validate-author.c ├── validate-flags.c ├── validate-group.c ├── validate-mode.c ├── validate-owner.c └── validate-rdev.c ├── libfshelp-tests ├── Makefile ├── README ├── README.new_tests ├── fork.c ├── locks-tests ├── locks.c ├── race.c ├── test-fcntl.c ├── test-flock.c └── test-lockf.c ├── libfshelp ├── Makefile ├── delegate.c ├── drop-transbox.c ├── exec-reauth.c ├── extern-inline.c ├── fetch-control.c ├── fetch-root.c ├── fshelp.h ├── get-identity.c ├── lock-acquire.c ├── lock-init.c ├── perms-access.c ├── perms-checkdirmod.c ├── perms-iscontroller.c ├── perms-isowner.c ├── rlock-drop-peropen.c ├── rlock-status.c ├── rlock-tweak.c ├── rlock.h ├── set-active.c ├── set-options.c ├── start-translator-long.c ├── start-translator.c ├── touch.c ├── transbox-init.c ├── translated.c └── translator-list.c ├── libftpconn ├── Makefile ├── addr.c ├── cmd.c ├── create.c ├── cwd.c ├── errs.c ├── fname.c ├── ftpconn.h ├── names.c ├── open.c ├── priv.h ├── reply.c ├── rmt.c ├── set-type.c ├── stats.c ├── unix.c ├── xfer.c └── xinl.c ├── libhurd-slab ├── Makefile ├── slab.c └── slab.h ├── libhurdbugaddr ├── Makefile └── bugaddr.c ├── libihash ├── Makefile ├── ihash.c ├── ihash.h └── murmur3.c ├── libiohelp ├── Makefile ├── get_conch.c ├── handle_io_get_conch.c ├── handle_io_release_conch.c ├── initialize_conch.c ├── iohelp.h ├── iouser-create.c ├── iouser-dup.c ├── iouser-free.c ├── iouser-reauth.c ├── iouser-restrict.c ├── return-buffer.c ├── shared.c └── verify_user_conch.c ├── libirqhelp ├── Makefile ├── irqhelp.c └── irqhelp.h ├── libmachdev ├── Makefile ├── ds_routines.c ├── mach_device.h ├── machdev-dev_hdr.h ├── machdev-device_emul.h ├── machdev.h ├── mig-decls.h ├── mig-mutate.h ├── trivfs_server.c └── trivfs_server.h ├── libnetfs ├── Makefile ├── append-args.c ├── append-std-options.c ├── callbacks.h ├── dead-name.c ├── demuxer.c ├── dir-link.c ├── dir-lookup.c ├── dir-mkdir.c ├── dir-mkfile.c ├── dir-notice-changes.c ├── dir-readdir.c ├── dir-rename.c ├── dir-rmdir.c ├── dir-unlink.c ├── drop-node.c ├── execserver.h ├── file-chauthor.c ├── file-check-access.c ├── file-chflags.c ├── file-chmod.c ├── file-chown.c ├── file-exec.c ├── file-get-fs-options.c ├── file-get-storage-info-default.c ├── file-get-storage-info.c ├── file-get-transcntl.c ├── file-get-translator.c ├── file-getcontrol.c ├── file-getlinknode.c ├── file-lock-stat.c ├── file-lock.c ├── file-map.c ├── file-record-lock.c ├── file-reparent.c ├── file-set-size.c ├── file-set-translator.c ├── file-statfs.c ├── file-sync.c ├── file-syncfs.c ├── file-utimes.c ├── fsstubs.c ├── fsys-get-children.c ├── fsys-get-options.c ├── fsys-get-source.c ├── fsys-getroot.c ├── fsys-goaway.c ├── fsys-set-options.c ├── fsys-syncfs.c ├── fsysstubs.c ├── get-source.c ├── init-init.c ├── init-loop.c ├── init-startup.c ├── io-async.c ├── io-clear-some-openmodes.c ├── io-duplicate.c ├── io-get-icky-async-id.c ├── io-get-openmodes.c ├── io-get-owner.c ├── io-identity.c ├── io-mod-owner.c ├── io-pathconf.c ├── io-read.c ├── io-readable.c ├── io-reauthenticate.c ├── io-restrict-auth.c ├── io-revoke.c ├── io-seek.c ├── io-select.c ├── io-set-all-openmodes.c ├── io-set-some-openmodes.c ├── io-stat.c ├── io-version.c ├── io-write.c ├── iostubs.c ├── make-node.c ├── make-peropen.c ├── make-protid.c ├── misc.h ├── modes.h ├── mutations.h ├── netfs.h ├── nput.c ├── nref.c ├── nrele.c ├── priv.h ├── release-peropen.c ├── release-protid.c ├── runtime-argp.c ├── set-get-trans.c ├── set-options.c ├── shutdown.c ├── startup-argp.c ├── std-runtime-argp.c ├── std-startup-argp.c └── trans-callback.c ├── libpager ├── Makefile ├── chg-compl.c ├── clean.c ├── data-request.c ├── data-return.c ├── data-unlock.c ├── demuxer.c ├── dropweak.c ├── get-upi.c ├── inhibit-term.c ├── lock-completed.c ├── lock-object.c ├── mark-error.c ├── mig-decls.h ├── mig-mutate.h ├── object-init.c ├── object-terminate.c ├── offer-page.c ├── pagemap.c ├── pager-attr.c ├── pager-create.c ├── pager-flush.c ├── pager-memcpy.c ├── pager-port.c ├── pager-return.c ├── pager-ro-port.c ├── pager-shutdown.c ├── pager-sync.c ├── pager.h ├── priv.h ├── queue.h └── stubs.c ├── libpipe ├── Makefile ├── addr.c ├── dgram.c ├── pipe-funcs.c ├── pipe.c ├── pipe.h ├── pq-funcs.c ├── pq.c ├── pq.h ├── seqpack.c └── stream.c ├── libports ├── Makefile ├── begin-rpc.c ├── bucket-iterate.c ├── claim-right.c ├── class-iterate.c ├── complete-deallocate.c ├── count-bucket.c ├── count-class.c ├── create-bucket.c ├── create-class.c ├── create-internal.c ├── create-port-noinstall.c ├── create-port.c ├── dead-name.c ├── default-uninhibitable-rpcs.c ├── destroy-right.c ├── enable-bucket.c ├── enable-class.c ├── end-rpc.c ├── extern-inline.c ├── get-right.c ├── get-send-right.c ├── import-port.c ├── inhibit-all-rpcs.c ├── inhibit-bucket-rpcs.c ├── inhibit-class-rpcs.c ├── inhibit-port-rpcs.c ├── init.c ├── interrupt-notified-rpcs.c ├── interrupt-on-notify.c ├── interrupt-operation.c ├── interrupt-rpcs.c ├── interrupted.c ├── lookup-port.c ├── manage-multithread.c ├── manage-one-thread.c ├── mig-decls.h ├── mig-mutate.h ├── no-senders.c ├── notify-dead-name.c ├── notify-msg-accepted.c ├── notify-no-senders.c ├── notify-port-deleted.c ├── notify-port-destroyed.c ├── notify-send-once.c ├── port-deref-deferred.c ├── port-deref-deferred.h ├── port-deref-weak.c ├── port-deref.c ├── port-ref-weak.c ├── port-ref.c ├── ports.h ├── reallocate-from-external.c ├── reallocate-port.c ├── request-notification.c ├── resume-all-rpcs.c ├── resume-bucket-rpcs.c ├── resume-class-rpcs.c ├── resume-port-rpcs.c └── transfer-right.c ├── libps ├── Makefile ├── common.h ├── context.c ├── filters.c ├── fmt.c ├── host.c ├── proclist.c ├── procstat.c ├── ps.h ├── pshost.h ├── spec.c ├── tty.c ├── user.c └── write.c ├── libshouldbeinlibc ├── Makefile ├── assert-backtrace.c ├── assert-backtrace.h ├── cacheq.c ├── cacheq.h ├── canon-host.c ├── exec-reauth.c ├── fsysops.c ├── idvec-auth.c ├── idvec-funcs.c ├── idvec-impgids.c ├── idvec-rep.c ├── idvec-verify.c ├── idvec.c ├── idvec.h ├── lcm.c ├── localhost.c ├── maptime-funcs.c ├── maptime.c ├── maptime.h ├── nullauth.c ├── nullauth.h ├── portinfo.c ├── portinfo.h ├── portxlate.c ├── portxlate.h ├── refcount.c ├── refcount.h ├── shared-dom.c ├── termsize.c ├── timefmt.c ├── timefmt.h ├── ugids-argp.c ├── ugids-auth.c ├── ugids-imply.c ├── ugids-merge.c ├── ugids-posix.c ├── ugids-rep.c ├── ugids-subtract.c ├── ugids-verify-auth.c ├── ugids-verify.c ├── ugids-xinl.c ├── ugids.c ├── ugids.h ├── wire.c ├── wire.h └── xportinfo.c ├── libstore ├── Makefile ├── argp.c ├── bunzip2.c ├── clone.c ├── copy.c ├── create.c ├── crypt.h ├── decode.c ├── derive.c ├── device.c ├── do-bunzip2.c ├── do-gunzip.c ├── enc.c ├── encode.c ├── file.c ├── flags.c ├── gunzip.c ├── kids.c ├── make.c ├── map.c ├── memobj.c ├── module.c ├── mvol.c ├── nbd.c ├── open.c ├── part.c ├── rdwr.c ├── remap.c ├── set.c ├── std.c ├── store.h ├── stripe.c ├── task.c ├── typed.c ├── unknown.c ├── unzipstore.c ├── url.c ├── util.c ├── xinl.c └── zero.c ├── libtrivfs ├── Makefile ├── append-args.c ├── cntl-clean.c ├── cntl-create.c ├── demuxer.c ├── dir-chg.c ├── dir-link.c ├── dir-lookup.c ├── dir-mkdir.c ├── dir-mkfile.c ├── dir-readdir.c ├── dir-rename.c ├── dir-rmdir.c ├── dir-unlink.c ├── dyn-classes.c ├── file-access.c ├── file-chauthor.c ├── file-chflags.c ├── file-chg.c ├── file-chmod.c ├── file-chown.c ├── file-exec.c ├── file-get-fs-options.c ├── file-get-storage-info.c ├── file-get-trans.c ├── file-get-transcntl.c ├── file-getcontrol.c ├── file-getfh.c ├── file-getlinknode.c ├── file-lock-stat.c ├── file-lock.c ├── file-record-lock.c ├── file-reparent.c ├── file-set-size.c ├── file-set-trans.c ├── file-statfs.c ├── file-sync.c ├── file-syncfs.c ├── file-utimes.c ├── fsys-forward.c ├── fsys-get-children.c ├── fsys-get-options.c ├── fsys-get-source.c ├── fsys-getroot.c ├── fsys-goaway.c ├── fsys-set-options.c ├── fsys-stubs.c ├── fsys-syncfs.c ├── get-source.c ├── io-async-icky.c ├── io-async.c ├── io-duplicate.c ├── io-identity.c ├── io-map.c ├── io-modes-get.c ├── io-modes-off.c ├── io-modes-on.c ├── io-modes-set.c ├── io-owner-get.c ├── io-owner-mod.c ├── io-pathconf.c ├── io-read.c ├── io-readable.c ├── io-reauthenticate.c ├── io-restrict-auth.c ├── io-revoke.c ├── io-seek.c ├── io-select.c ├── io-stat.c ├── io-stubs.c ├── io-version.c ├── io-write.c ├── make-node.c ├── make-peropen.c ├── mig-decls.h ├── mig-mutate.h ├── open.c ├── priv.c ├── priv.h ├── protid-clean.c ├── protid-dup.c ├── runtime-argp.c ├── set-options.c ├── startup.c ├── times.c └── trivfs.h ├── login ├── Makefile └── utmp.c ├── lwip ├── Makefile ├── iioctl-ops.c ├── io-ops.c ├── lwip-hurd.h ├── lwip-util.c ├── lwip-util.h ├── main.c ├── mig-decls.h ├── mig-mutate.h ├── options.c ├── options.h ├── pfinet-ops.c ├── port-objs.c ├── port │ ├── include │ │ └── netif │ │ │ ├── hurdethif.h │ │ │ ├── hurdloopif.h │ │ │ ├── hurdtunif.h │ │ │ └── ifcommon.h │ └── netif │ │ ├── hurdethif.c │ │ ├── hurdloopif.c │ │ ├── hurdtunif.c │ │ └── ifcommon.c ├── socket-ops.c ├── startup-ops.c ├── startup.c └── startup.h ├── mach-defpager ├── Makefile ├── default_pager.c ├── default_pager.h ├── file_io.h ├── main.c ├── mig-decls.h ├── mig-mutate.h ├── priv.h ├── queue.h ├── setup.c ├── wiring.c └── wiring.h ├── mkinstalldirs ├── mount ├── mount.defs ├── mount.h └── mount_types.h ├── move-if-change ├── nfs ├── Makefile ├── cache.c ├── consts.c ├── main.c ├── mount.c ├── mount.h ├── name-cache.c ├── nfs-spec.h ├── nfs.c ├── nfs.h ├── ops.c ├── rpc.c └── storage-info.c ├── nfsd ├── Makefile ├── cache.c ├── fsys.c ├── loop.c ├── main.c ├── nfsd.h ├── ops.c └── xdr.c ├── pci-arbiter ├── Makefile ├── TODO ├── device_map.c ├── device_map.h ├── func_files.c ├── func_files.h ├── main.c ├── mig-mutate.h ├── ncache.c ├── ncache.h ├── netfs_impl.c ├── netfs_impl.h ├── options.c ├── options.h ├── pci-ops.c ├── pcifs.c └── pcifs.h ├── pfinet ├── Makefile ├── README ├── config.h ├── dummy.c ├── ethernet.c ├── glue-include │ ├── asm │ │ ├── atomic.h │ │ ├── bitops.h │ │ ├── byteorder.h │ │ ├── delay.h │ │ ├── errno.h │ │ ├── hardirq.h │ │ ├── init.h │ │ ├── segment.h │ │ ├── spinlock.h │ │ ├── system.h │ │ ├── types.h │ │ └── uaccess.h │ └── linux │ │ ├── autoconf.h │ │ ├── binfmts.h │ │ ├── config.h │ │ ├── errno.h │ │ ├── fcntl.h │ │ ├── fs.h │ │ ├── if.h │ │ ├── in.h │ │ ├── in6.h │ │ ├── interrupt.h │ │ ├── ioctl.h │ │ ├── ipv6.h │ │ ├── kernel.h │ │ ├── limits.h │ │ ├── major.h │ │ ├── malloc.h │ │ ├── mm.h │ │ ├── param.h │ │ ├── personality.h │ │ ├── poll.h │ │ ├── proc_fs.h │ │ ├── sched.h │ │ ├── slab.h │ │ ├── socket.h │ │ ├── sockios.h │ │ ├── stat.h │ │ ├── string.h │ │ ├── termios.h │ │ ├── time.h │ │ ├── timer.h │ │ ├── timex.h │ │ ├── types.h │ │ ├── un.h │ │ ├── version.h │ │ └── wait.h ├── iioctl-ops.c ├── io-ops.c ├── kmem_cache.c ├── linux-src │ ├── arch │ │ ├── alpha │ │ │ └── lib │ │ │ │ ├── checksum.c │ │ │ │ └── csum_partial_copy.c │ │ ├── arm │ │ │ └── lib │ │ │ │ └── checksum.S │ │ ├── i386 │ │ │ └── lib │ │ │ │ ├── checksum.S │ │ │ │ └── old-checksum.c │ │ ├── m68k │ │ │ └── lib │ │ │ │ └── checksum.c │ │ ├── ppc │ │ │ └── lib │ │ │ │ └── checksum.S │ │ ├── s390 │ │ │ └── lib │ │ │ │ └── checksum.c │ │ ├── sparc │ │ │ └── lib │ │ │ │ └── checksum.S │ │ ├── sparc64 │ │ │ └── lib │ │ │ │ └── checksum.S │ │ └── x86_64 │ │ │ └── lib │ │ │ └── checksum.c │ ├── include │ │ ├── asm-alpha │ │ │ └── checksum.h │ │ ├── asm-arm │ │ │ └── checksum.h │ │ ├── asm-i386 │ │ │ └── checksum.h │ │ ├── asm-m68k │ │ │ └── checksum.h │ │ ├── asm-mips │ │ │ └── checksum.h │ │ ├── asm-ppc │ │ │ └── checksum.h │ │ ├── asm-s390 │ │ │ └── checksum.h │ │ ├── asm-sparc │ │ │ └── checksum.h │ │ ├── asm-sparc64 │ │ │ └── checksum.h │ │ ├── asm-x86_64 │ │ │ └── checksum.h │ │ ├── linux │ │ │ ├── a.out.h │ │ │ ├── acct.h │ │ │ ├── adfs_fs.h │ │ │ ├── adfs_fs_i.h │ │ │ ├── adfs_fs_sb.h │ │ │ ├── affs_fs.h │ │ │ ├── affs_fs_i.h │ │ │ ├── affs_fs_sb.h │ │ │ ├── affs_hardblocks.h │ │ │ ├── amifd.h │ │ │ ├── amifdreg.h │ │ │ ├── amigaffs.h │ │ │ ├── apm_bios.h │ │ │ ├── arcdevice.h │ │ │ ├── atalk.h │ │ │ ├── atari_rootsec.h │ │ │ ├── auto_fs.h │ │ │ ├── awe_voice.h │ │ │ ├── ax25.h │ │ │ ├── b1lli.h │ │ │ ├── b1pcmcia.h │ │ │ ├── baycom.h │ │ │ ├── bios32.h │ │ │ ├── bitops.h │ │ │ ├── blk.h │ │ │ ├── blkdev.h │ │ │ ├── bpqether.h │ │ │ ├── busmouse.h │ │ │ ├── capability.h │ │ │ ├── capi.h │ │ │ ├── cd1400.h │ │ │ ├── cdk.h │ │ │ ├── cdrom.h │ │ │ ├── coda.h │ │ │ ├── coda_cache.h │ │ │ ├── coda_fs_i.h │ │ │ ├── coda_linux.h │ │ │ ├── coda_opstats.h │ │ │ ├── coda_proc.h │ │ │ ├── coda_psdev.h │ │ │ ├── coff.h │ │ │ ├── comstats.h │ │ │ ├── concap.h │ │ │ ├── console.h │ │ │ ├── console_struct.h │ │ │ ├── consolemap.h │ │ │ ├── ctype.h │ │ │ ├── cyclades.h │ │ │ ├── dcache.h │ │ │ ├── delay.h │ │ │ ├── devpts_fs.h │ │ │ ├── digi1.h │ │ │ ├── digiFep1.h │ │ │ ├── digiPCI.h │ │ │ ├── dio.h │ │ │ ├── dirent.h │ │ │ ├── dlists.h │ │ │ ├── dmascc.h │ │ │ ├── dtlk.h │ │ │ ├── efs_dir.h │ │ │ ├── efs_fs.h │ │ │ ├── efs_fs_i.h │ │ │ ├── efs_fs_sb.h │ │ │ ├── efs_vh.h │ │ │ ├── elf.h │ │ │ ├── elfcore.h │ │ │ ├── epca.h │ │ │ ├── epcaconfig.h │ │ │ ├── errqueue.h │ │ │ ├── etherdevice.h │ │ │ ├── ext2_fs.h │ │ │ ├── ext2_fs_i.h │ │ │ ├── ext2_fs_sb.h │ │ │ ├── fat_cvf.h │ │ │ ├── fb.h │ │ │ ├── fcdevice.h │ │ │ ├── fd.h │ │ │ ├── fddidevice.h │ │ │ ├── fdreg.h │ │ │ ├── file.h │ │ │ ├── filter.h │ │ │ ├── firewall.h │ │ │ ├── ftape-header-segment.h │ │ │ ├── ftape-vendors.h │ │ │ ├── ftape.h │ │ │ ├── genhd.h │ │ │ ├── ghash.h │ │ │ ├── hayesesp.h │ │ │ ├── hdlcdrv.h │ │ │ ├── hdreg.h │ │ │ ├── hfmodem.h │ │ │ ├── hfs_fs.h │ │ │ ├── hfs_fs_i.h │ │ │ ├── hfs_fs_sb.h │ │ │ ├── hfs_sysdep.h │ │ │ ├── hippidevice.h │ │ │ ├── hpfs_fs.h │ │ │ ├── hpfs_fs_i.h │ │ │ ├── hpfs_fs_sb.h │ │ │ ├── i2c.h │ │ │ ├── icmp.h │ │ │ ├── icmpv6.h │ │ │ ├── if_arcnet.h │ │ │ ├── if_arp.h │ │ │ ├── if_cablemodem.h │ │ │ ├── if_ec.h │ │ │ ├── if_eql.h │ │ │ ├── if_ether.h │ │ │ ├── if_fc.h │ │ │ ├── if_fddi.h │ │ │ ├── if_frad.h │ │ │ ├── if_hippi.h │ │ │ ├── if_ltalk.h │ │ │ ├── if_packet.h │ │ │ ├── if_plip.h │ │ │ ├── if_ppp.h │ │ │ ├── if_pppvar.h │ │ │ ├── if_shaper.h │ │ │ ├── if_slip.h │ │ │ ├── if_strip.h │ │ │ ├── if_tr.h │ │ │ ├── if_tunnel.h │ │ │ ├── igmp.h │ │ │ ├── in_route.h │ │ │ ├── in_systm.h │ │ │ ├── inet.h │ │ │ ├── inetdevice.h │ │ │ ├── init.h │ │ │ ├── ioport.h │ │ │ ├── ip.h │ │ │ ├── ip_fw.h │ │ │ ├── ip_masq.h │ │ │ ├── ipc.h │ │ │ ├── ipsec.h │ │ │ ├── ipv6_route.h │ │ │ ├── ipx.h │ │ │ ├── irda.h │ │ │ ├── isdn.h │ │ │ ├── isdn_divertif.h │ │ │ ├── isdn_ppp.h │ │ │ ├── isdnif.h │ │ │ ├── isicom.h │ │ │ ├── iso_fs.h │ │ │ ├── iso_fs_i.h │ │ │ ├── iso_fs_sb.h │ │ │ ├── istallion.h │ │ │ ├── ixjuser.h │ │ │ ├── joystick.h │ │ │ ├── kbd_diacr.h │ │ │ ├── kbd_kern.h │ │ │ ├── kbd_ll.h │ │ │ ├── kd.h │ │ │ ├── kdev_t.h │ │ │ ├── kernel_stat.h │ │ │ ├── kernelcapi.h │ │ │ ├── keyboard.h │ │ │ ├── kmod.h │ │ │ ├── lapb.h │ │ │ ├── linkage.h │ │ │ ├── linux_logo.h │ │ │ ├── list.h │ │ │ ├── lists.h │ │ │ ├── locks.h │ │ │ ├── loop.h │ │ │ ├── lp.h │ │ │ ├── lp_intern.h │ │ │ ├── lp_m68k.h │ │ │ ├── lp_mfc.h │ │ │ ├── mc146818rtc.h │ │ │ ├── mca.h │ │ │ ├── md.h │ │ │ ├── minix_fs.h │ │ │ ├── minix_fs_i.h │ │ │ ├── minix_fs_sb.h │ │ │ ├── miscdevice.h │ │ │ ├── mman.h │ │ │ ├── modsetver.h │ │ │ ├── module.h │ │ │ ├── mount.h │ │ │ ├── mpp.h │ │ │ ├── mroute.h │ │ │ ├── msdos_fs.h │ │ │ ├── msdos_fs_i.h │ │ │ ├── msdos_fs_sb.h │ │ │ ├── msg.h │ │ │ ├── mtio.h │ │ │ ├── nbd.h │ │ │ ├── ncp.h │ │ │ ├── ncp_fs.h │ │ │ ├── ncp_fs_i.h │ │ │ ├── ncp_fs_sb.h │ │ │ ├── ncp_mount.h │ │ │ ├── net.h │ │ │ ├── netbeui.h │ │ │ ├── netdevice.h │ │ │ ├── netlink.h │ │ │ ├── netrom.h │ │ │ ├── nfs.h │ │ │ ├── nfs3.h │ │ │ ├── nfs_fs.h │ │ │ ├── nfs_fs_i.h │ │ │ ├── nfs_fs_sb.h │ │ │ ├── nfs_mount.h │ │ │ ├── nfsiod.h │ │ │ ├── nls.h │ │ │ ├── notifier.h │ │ │ ├── ntfs_fs.h │ │ │ ├── ntfs_fs_i.h │ │ │ ├── ntfs_fs_sb.h │ │ │ ├── nubus.h │ │ │ ├── nvram.h │ │ │ ├── openpic.h │ │ │ ├── pagemap.h │ │ │ ├── parport.h │ │ │ ├── parport_pc.h │ │ │ ├── pc_keyb.h │ │ │ ├── pci.h │ │ │ ├── pg.h │ │ │ ├── phonedev.h │ │ │ ├── pipe_fs_i.h │ │ │ ├── pkt_cls.h │ │ │ ├── pkt_sched.h │ │ │ ├── posix_types.h │ │ │ ├── ppp-comp.h │ │ │ ├── ppp.h │ │ │ ├── ppp_defs.h │ │ │ ├── prctl.h │ │ │ ├── ps2esdi.h │ │ │ ├── ptrace.h │ │ │ ├── qic117.h │ │ │ ├── qnx4_fs.h │ │ │ ├── qnx4_fs_i.h │ │ │ ├── qnx4_fs_sb.h │ │ │ ├── qnxtypes.h │ │ │ ├── quota.h │ │ │ ├── quotaops.h │ │ │ ├── raid0.h │ │ │ ├── raid1.h │ │ │ ├── raid5.h │ │ │ ├── random.h │ │ │ ├── reboot.h │ │ │ ├── resource.h │ │ │ ├── rocket.h │ │ │ ├── romfs_fs.h │ │ │ ├── romfs_fs_i.h │ │ │ ├── romfs_fs_sb.h │ │ │ ├── rose.h │ │ │ ├── route.h │ │ │ ├── rpcsock.h │ │ │ ├── rtnetlink.h │ │ │ ├── sc26198.h │ │ │ ├── scc.h │ │ │ ├── sdla.h │ │ │ ├── sdla_chdlc.h │ │ │ ├── sdla_fr.h │ │ │ ├── sdla_ppp.h │ │ │ ├── sdla_x25.h │ │ │ ├── sdladrv.h │ │ │ ├── sdlapci.h │ │ │ ├── sdlasfm.h │ │ │ ├── securebits.h │ │ │ ├── selection.h │ │ │ ├── sem.h │ │ │ ├── serial.h │ │ │ ├── serial167.h │ │ │ ├── serialP.h │ │ │ ├── serial_reg.h │ │ │ ├── shm.h │ │ │ ├── signal.h │ │ │ ├── skbuff.h │ │ │ ├── smb.h │ │ │ ├── smb_fs.h │ │ │ ├── smb_fs_i.h │ │ │ ├── smb_fs_sb.h │ │ │ ├── smb_mount.h │ │ │ ├── smbno.h │ │ │ ├── smp.h │ │ │ ├── smp_lock.h │ │ │ ├── sound.h │ │ │ ├── soundcard.h │ │ │ ├── soundmodem.h │ │ │ ├── stallion.h │ │ │ ├── stddef.h │ │ │ ├── swap.h │ │ │ ├── swapctl.h │ │ │ ├── synclink.h │ │ │ ├── sys.h │ │ │ ├── sysctl.h │ │ │ ├── sysrq.h │ │ │ ├── sysv_fs.h │ │ │ ├── sysv_fs_i.h │ │ │ ├── sysv_fs_sb.h │ │ │ ├── tasks.h │ │ │ ├── tcp.h │ │ │ ├── telephony.h │ │ │ ├── times.h │ │ │ ├── tpqic02.h │ │ │ ├── tqueue.h │ │ │ ├── trdevice.h │ │ │ ├── tty.h │ │ │ ├── tty_driver.h │ │ │ ├── tty_flip.h │ │ │ ├── tty_ldisc.h │ │ │ ├── udp.h │ │ │ ├── ufs_fs.h │ │ │ ├── ufs_fs_i.h │ │ │ ├── ufs_fs_sb.h │ │ │ ├── uio.h │ │ │ ├── ultrasound.h │ │ │ ├── umsdos_fs.h │ │ │ ├── umsdos_fs.p │ │ │ ├── umsdos_fs_i.h │ │ │ ├── unistd.h │ │ │ ├── user.h │ │ │ ├── utime.h │ │ │ ├── uts.h │ │ │ ├── utsname.h │ │ │ ├── vfs.h │ │ │ ├── video_decoder.h │ │ │ ├── video_encoder.h │ │ │ ├── videodev.h │ │ │ ├── videotext.h │ │ │ ├── vmalloc.h │ │ │ ├── vt.h │ │ │ ├── vt_buffer.h │ │ │ ├── vt_kern.h │ │ │ ├── wanpipe.h │ │ │ ├── wanrouter.h │ │ │ ├── watchdog.h │ │ │ ├── wavefront.h │ │ │ ├── wireless.h │ │ │ ├── wrapper.h │ │ │ ├── x25.h │ │ │ ├── yam.h │ │ │ ├── zftape.h │ │ │ └── zorro.h │ │ └── net │ │ │ ├── addrconf.h │ │ │ ├── af_unix.h │ │ │ ├── arp.h │ │ │ ├── atalkcall.h │ │ │ ├── ax25.h │ │ │ ├── ax25call.h │ │ │ ├── br.h │ │ │ ├── checksum.h │ │ │ ├── datalink.h │ │ │ ├── dst.h │ │ │ ├── flow.h │ │ │ ├── icmp.h │ │ │ ├── if_inet6.h │ │ │ ├── inet_common.h │ │ │ ├── ip.h │ │ │ ├── ip6_fib.h │ │ │ ├── ip6_fw.h │ │ │ ├── ip6_route.h │ │ │ ├── ip_fib.h │ │ │ ├── ip_masq.h │ │ │ ├── ip_masq_mod.h │ │ │ ├── ipconfig.h │ │ │ ├── ipip.h │ │ │ ├── ipv6.h │ │ │ ├── ipx.h │ │ │ ├── ipxcall.h │ │ │ ├── lapb.h │ │ │ ├── lapbcall.h │ │ │ ├── llc.h │ │ │ ├── llc_frame.h │ │ │ ├── llc_name.h │ │ │ ├── llc_state.h │ │ │ ├── llccall.h │ │ │ ├── ndisc.h │ │ │ ├── neighbour.h │ │ │ ├── netbeuicall.h │ │ │ ├── netrom.h │ │ │ ├── nrcall.h │ │ │ ├── p8022.h │ │ │ ├── p8022call.h │ │ │ ├── pkt_cls.h │ │ │ ├── pkt_sched.h │ │ │ ├── profile.h │ │ │ ├── protocol.h │ │ │ ├── psnap.h │ │ │ ├── psnapcall.h │ │ │ ├── rarp.h │ │ │ ├── raw.h │ │ │ ├── rawv6.h │ │ │ ├── rose.h │ │ │ ├── rosecall.h │ │ │ ├── route.h │ │ │ ├── scm.h │ │ │ ├── slhc.h │ │ │ ├── slhc_vj.h │ │ │ ├── snmp.h │ │ │ ├── sock.h │ │ │ ├── spx.h │ │ │ ├── spxcall.h │ │ │ ├── tcp.h │ │ │ ├── transp_v6.h │ │ │ ├── udp.h │ │ │ ├── x25.h │ │ │ └── x25call.h │ └── net │ │ ├── core │ │ ├── Makefile │ │ ├── datagram.c │ │ ├── dev.c │ │ ├── dev_mcast.c │ │ ├── dst.c │ │ ├── filter.c │ │ ├── firewall.c │ │ ├── iovec.c │ │ ├── neighbour.c │ │ ├── profile.c │ │ ├── rtnetlink.c │ │ ├── scm.c │ │ ├── skbuff.c │ │ ├── sock.c │ │ ├── sysctl_net_core.c │ │ └── utils.c │ │ ├── ethernet │ │ ├── Makefile │ │ ├── eth.c │ │ ├── pe2.c │ │ └── sysctl_net_ether.c │ │ ├── ipv4 │ │ ├── Config.in │ │ ├── Makefile │ │ ├── af_inet.c │ │ ├── arp.c │ │ ├── devinet.c │ │ ├── fib_frontend.c │ │ ├── fib_hash.c │ │ ├── fib_rules.c │ │ ├── fib_semantics.c │ │ ├── icmp.c │ │ ├── igmp.c │ │ ├── ip_forward.c │ │ ├── ip_fragment.c │ │ ├── ip_fw.c │ │ ├── ip_gre.c │ │ ├── ip_input.c │ │ ├── ip_masq.c │ │ ├── ip_masq_app.c │ │ ├── ip_masq_autofw.c │ │ ├── ip_masq_cuseeme.c │ │ ├── ip_masq_ftp.c │ │ ├── ip_masq_irc.c │ │ ├── ip_masq_mfw.c │ │ ├── ip_masq_mod.c │ │ ├── ip_masq_portfw.c │ │ ├── ip_masq_quake.c │ │ ├── ip_masq_raudio.c │ │ ├── ip_masq_user.c │ │ ├── ip_masq_vdolive.c │ │ ├── ip_nat_dumb.c │ │ ├── ip_options.c │ │ ├── ip_output.c │ │ ├── ip_sockglue.c │ │ ├── ipconfig.c │ │ ├── ipip.c │ │ ├── ipmr.c │ │ ├── proc.c │ │ ├── protocol.c │ │ ├── rarp.c │ │ ├── raw.c │ │ ├── route.c │ │ ├── syncookies.c │ │ ├── sysctl_net_ipv4.c │ │ ├── tcp.c │ │ ├── tcp_input.c │ │ ├── tcp_ipv4.c │ │ ├── tcp_output.c │ │ ├── tcp_timer.c │ │ ├── timer.c │ │ ├── udp.c │ │ └── utils.c │ │ └── ipv6 │ │ ├── addrconf.c │ │ ├── af_inet6.c │ │ ├── datagram_ipv6.c │ │ ├── exthdrs.c │ │ ├── icmpv6.c │ │ ├── ip6_fib.c │ │ ├── ip6_flowlabel.c │ │ ├── ip6_input.c │ │ ├── ip6_output.c │ │ ├── ipv6_sockglue.c │ │ ├── mcast.c │ │ ├── ndisc.c │ │ ├── protocol_ipv6.c │ │ ├── raw_ipv6.c │ │ ├── reassembly.c │ │ ├── route_ipv6.c │ │ ├── tcp_ipv6.c │ │ └── udp_ipv6.c ├── loopback.c ├── main.c ├── mapped-time.h ├── mig-decls.h ├── mig-mutate.h ├── misc.c ├── options.c ├── pfinet-ops.c ├── pfinet.h ├── sched.c ├── socket-ops.c ├── socket.c ├── stubs.c ├── time.c ├── timer-emul.c └── tunnel.c ├── pflocal ├── Makefile ├── connq.c ├── connq.h ├── fs.c ├── io.c ├── mig-decls.h ├── mig-mutate.h ├── pf.c ├── pflocal.c ├── sock.c ├── sock.h ├── socket.c ├── sserver.c └── sserver.h ├── proc ├── =proc_excrepl.defs ├── Makefile ├── cpu-types.c ├── dead-name.c ├── hash.c ├── host.c ├── info.c ├── main.c ├── mgt.c ├── mig-decls.h ├── mig-mutate.h ├── msg.c ├── ourmsg.defs ├── pgrp.c ├── proc.h ├── proc_exc.defs ├── stubs.c └── wait.c ├── procfs ├── Makefile ├── TODO ├── dircat.c ├── dircat.h ├── main.c ├── main.h ├── netfs.c ├── process.c ├── process.h ├── procfs.c ├── procfs.h ├── procfs_dir.c ├── procfs_dir.h ├── proclist.c ├── proclist.h ├── rootdir.c └── rootdir.h ├── release ├── =announce-0.0 ├── =announce-0.1 ├── =announce-0.2 ├── COPYING.LIB ├── INSTALL-binary ├── Makefile ├── README ├── SETUP ├── SOURCES.0.0 ├── SOURCES.0.2 ├── bfloppy-special.copy ├── bfloppy.boot ├── bfloppy.copy ├── bfloppy1-special.copy ├── bfloppy1.copy ├── bfloppy1.grub ├── bfloppy2-special.copy ├── bfloppy2.boot ├── bfloppy2.copy ├── checklist ├── dist-README ├── fstab-to-settrans ├── install-stripped ├── menu.lst ├── mkemptyso.sh ├── mkfsimage.sh ├── mksmallso.sh ├── release-steps ├── rfloppy-special.copy ├── rfloppy.copy ├── rfloppy.group ├── rfloppy.nss ├── rfloppy.passwd ├── servers.boot └── tool-Makefile ├── rtc ├── Makefile ├── main.c ├── mig-mutate.h └── rtc-cmos_pioctl-ops.c ├── rumpdisk ├── Makefile ├── block-rump.c ├── block-rump.h ├── ioccom-rump.h └── main.c ├── shutdown ├── Makefile ├── mig-mutate.h └── shutdown.c ├── startup ├── Makefile └── startup.c ├── storeio ├── Makefile ├── dev.c ├── dev.h ├── io.c ├── open.c ├── open.h ├── pager.c └── storeio.c ├── sutils ├── MAKEDEV.sh ├── Makefile ├── bless.c ├── clookup.c ├── e2os.sh ├── fsck.c ├── fstab.c ├── fstab.h ├── halt.c ├── losetup.sh ├── reboot.c ├── smp.c ├── swapoff.c ├── swapon.c └── update.c ├── tasks ├── term ├── Makefile ├── devio.c ├── hurdio.c ├── main.c ├── mig-decls.h ├── mig-mutate.h ├── munge.c ├── ourmsg.defs ├── ptyio.c ├── term.h ├── users.c └── xinl.c ├── tmpfs ├── Makefile ├── dir.c ├── node.c ├── pager-stubs.c ├── tmpfs.c └── tmpfs.h ├── trans ├── Makefile ├── bogus-fifo.c ├── crash.c ├── fakeroot.c ├── fifo.c ├── firmlink.c ├── fwd.c ├── hello-mt.c ├── hello.c ├── ifsock.c ├── magic.c ├── mtab.c ├── new-fifo.c ├── null.c ├── password.c ├── proxy-defpager.c ├── random.c ├── remap.c ├── streamio.c └── symlink.c ├── usermux ├── Makefile ├── leaf.c ├── mux.c ├── node.c ├── stubs.c ├── usermux-xinl.c ├── usermux.c └── usermux.h ├── utils ├── Makefile ├── addauth.c ├── devprobe.c ├── fakeauth.c ├── fakeroot.sh ├── frobauth-mod.c ├── frobauth.c ├── frobauth.doc ├── frobauth.h ├── fsysopts.c ├── ftpcp.c ├── ftpdir.c ├── gcore.c ├── ids.c ├── login.c ├── loginpr.sh ├── match-options.c ├── match-options.h ├── mount.c ├── msgids.c ├── msgids.h ├── msgport.c ├── nonsugid.c ├── nullauth.c ├── parse.c ├── parse.h ├── pids.c ├── pids.h ├── portinfo.c ├── ps.c ├── psout.c ├── psout.h ├── remap.sh ├── rmauth.c ├── rpcscan.c ├── rpctrace.c ├── setauth.c ├── settrans.c ├── shd.c ├── showtrans.c ├── storecat.c ├── storeinfo.c ├── storeread.c ├── sush.sh ├── syncfs.c ├── umount.c ├── unsu.c ├── uptime.sh ├── vmallocate.c ├── vminfo.c ├── vmstat.c ├── w.c └── x.c └── version.h.in /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | 3 | *.d 4 | *.o 5 | *.a 6 | *.so 7 | *.so.* 8 | TAGS 9 | 10 | autom4te.cache/ 11 | /config.log 12 | /config.make 13 | /config.status 14 | /configure 15 | /version.h 16 | /doc/hurd.aux 17 | /doc/hurd.cp 18 | /doc/hurd.cps 19 | /doc/hurd.fn 20 | /doc/hurd.ky 21 | /doc/hurd.log 22 | /doc/hurd.pdf 23 | /doc/hurd.pg 24 | /doc/hurd.sc 25 | /doc/hurd.toc 26 | /doc/hurd.tp 27 | /doc/hurd.vr 28 | -------------------------------------------------------------------------------- /acpi/ncache.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2017 Free Software Foundation, Inc. 3 | 4 | This file is part of the GNU Hurd. 5 | 6 | The GNU Hurd is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License as 8 | published by the Free Software Foundation; either version 2, or (at 9 | your option) any later version. 10 | 11 | The GNU Hurd is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with the GNU Hurd. If not, see <http://www.gnu.org/licenses/>. 18 | */ 19 | 20 | /* Header for node caching functions */ 21 | 22 | #ifndef NCACHE_H 23 | #define NCACHE_H 24 | 25 | #include 26 | 27 | #include 28 | 29 | void node_cache (struct node *node); 30 | void node_unlink (struct node *node, struct acpifs *fs); 31 | 32 | #endif /* NCACHE_H */ 33 | -------------------------------------------------------------------------------- /auth/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 1991, 93, 94, 95, 96, 2000, 2012 Free Software Foundation, Inc. 2 | # 3 | # This file is part of the GNU Hurd. 4 | # 5 | # The GNU Hurd is free software; you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation; either version 2, or (at your option) 8 | # any later version. 9 | # 10 | # The GNU Hurd is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with the GNU Hurd; see the file COPYING. If not, write to 17 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 18 | 19 | dir := auth 20 | makemode := server 21 | 22 | SRCS = auth.c 23 | OBJS = auth.o authServer.o auth_replyUser.o 24 | target = auth 25 | HURDLIBS = ports ihash shouldbeinlibc 26 | LDLIBS = -lpthread 27 | 28 | MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h 29 | 30 | include ../Makeconf 31 | -------------------------------------------------------------------------------- /auth/auth.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014 Free Software Foundation, Inc. 3 | Written by Justus Winter. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . */ 19 | 20 | #ifndef __AUTH_H__ 21 | #define __AUTH_H__ 22 | 23 | #include 24 | 25 | extern struct port_bucket *auth_bucket; 26 | extern struct port_class *authhandle_portclass; 27 | 28 | #endif /* __AUTH_H__ */ 29 | -------------------------------------------------------------------------------- /benchmarks/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1994, 1995 Free Software Foundation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License as 6 | # published by the Free Software Foundation; either version 2, or (at 7 | # your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, but 10 | # WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | # General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 | 18 | dir := benchmarks 19 | makemode := utility 20 | 21 | SRCS = forks.c 22 | OBJS = forks.o 23 | target = forks 24 | 25 | include ../Makeconf 26 | -------------------------------------------------------------------------------- /boot/mig-decls.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014 Free Software Foundation, Inc. 3 | Written by Justus Winter. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . */ 19 | 20 | #ifndef __BOOT_MIG_DECLS_H__ 21 | #define __BOOT_MIG_DECLS_H__ 22 | 23 | #include 24 | 25 | #define MIG_EOPNOTSUPP EOPNOTSUPP 26 | 27 | #endif /* __BOOT_MIG_DECLS_H__ */ 28 | -------------------------------------------------------------------------------- /boot/mig-mutate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014 Free Software Foundation, Inc. 3 | Written by Justus Winter. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . */ 19 | 20 | #define MACH_IMPORTS \ 21 | import "mig-decls.h"; 22 | #define MACH_HOST_IMPORTS \ 23 | import "mig-decls.h"; 24 | #define GNUMACH_IMPORTS \ 25 | import "mig-decls.h"; 26 | -------------------------------------------------------------------------------- /boot/private.h: -------------------------------------------------------------------------------- 1 | /* Boot boots Subhurds. 2 | 3 | Copyright (C) 2017 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . */ 19 | 20 | #ifndef BOOT_PRIVATE_H 21 | #define BOOT_PRIVATE_H 22 | 23 | extern int verbose; 24 | 25 | #endif /* BOOT_PRIVATE_H */ 26 | -------------------------------------------------------------------------------- /build.mk.in: -------------------------------------------------------------------------------- 1 | # @configure_input@ 2 | # Generic subdirectory makefile for Hurd configured outside ${srcdir}. 3 | 4 | top_srcdir = @top_srcdir@ 5 | srcdir = @srcdir@ 6 | 7 | VPATH = $(srcdir) 8 | 9 | include $(srcdir)/Makefile 10 | -------------------------------------------------------------------------------- /build.mkcf.in: -------------------------------------------------------------------------------- 1 | 2 | # Get the make rules from the source directory. 3 | include $(top_srcdir)/Makeconf 4 | -------------------------------------------------------------------------------- /config/login-.bash_login: -------------------------------------------------------------------------------- 1 | . ~/.bashrc 2 | . ~/.profile 3 | -------------------------------------------------------------------------------- /config/login-.bashrc: -------------------------------------------------------------------------------- 1 | # login -- a normal login 2 | alias login='exec login -p -R-p -R-aHOME -R-aMOTD -R-e_LOGIN_RETRY=yes' 3 | alias logon=login 4 | alias l=login 5 | alias su=login 6 | 7 | # quick login -- don't act like a login shell, but do cd to $HOME 8 | alias ql='exec login -pSL -aMOTD -R-p -R-aHOME -R-aMOTD -R-e_LOGIN_RETRY=yes' 9 | 10 | alias help='cat $HOME/README' 11 | alias '?'=help 12 | -------------------------------------------------------------------------------- /config/login-.hushlogin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/config/login-.hushlogin -------------------------------------------------------------------------------- /config/login-.profile: -------------------------------------------------------------------------------- 1 | PS1='login> ' 2 | test "$_LOGIN_RETRY" || echo "Use \`login USER' to login, or \`help' for more information." 3 | unset _LOGIN_RETRY 4 | -------------------------------------------------------------------------------- /config/login-README: -------------------------------------------------------------------------------- 1 | This is a hurd login shell; it is a normal user shell, but has no user 2 | privileges. To login as a user with a userid of USER, use the command: 3 | 4 | login USER 5 | 6 | other useful commands: 7 | 8 | ql USER # quick login -- just start a shell in USER's home directory 9 | su USER # set the id of the current (login) shell to USER 10 | # (use the `unsu' command to undo this, or just exit the shell) 11 | -------------------------------------------------------------------------------- /config/motd: -------------------------------------------------------------------------------- 1 | This is the Hurd. Welcome. 2 | -------------------------------------------------------------------------------- /config/ttys: -------------------------------------------------------------------------------- 1 | # Programs to be maintained on terminal lines. init runs these programs, 2 | # and restartsthem when they die. Note that in GNU, unlike in BSD, there 3 | # is no need to list pseudo-ttys here. 4 | 5 | # name program type status comments 6 | 7 | console "/libexec/getty 9600" mach-gnu-color on secure trusted console 8 | tty1 "/libexec/getty 38400" hurd on secure trusted console 9 | tty2 "/libexec/getty 38400" hurd on secure trusted console 10 | tty3 "/libexec/getty 38400" hurd on secure trusted console 11 | tty4 "/libexec/getty 38400" hurd on secure trusted console 12 | tty5 "/libexec/getty 38400" hurd on secure trusted console 13 | tty6 "/libexec/getty 38400" hurd on secure trusted console 14 | #com0 "/libexec/getty 9600" dialup on secure 15 | -------------------------------------------------------------------------------- /config/ttys.in: -------------------------------------------------------------------------------- 1 | # Programs to be maintained on terminal lines. init runs these programs, 2 | # and restartsthem when they die. Note that in GNU, unlike in BSD, there 3 | # is no need to list pseudo-ttys here. 4 | 5 | # name program type status comments 6 | 7 | console "@libexecdir@/getty 9600" mach-gnu-color on secure trusted console 8 | tty1 "@libexecdir@/getty 38400" hurd on secure trusted console 9 | tty2 "@libexecdir@/getty 38400" hurd on secure trusted console 10 | tty3 "@libexecdir@/getty 38400" hurd on secure trusted console 11 | tty4 "@libexecdir@/getty 38400" hurd on secure trusted console 12 | tty5 "@libexecdir@/getty 38400" hurd on secure trusted console 13 | tty6 "@libexecdir@/getty 38400" hurd on secure trusted console 14 | #com0 "@libexecdir@/getty 9600" dialup on secure 15 | -------------------------------------------------------------------------------- /console-client/xkb/MISSING-FEATURES: -------------------------------------------------------------------------------- 1 | Required for 100% compatibility with XKB: 2 | 3 | - Jukebox (possibility that this won't ever be done) 4 | - Proper indicator support 5 | - overlays 6 | - Enabling/disabling controls 7 | - The following controls are not implemented at all: 8 | - SlowKeys 9 | - BounceKeys 10 | - StickyKeys 11 | - AccesXKeys 12 | - AccesXTimeout 13 | - AccessXFreedback (jukebox required) 14 | - Overlay1 + Overlay2 15 | - AudibleBell 16 | - IgnoreGroupLock 17 | - EnabledControls 18 | 19 | Hurd features: 20 | 21 | - Binding a string to a key (requires new action) 22 | (It should be possible to insert this on other vcs too) 23 | - Binding executable to a key (requires new action) 24 | 25 | I'm sure I forgot some missing features, please report them: 26 | metgerards@student.han.nl 27 | -------------------------------------------------------------------------------- /console-client/xkb/TODO: -------------------------------------------------------------------------------- 1 | Better memory handling. 2 | Better debug output 3 | CLEAN UP! 4 | -------------------------------------------------------------------------------- /console/motd.UTF8: -------------------------------------------------------------------------------- 1 |  2 |  3 |  This is the GNU Hurd. Welcome. 4 | 5 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | /*.info 2 | /*.info-* 3 | /version.texi 4 | -------------------------------------------------------------------------------- /exec/execmutations.h: -------------------------------------------------------------------------------- 1 | /* CPP definitions for MiG processing of exec.defs for exec server. */ 2 | 3 | #define FILE_INTRAN trivfs_protid_t trivfs_begin_using_protid (file_t) 4 | #define FILE_INTRAN_PAYLOAD trivfs_protid_t trivfs_begin_using_protid_payload 5 | #define FILE_DESTRUCTOR trivfs_end_using_protid (trivfs_protid_t) 6 | 7 | #define EXEC_IMPORTS \ 8 | import "priv.h"; \ 9 | import "../libtrivfs/mig-decls.h"; \ 10 | 11 | #define EXEC_STARTUP_INTRAN \ 12 | bootinfo_t begin_using_bootinfo_port (exec_startup_t) 13 | #define EXEC_STARTUP_INTRAN_PAYLOAD \ 14 | bootinfo_t begin_using_bootinfo_payload 15 | #define EXEC_STARTUP_DESTRUCTOR \ 16 | end_using_bootinfo (bootinfo_t) 17 | #define EXEC_STARTUP_IMPORTS \ 18 | import "priv.h"; \ 19 | import "mig-decls.h"; 20 | 21 | #define SERVERCOPY 1 22 | -------------------------------------------------------------------------------- /ext2fs/xinl.c: -------------------------------------------------------------------------------- 1 | #define EXT2FS_DEFINE_EI 2 | #include "ext2fs.h" 3 | -------------------------------------------------------------------------------- /fstests/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc. 2 | # This file is part of the GNU Hurd. 3 | # 4 | # The GNU Hurd is free software; you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation; either version 2, or (at your option) 7 | # any later version. 8 | # 9 | # The GNU Hurd is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with the GNU Hurd; see the file COPYING. If not, write to 16 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 17 | 18 | dir := fstests 19 | makemode := utilities 20 | 21 | SRCS = fstests.c fdtests.c timertest.c opendisk.c 22 | targets = timertest fstests # opendisk fdtests 23 | 24 | include ../Makeconf 25 | 26 | timertest: timertest.o 27 | fstests: fstests.o 28 | opendisk: opendisk.o 29 | fdtests: fdtests.o 30 | -------------------------------------------------------------------------------- /ftpfs/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for ftpfs 2 | # 3 | # Copyright (C) 1997, 2000, 2012 Free Software Foundation, Inc. 4 | # 5 | # This program is free software; you can redistribute it and/or 6 | # modify it under the terms of the GNU General Public License as 7 | # published by the Free Software Foundation; either version 2, or (at 8 | # your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | # General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | 19 | dir := ftpfs 20 | makemode := server 21 | 22 | target = ftpfs 23 | 24 | SRCS = ftpfs.c fs.c host.c netfs.c dir.c conn.c ccache.c node.c ncache.c 25 | 26 | OBJS = $(SRCS:.c=.o) 27 | HURDLIBS = netfs fshelp iohelp ports ihash ftpconn shouldbeinlibc 28 | LDLIBS = -lpthread 29 | 30 | include ../Makeconf 31 | -------------------------------------------------------------------------------- /hostmux/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for hostmux 2 | # 3 | # Copyright (C) 1997, 1999, 2000, 2012 Free Software Foundation, Inc. 4 | # 5 | # This program is free software; you can redistribute it and/or 6 | # modify it under the terms of the GNU General Public License as 7 | # published by the Free Software Foundation; either version 2, or (at 8 | # your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | # General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | 19 | dir := hostmux 20 | makemode := server 21 | 22 | target = hostmux 23 | 24 | SRCS = hostmux.c mux.c leaf.c node.c stubs.c 25 | 26 | OBJS = $(SRCS:.c=.o) 27 | HURDLIBS = netfs fshelp iohelp ports ihash shouldbeinlibc 28 | LDLIBS = -lpthread 29 | 30 | include ../Makeconf 31 | -------------------------------------------------------------------------------- /hostmux/hostmux-xinl.c: -------------------------------------------------------------------------------- 1 | /* Real definitions for extern inline functions in hostmux.h 2 | 3 | Copyright (C) 1997 Free Software Foundation, Inc. 4 | Written by Miles Bader 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #define HOSTMUX_DEFINE_EI 22 | #include "hostmux.h" 23 | -------------------------------------------------------------------------------- /hurd.boot: -------------------------------------------------------------------------------- 1 | # Boot script file for booting GNU Hurd. Each line specifies a file to be 2 | # loaded by the boot loader (the first word), and actions to be done with it. 3 | 4 | # First, the bootstrap filesystem. It needs several ports as arguments, 5 | # as well as the user flags from the boot loader. 6 | /hurd/ext2fs --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T device ${root-device} $(task-create) $(task-resume) 7 | 8 | # Now the exec server; to load the dynamically-linked exec server program, 9 | # we have the boot loader in fact load and run ld.so, which in turn 10 | # loads and runs /hurd/exec. This task is created, and its task port saved 11 | # in ${exec-task} to be passed to the fs above, but it is left suspended; 12 | # the fs will resume the exec task once it is ready. 13 | /lib/ld.so /hurd/exec $(exec-task=task-create) 14 | -------------------------------------------------------------------------------- /hurd/=pending-changes: -------------------------------------------------------------------------------- 1 | User visible: 2 | 3 | Add notification calls to process.defs (and create process_notify.defs). 4 | (not yet) 5 | 6 | Add file_exchange_contents (not yet) 7 | 8 | Change file_getfh and fsys_getfile to use more convenient interface. 9 | 10 | Add serverport arg to auth_user_authenticate; change auth to use it to 11 | abort auth_user_authenticate when it's dead. 12 | 13 | Add optional timeout arg to msg.defs. 14 | 15 | Add file_fetch_dir. 16 | 17 | Delete release arg from register version crap. 18 | 19 | Delete non-string args from io_server_version; separate name and version. 20 | 21 | Not user visible: 22 | 23 | Format of /var/login should be user:1 not user-1. 24 | [Or as subdirectories, if a server supplies directory ops anyway] 25 | -------------------------------------------------------------------------------- /hurd/default_pager_reply.defs: -------------------------------------------------------------------------------- 1 | /* Reply half of default_pager.defs. */ 2 | 3 | subsystem default_pager_reply 2375; /* 2275 + 100 */ 4 | 5 | #include 6 | 7 | skip; /* default_pager_object_create */ 8 | skip; /* default_pager_info */ 9 | skip; /* default_pager_objects */ 10 | skip; /* default_pager_object_pages */ 11 | skip; /* default_pager_paging_file */ 12 | skip; /* default_pager_register_fileserver */ 13 | skip; /* default_pager_paging_storage */ 14 | 15 | simpleroutine default_pager_object_set_size_reply( 16 | reply_port: mach_port_send_once_t; 17 | RETURN_CODE_ARG); 18 | 19 | skip; /* default_pager_storage_info */ 20 | -------------------------------------------------------------------------------- /hurd/ioctl-decode.h: -------------------------------------------------------------------------------- 1 | /* This file is used by the Makefile rules for generating 2 | Xioctl-proto.defs, see Makefile for details. */ 3 | 4 | #define CMD(request) _IOC_COMMAND (request) 5 | #define TYPE(request) _IOC_TYPE (request) 6 | #define INOUT(request) _IOC_INOUT (request) 7 | 8 | #define SUBID(request) IOC_COMMAND_SUBID (_IOC_COMMAND (request)) 9 | 10 | #define TYPE0(request) _IOT_TYPE0 (_IOC_TYPE (request)) 11 | #define TYPE1(request) _IOT_TYPE1 (_IOC_TYPE (request)) 12 | #define TYPE2(request) _IOT_TYPE2 (_IOC_TYPE (request)) 13 | #define COUNT0(request) _IOT_COUNT0 (_IOC_TYPE (request)) 14 | #define COUNT1(request) _IOT_COUNT1 (_IOC_TYPE (request)) 15 | #define COUNT2(request) _IOT_COUNT2 (_IOC_TYPE (request)) 16 | -------------------------------------------------------------------------------- /hurd/ioctl-tmpl.sym: -------------------------------------------------------------------------------- 1 | /* This file is used by the Makefile rules for generating 2 | Xioctl-proto.defs, see Makefile for details. */ 3 | 4 | #include 5 | #include 6 | 7 | #include "ioctl-decode.h" 8 | 9 | #include "@HEADER_LIST@" 10 | #define GROUPCHAR '@GROUP@' 11 | 12 | expr GROUPCHAR GROUP 13 | expr IOC_GROUP_SUBSYSTEM(GROUPCHAR) SUBSYSTEM 14 | -------------------------------------------------------------------------------- /hurd/shutdown.defs: -------------------------------------------------------------------------------- 1 | /* Definitions for shutdown 2 | Copyright (C) 2018 Free Software Foundation, Inc. 3 | 4 | This file is part of the GNU Hurd. 5 | 6 | The GNU Hurd is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 2, or (at your option) 9 | any later version. 10 | 11 | The GNU Hurd is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with the GNU Hurd; see the file COPYING. If not, write to 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | subsystem shutdown 40000; 21 | 22 | #include 23 | 24 | #ifdef SHUTDOWN_IMPORTS 25 | SHUTDOWN_IMPORTS 26 | #endif 27 | 28 | /* 29 | * Shut down the computer 30 | */ 31 | routine shutdown_shutdown ( 32 | server : shutdown_t 33 | ); 34 | -------------------------------------------------------------------------------- /hurd/version.h: -------------------------------------------------------------------------------- 1 | /* This file just gives a value that can be tested easily with #if as a 2 | gross check of the Hurd interface version. It has the format YYYYMMDD 3 | and will only ever be increased. This will be bumped whenever either 4 | the RPC interfaces or the library APIs change. */ 5 | 6 | #define HURD_INTERFACE_VERSION 20201227 7 | -------------------------------------------------------------------------------- /init/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 Free Software Foundation, Inc. 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License as 6 | # published by the Free Software Foundation; either version 2, or (at 7 | # your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, but 10 | # WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | # General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program. If not, see . 16 | 17 | dir := init 18 | makemode := server 19 | 20 | SRCS = init.c 21 | OBJS = $(SRCS:.c=.o) 22 | target = init 23 | 24 | init-CPPFLAGS=-DLIBEXECDIR=\"${libexecdir}\" 25 | 26 | include ../Makeconf 27 | -------------------------------------------------------------------------------- /isofs/EXTENSIONS: -------------------------------------------------------------------------------- 1 | -*- Text -*- 2 | 3 | These are the SUSP and RockRidge compliant extensions that GNU uses: 4 | 5 | See rr.h for format details. 6 | 7 | AU: Author, an additional uid on a file. If this is not present, the 8 | author is the same as the owner. 9 | 10 | TR: Translator, specifying a command line to run as a translator. 11 | 12 | MD: A full 32 bit hurd mode; if not present, the mode is the one found 13 | in the PX record. 14 | 15 | FL: 32 bits of flags; if not present, the flags are zero. 16 | -------------------------------------------------------------------------------- /libcons/priv.c: -------------------------------------------------------------------------------- 1 | /* Default values for weak variables 2 | Copyright (C) 2002 Free Software Foundation, Inc. 3 | Written by Marcus Brinkmann. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | 22 | #include "priv.h" 23 | 24 | char *cons_extra_version __attribute__ ((weak)) = ""; 25 | -------------------------------------------------------------------------------- /libdiskfs/extern-inline.c: -------------------------------------------------------------------------------- 1 | /* Run time callable functions for extern inlines. 2 | Copyright (C) 2001 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #define DISKFS_DEFINE_EXTERN_INLINE 19 | 20 | #include "diskfs.h" 21 | -------------------------------------------------------------------------------- /libdiskfs/node-nrefl.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1999 Free Software Foundation, Inc. 3 | Written by Thomas Bushnell, BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | /* Add a light reference to a node. */ 24 | void 25 | diskfs_nref_light (struct node *np) 26 | { 27 | refcounts_ref_weak (&np->refcounts, NULL); 28 | } 29 | -------------------------------------------------------------------------------- /libdiskfs/opts-get.c: -------------------------------------------------------------------------------- 1 | /* Get run-time options 2 | 3 | Copyright (C) 1995,96,2002 Free Software Foundation, Inc. 4 | Written by Miles Bader 5 | 6 | This file is part of the GNU Hurd. 7 | 8 | The GNU Hurd is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2, or (at 11 | your option) any later version. 12 | 13 | The GNU Hurd is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with this program; if not, write to the Free Software 20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 21 | 22 | #include "priv.h" 23 | 24 | error_t 25 | diskfs_append_args (char **argz, size_t *argz_len) 26 | { 27 | return diskfs_append_std_options (argz, argz_len); 28 | } 29 | -------------------------------------------------------------------------------- /libdiskfs/opts-runtime.c: -------------------------------------------------------------------------------- 1 | /* Default definition for diskfs_runtime_argp 2 | 3 | Copyright (C) 1996, 2004 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "priv.h" 22 | #include 23 | 24 | struct argp *diskfs_runtime_argp = (struct argp *)&diskfs_std_runtime_argp; 25 | -------------------------------------------------------------------------------- /libdiskfs/sync-default.c: -------------------------------------------------------------------------------- 1 | /* A variable holding the initial sync interval 2 | 3 | Copyright (C) 1995, 1999 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | int diskfs_default_sync_interval __attribute__ ((weak)) = DEFAULT_SYNC_INTERVAL; 24 | -------------------------------------------------------------------------------- /libdiskfs/validate-author.c: -------------------------------------------------------------------------------- 1 | /* Default version of diskfs_validate_author_change 2 | Copyright (C) 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | error_t __attribute__ ((weak)) 24 | diskfs_validate_author_change (struct node *np, uid_t author) 25 | { 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /libdiskfs/validate-flags.c: -------------------------------------------------------------------------------- 1 | /* Default version of diskfs_validate_flags_change 2 | Copyright (C) 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | error_t __attribute__ ((weak)) 24 | diskfs_validate_flags_change (struct node *np, int flags) 25 | { 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /libdiskfs/validate-group.c: -------------------------------------------------------------------------------- 1 | /* Default version of diskfs_validate_group_change 2 | Copyright (C) 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | error_t __attribute__ ((weak)) 24 | diskfs_validate_group_change (struct node *np, gid_t group) 25 | { 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /libdiskfs/validate-mode.c: -------------------------------------------------------------------------------- 1 | /* Default version of diskfs_validate_mode_change 2 | Copyright (C) 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | error_t __attribute__ ((weak)) 24 | diskfs_validate_mode_change (struct node *np, mode_t mode) 25 | { 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /libdiskfs/validate-owner.c: -------------------------------------------------------------------------------- 1 | /* Default version of diskfs_validate_owner_change 2 | Copyright (C) 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | error_t __attribute__ ((weak)) 24 | diskfs_validate_owner_change (struct node *np, uid_t uid) 25 | { 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /libdiskfs/validate-rdev.c: -------------------------------------------------------------------------------- 1 | /* Default version of diskfs_validate_rdev_change 2 | Copyright (C) 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | error_t __attribute__ ((weak)) 24 | diskfs_validate_rdev_change (struct node *np, dev_t rdev) 25 | { 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /libfshelp/drop-transbox.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "fshelp.h" 22 | 23 | void 24 | fshelp_drop_transbox (struct transbox *box) 25 | { 26 | if (box->active != MACH_PORT_NULL) 27 | mach_port_deallocate (mach_task_self (), box->active); 28 | } 29 | -------------------------------------------------------------------------------- /libfshelp/extern-inline.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2001, 2014-2019 Free Software Foundation 3 | 4 | Written by Neal H Walfield 5 | 6 | This file is part of the GNU Hurd. 7 | 8 | The GNU Hurd is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2, or (at your option) 11 | any later version. 12 | 13 | The GNU Hurd is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the GNU Hurd. If not, see . */ 20 | 21 | #define FSHELP_DEFINE_EXTERN_INLINE 22 | 23 | #include "fshelp.h" 24 | #include "rlock.h" 25 | 26 | -------------------------------------------------------------------------------- /libfshelp/translated.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1999 Free Software Foundation, Inc. 3 | Written by Thomas Bushnell, BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "fshelp.h" 22 | 23 | /* Return true iff there is an active translator on this box */ 24 | int 25 | fshelp_translated (struct transbox *box) 26 | { 27 | return (box->active != MACH_PORT_NULL); 28 | } 29 | -------------------------------------------------------------------------------- /libftpconn/xinl.c: -------------------------------------------------------------------------------- 1 | /* Real definitions for extern inline functions in priv.h 2 | 3 | Copyright (C) 1997 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader . 6 | 7 | The GNU C Library is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU Library General Public License as 9 | published by the Free Software Foundation; either version 2 of the 10 | License, or (at your option) any later version. 11 | 12 | The GNU C Library is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | Library General Public License for more details. 16 | 17 | You should have received a copy of the GNU Library General Public 18 | License along with the GNU C Library; see the file COPYING.LIB. If not, 19 | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 | Boston, MA 02111-1307, USA. */ 21 | 22 | #define FTP_CONN_DEFINE_EI 23 | #include 24 | #include "priv.h" 25 | -------------------------------------------------------------------------------- /libhurd-slab/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1994,95,96,97,98,99,2000,01,02,2005 Free Software Foundation, Inc. 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License as 6 | # published by the Free Software Foundation; either version 2, or (at 7 | # your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, but 10 | # WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | # General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 | 18 | dir := libhurd-slab 19 | makemode := library 20 | 21 | libname = libhurd-slab 22 | SRCS= slab.c 23 | LCLHDRS = slab.h 24 | installhdrs = slab.h 25 | 26 | MIGSTUBS = 27 | OBJS = $(sort $(SRCS:.c=.o) $(MIGSTUBS)) 28 | 29 | LDLIBS = -lpthread 30 | 31 | MIGCOMSFLAGS = 32 | 33 | include ../Makeconf 34 | -------------------------------------------------------------------------------- /libhurdbugaddr/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1996 Free Software Foundation, Inc. 3 | # Written by Miles Bader 4 | # 5 | # This file is part of the GNU Hurd. 6 | # 7 | # The GNU Hurd is free software; you can redistribute it and/or 8 | # modify it under the terms of the GNU General Public License as 9 | # published by the Free Software Foundation; either version 2, or (at 10 | # your option) any later version. 11 | # 12 | # The GNU Hurd is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, write to the Free Software 19 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 | 21 | dir := libhurdbugaddr 22 | makemode := library 23 | libname := libhurdbugaddr 24 | 25 | SRCS=bugaddr.c 26 | OBJS=bugaddr.o 27 | 28 | include ../Makeconf 29 | -------------------------------------------------------------------------------- /libhurdbugaddr/bugaddr.c: -------------------------------------------------------------------------------- 1 | /* Hurd default for ARGP_PROGRAM_BUG_ADDRESS 2 | 3 | Copyright (C) 1996, 1998 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader 6 | 7 | This file is part of the GNU Hurd. 8 | 9 | The GNU Hurd is free software; you can redistribute it and/or 10 | modify it under the terms of the GNU General Public License as 11 | published by the Free Software Foundation; either version 2, or (at 12 | your option) any later version. 13 | 14 | The GNU Hurd is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program; if not, write to the Free Software 21 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 22 | 23 | const char *argp_program_bug_address = ""; 24 | -------------------------------------------------------------------------------- /libihash/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 1995, 1996, 2001, 2003, 2012 Free Software Foundation, Inc. 2 | # 3 | # This file is part of the GNU Hurd. 4 | # 5 | # The GNU Hurd is free software; you can redistribute it and/or 6 | # modify it under the terms of the GNU General Public License as 7 | # published by the Free Software Foundation; either version 2, or (at 8 | # your option) any later version. 9 | # 10 | # The GNU Hurd is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | # General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | 19 | dir := libihash 20 | makemode := library 21 | 22 | libname := libihash 23 | SRCS = ihash.c murmur3.c 24 | installhdrs = ihash.h 25 | 26 | HURDLIBS = shouldbeinlibc 27 | OBJS = $(SRCS:.c=.o) 28 | 29 | include ../Makeconf 30 | -------------------------------------------------------------------------------- /libiohelp/iouser-free.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996 Free Software Foundation 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "iohelp.h" 19 | 20 | #include 21 | 22 | void 23 | iohelp_free_iouser (struct iouser *iouser) 24 | { 25 | idvec_free (iouser->uids); 26 | idvec_free (iouser->gids); 27 | free (iouser); 28 | } 29 | -------------------------------------------------------------------------------- /libirqhelp/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2022 Free Software Foundation, Inc. 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License as 5 | # published by the Free Software Foundation; either version 2, or (at 6 | # your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, but 9 | # WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 | # General Public License for more details. 12 | # 13 | # You should have received a copy of the GNU General Public License 14 | # along with this program; if not, write to the Free Software 15 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16 | 17 | dir := libirqhelp 18 | makemode := library 19 | 20 | SRCS = irqhelp.c acpiUser.c 21 | 22 | OBJS = $(SRCS:.c=.o) 23 | HURDLIBS = 24 | LDLIBS += -lpthread 25 | libname = libirqhelp 26 | installhdrs = irqhelp.h 27 | 28 | include ../Makeconf 29 | -------------------------------------------------------------------------------- /libnetfs/callbacks.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | 22 | /* Translator callback function declarations. */ 23 | 24 | extern fshelp_fetch_root_callback1_t _netfs_translator_callback1; 25 | extern fshelp_fetch_root_callback2_t _netfs_translator_callback2; 26 | -------------------------------------------------------------------------------- /libnetfs/dir-notice-changes.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "netfs.h" 22 | #include "fs_S.h" 23 | 24 | kern_return_t 25 | netfs_S_dir_notice_changes (struct protid *dir, 26 | mach_port_t port) 27 | { 28 | /* Don't even try */ 29 | return EOPNOTSUPP; 30 | } 31 | -------------------------------------------------------------------------------- /libnetfs/drop-node.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995, 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "netfs.h" 22 | 23 | void 24 | netfs_drop_node (struct node *np) 25 | { 26 | fshelp_drop_transbox (&np->transbox); 27 | netfs_node_norefs (np); 28 | } 29 | -------------------------------------------------------------------------------- /libnetfs/execserver.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | 22 | /* To contact the execserver */ 23 | file_t _netfs_exec; 24 | -------------------------------------------------------------------------------- /libnetfs/get-source.c: -------------------------------------------------------------------------------- 1 | /* Default version of netfs_get_source 2 | 3 | Copyright (C) 2013 Free Software Foundation, Inc. 4 | 5 | Written by Justus Winter <4winter@informatik.uni-hamburg.de> 6 | 7 | This file is part of the GNU Hurd. 8 | 9 | The GNU Hurd is free software; you can redistribute it and/or 10 | modify it under the terms of the GNU General Public License as 11 | published by the Free Software Foundation; either version 2, or (at 12 | your option) any later version. 13 | 14 | The GNU Hurd is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with the GNU Hurd. If not, see . */ 21 | 22 | #include "priv.h" 23 | 24 | error_t __attribute__ ((weak)) 25 | netfs_get_source (char *source, size_t source_len) 26 | { 27 | return EOPNOTSUPP; 28 | } 29 | -------------------------------------------------------------------------------- /libnetfs/io-async.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | 22 | #include "netfs.h" 23 | #include "io_S.h" 24 | 25 | kern_return_t 26 | netfs_S_io_async (struct protid *user, mach_port_t notify, mach_port_t *id, 27 | mach_msg_type_name_t *idt) 28 | { 29 | return EOPNOTSUPP; 30 | } 31 | -------------------------------------------------------------------------------- /libnetfs/io-get-icky-async-id.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "netfs.h" 22 | #include "io_S.h" 23 | 24 | kern_return_t 25 | netfs_S_io_get_icky_async_id (struct protid *user, mach_port_t *pt, 26 | mach_msg_type_name_t *ptt) 27 | { 28 | return EOPNOTSUPP; 29 | } 30 | -------------------------------------------------------------------------------- /libnetfs/misc.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995, 2004 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include 22 | 23 | /* Bits that are turned off after open */ 24 | #define OPENONLY_STATE_MODES (O_CREAT|O_EXCL|O_NOLINK|O_NOTRANS) 25 | -------------------------------------------------------------------------------- /libnetfs/modes.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include 22 | #define HONORED_STATE_MODES (O_APPEND|O_ASYNC|O_FSYNC|O_NONBLOCK|O_NOATIME) 23 | -------------------------------------------------------------------------------- /libnetfs/runtime-argp.c: -------------------------------------------------------------------------------- 1 | /* Default definition for netfs_runtime_argp 2 | 3 | Copyright (C) 1996, 2004 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "netfs.h" 22 | #include 23 | 24 | struct argp *netfs_runtime_argp = (struct argp *)&netfs_std_runtime_argp; 25 | -------------------------------------------------------------------------------- /libnetfs/set-options.c: -------------------------------------------------------------------------------- 1 | /* Parse run-time options 2 | 3 | Copyright (C) 1995, 1996 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "netfs.h" 22 | 23 | error_t 24 | netfs_set_options (const char *argz, size_t argz_len) 25 | { 26 | if (netfs_runtime_argp) 27 | return fshelp_set_options (netfs_runtime_argp, 0, argz, argz_len, 0); 28 | else 29 | return EOPNOTSUPP; 30 | } 31 | -------------------------------------------------------------------------------- /libnetfs/std-runtime-argp.c: -------------------------------------------------------------------------------- 1 | /* Parse standard run-time options 2 | 3 | Copyright (C) 1995, 1996 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include 22 | #include "netfs.h" 23 | 24 | const struct argp netfs_std_runtime_argp = { 0 }; 25 | -------------------------------------------------------------------------------- /libnetfs/std-startup-argp.c: -------------------------------------------------------------------------------- 1 | /* Standard startup-time command line parser 2 | 3 | Copyright (C) 1995, 1996 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader 6 | 7 | This file is part of the GNU Hurd. 8 | 9 | The GNU Hurd is free software; you can redistribute it and/or 10 | modify it under the terms of the GNU General Public License as 11 | published by the Free Software Foundation; either version 2, or (at 12 | your option) any later version. 13 | 14 | The GNU Hurd is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with this program; if not, write to the Free Software 21 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 22 | 23 | #include 24 | #include "netfs.h" 25 | 26 | const struct argp 27 | netfs_std_startup_argp = { 0 }; 28 | -------------------------------------------------------------------------------- /libpager/dropweak.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | void 24 | _pager_real_dropweak (void *arg) 25 | { 26 | struct pager *p = arg; 27 | 28 | pager_dropweak (p->upi); 29 | } 30 | -------------------------------------------------------------------------------- /libpager/get-upi.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | struct user_pager_info * 24 | pager_get_upi (struct pager *p) 25 | { 26 | return p->upi; 27 | } 28 | -------------------------------------------------------------------------------- /libpager/mig-mutate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014 Free Software Foundation, Inc. 3 | Written by Justus Winter. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . */ 19 | 20 | #define MEMORY_OBJECT_INTRAN pager_t begin_using_pager (memory_object_t) 21 | #define MEMORY_OBJECT_INTRAN_PAYLOAD pager_t begin_using_pager_payload 22 | #define MEMORY_OBJECT_DESTRUCTOR end_using_pager (pager_t) 23 | #define MEMORY_OBJECT_IMPORTS import "mig-decls.h"; 24 | -------------------------------------------------------------------------------- /libpager/pager-port.c: -------------------------------------------------------------------------------- 1 | /* Return the port corresponding to a pager. 2 | Copyright (C) 1993, 1994 Free Software Foundation 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | 20 | /* Return the port (receive right) corresponding to a pager. It is 21 | essential that a new send right be created from this port. */ 22 | mach_port_t 23 | pager_get_port (struct pager *p) 24 | { 25 | return ports_get_right (p); 26 | } 27 | -------------------------------------------------------------------------------- /libpipe/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for libpipe 2 | # 3 | # Copyright (C) 1995, 1996, 2012 Free Software Foundation, Inc. 4 | # 5 | # This program is free software; you can redistribute it and/or 6 | # modify it under the terms of the GNU General Public License as 7 | # published by the Free Software Foundation; either version 2, or (at 8 | # your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | # General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | 19 | dir := libpipe 20 | makemode := library 21 | 22 | libname = libpipe 23 | installhdrs = pipe.h pq.h 24 | 25 | SRCS = pq.c dgram.c pipe.c stream.c seqpack.c addr.c pq-funcs.c pipe-funcs.c 26 | 27 | OBJS = $(SRCS:.c=.o) 28 | HURDLIBS= ports 29 | LDLIBS += -lpthread 30 | 31 | include ../Makeconf 32 | -------------------------------------------------------------------------------- /libpipe/pipe-funcs.c: -------------------------------------------------------------------------------- 1 | #define PIPE_DEFINE_EI 2 | #include "pipe.h" 3 | -------------------------------------------------------------------------------- /libpipe/pq-funcs.c: -------------------------------------------------------------------------------- 1 | #define PQ_DEFINE_EI 2 | #include "pq.h" 3 | -------------------------------------------------------------------------------- /libports/class-iterate.c: -------------------------------------------------------------------------------- 1 | /* Iterate a function over the ports in a class. 2 | Copyright (C) 1999 Free Software Foundation, Inc. 3 | 4 | This file is part of the GNU Hurd. 5 | 6 | The GNU Hurd is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License as 8 | published by the Free Software Foundation; either version 2, or (at 9 | your option) any later version. 10 | 11 | The GNU Hurd is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 19 | 20 | #include "ports.h" 21 | 22 | error_t 23 | ports_class_iterate (struct port_class *class, 24 | error_t (*fun)(void *)) 25 | { 26 | return _ports_bucket_class_iterate (&_ports_htable, class, fun); 27 | } 28 | -------------------------------------------------------------------------------- /libports/extern-inline.c: -------------------------------------------------------------------------------- 1 | /* Run time callable functions for extern inlines. 2 | Copyright (C) 2014 Free Software Foundation, Inc. 3 | 4 | Written by Justus Winter <4winter@informatik.uni-hamburg.de> 5 | 6 | This file is part of the GNU Hurd. 7 | 8 | The GNU Hurd is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2, or (at 11 | your option) any later version. 12 | 13 | The GNU Hurd is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the GNU Hurd. If not, see . */ 20 | 21 | #define PORTS_DEFINE_EI 22 | #include "ports.h" 23 | -------------------------------------------------------------------------------- /libports/notify-msg-accepted.c: -------------------------------------------------------------------------------- 1 | /* Msg accepted notification 2 | 3 | Copyright (C) 1995 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "ports.h" 22 | #include "notify_S.h" 23 | 24 | kern_return_t 25 | ports_do_mach_notify_msg_accepted (struct port_info *pi, 26 | mach_port_t name) 27 | { 28 | return EOPNOTSUPP; 29 | } 30 | -------------------------------------------------------------------------------- /libports/notify-port-deleted.c: -------------------------------------------------------------------------------- 1 | /* Port deleted notification 2 | 3 | Copyright (C) 1995 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "ports.h" 22 | #include "notify_S.h" 23 | 24 | kern_return_t 25 | ports_do_mach_notify_port_deleted (struct port_info *pi, 26 | mach_port_t name) 27 | { 28 | return EOPNOTSUPP; 29 | } 30 | -------------------------------------------------------------------------------- /libports/notify-port-destroyed.c: -------------------------------------------------------------------------------- 1 | /* Port destroyed notification 2 | 3 | Copyright (C) 1995 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "ports.h" 22 | #include "notify_S.h" 23 | 24 | kern_return_t 25 | ports_do_mach_notify_port_destroyed (struct port_info *pi, 26 | mach_port_t name) 27 | { 28 | return EOPNOTSUPP; 29 | } 30 | -------------------------------------------------------------------------------- /libports/notify-send-once.c: -------------------------------------------------------------------------------- 1 | /* Send once notification 2 | 3 | Copyright (C) 1995 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "ports.h" 22 | #include "notify_S.h" 23 | 24 | kern_return_t 25 | ports_do_mach_notify_send_once (struct port_info *pi) 26 | { 27 | return EOPNOTSUPP; 28 | } 29 | -------------------------------------------------------------------------------- /libports/port-ref-weak.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "ports.h" 22 | #include 23 | 24 | void 25 | ports_port_ref_weak (void *portstruct) 26 | { 27 | struct port_info *pi = portstruct; 28 | refcounts_ref_weak (&pi->refcounts, NULL); 29 | } 30 | -------------------------------------------------------------------------------- /libports/port-ref.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "ports.h" 22 | #include 23 | 24 | void 25 | ports_port_ref (void *portstruct) 26 | { 27 | struct port_info *pi = portstruct; 28 | refcounts_ref (&pi->refcounts, NULL); 29 | } 30 | -------------------------------------------------------------------------------- /libshouldbeinlibc/idvec-funcs.c: -------------------------------------------------------------------------------- 1 | #define IDVEC_DEFINE_EI 2 | #include "idvec.h" 3 | -------------------------------------------------------------------------------- /libshouldbeinlibc/maptime-funcs.c: -------------------------------------------------------------------------------- 1 | #define MAPTIME_DEFINE_EI 2 | #include 3 | #include 4 | #include 5 | #include "maptime.h" 6 | -------------------------------------------------------------------------------- /libshouldbeinlibc/refcount.c: -------------------------------------------------------------------------------- 1 | /* Lock-less reference counting primitives 2 | 3 | Copyright (C) 2014 Free Software Foundation, Inc. 4 | 5 | Written by Justus Winter <4winter@informatik.uni-hamburg.de> 6 | 7 | This file is part of the GNU Hurd. 8 | 9 | The GNU Hurd is free software; you can redistribute it and/or 10 | modify it under the terms of the GNU General Public License as 11 | published by the Free Software Foundation; either version 2, or (at 12 | your option) any later version. 13 | 14 | The GNU Hurd is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with the GNU Hurd. If not, see . */ 21 | 22 | #define REFCOUNT_DEFINE_EI 23 | #include "refcount.h" 24 | -------------------------------------------------------------------------------- /libshouldbeinlibc/ugids-xinl.c: -------------------------------------------------------------------------------- 1 | /* Real definitions for extern inline functions in ugids.h 2 | 3 | Copyright (C) 1997 Free Software Foundation, Inc. 4 | 5 | Written by Miles Bader . 6 | 7 | The GNU C Library is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU Library General Public License as 9 | published by the Free Software Foundation; either version 2 of the 10 | License, or (at your option) any later version. 11 | 12 | The GNU C Library is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | Library General Public License for more details. 16 | 17 | You should have received a copy of the GNU Library General Public 18 | License along with the GNU C Library; see the file COPYING.LIB. If not, 19 | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 | Boston, MA 02111-1307, USA. */ 21 | 22 | #define UGIDS_DEFINE_EI 23 | #include "ugids.h" 24 | -------------------------------------------------------------------------------- /libstore/bunzip2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void do_bunzip2 (void); /* Entry point to bunzip2 engine. */ 4 | 5 | static error_t 6 | DO_UNZIP (void) 7 | { 8 | do_bunzip2 (); 9 | return 0; 10 | } 11 | 12 | #define UNZIP bunzip2 13 | #include "unzipstore.c" 14 | -------------------------------------------------------------------------------- /libstore/crypt.h: -------------------------------------------------------------------------------- 1 | /* crypt.h (dummy version) -- do not perform encryption 2 | * Hardly worth copyrighting :-) 3 | */ 4 | 5 | #ifdef CRYPT 6 | # undef CRYPT /* dummy version */ 7 | #endif 8 | 9 | #define RAND_HEAD_LEN 12 /* length of encryption random header */ 10 | 11 | #define zencode 12 | #define zdecode 13 | -------------------------------------------------------------------------------- /libstore/util.c: -------------------------------------------------------------------------------- 1 | /* Hacked and slashed by roland@gnu.ai.mit.edu for use in Hurd exec server. */ 2 | 3 | /* util.c -- utility functions for gzip support 4 | * Copyright (C) 1992-1993 Jean-loup Gailly 5 | * This is free software; you can redistribute it and/or modify it under the 6 | * terms of the GNU General Public License, see the file COPYING. 7 | */ 8 | 9 | #ifdef RCSID 10 | static char rcsid[] = "$Id: util.c,v 1.1 1994/12/14 04:29:37 roland Exp $"; 11 | #endif 12 | 13 | #include 14 | 15 | /* I/O interface */ 16 | int (*unzip_read) (char *buf, size_t maxread); 17 | void (*unzip_write) (const char *buf, size_t nwrite); 18 | void (*unzip_read_error) (void); 19 | void (*unzip_error) (const char *msg); 20 | -------------------------------------------------------------------------------- /libstore/xinl.c: -------------------------------------------------------------------------------- 1 | #define STORE_DEFINE_EI 2 | #include "store.h" 3 | -------------------------------------------------------------------------------- /libtrivfs/dir-chg.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | 20 | kern_return_t 21 | trivfs_S_dir_notice_changes (struct trivfs_protid *cred, 22 | mach_port_t reply, mach_msg_type_name_t reply_type, 23 | mach_port_t notify) 24 | { 25 | return cred ? ENOTDIR : EOPNOTSUPP; 26 | } 27 | -------------------------------------------------------------------------------- /libtrivfs/dir-mkdir.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,02 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | 20 | kern_return_t 21 | trivfs_S_dir_mkdir (struct trivfs_protid *cred, 22 | mach_port_t reply, mach_msg_type_name_t reply_type, 23 | const_string_t name, mode_t mode) 24 | { 25 | return cred ? ENOTDIR : EOPNOTSUPP; 26 | } 27 | -------------------------------------------------------------------------------- /libtrivfs/dir-rmdir.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | 20 | kern_return_t 21 | trivfs_S_dir_rmdir (struct trivfs_protid *cred, 22 | mach_port_t reply, mach_msg_type_name_t reply_type, 23 | const_string_t name) 24 | { 25 | return cred ? ENOTDIR : EOPNOTSUPP; 26 | } 27 | -------------------------------------------------------------------------------- /libtrivfs/dir-unlink.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | 20 | kern_return_t 21 | trivfs_S_dir_unlink (struct trivfs_protid *cred, 22 | mach_port_t reply, mach_msg_type_name_t reply_type, 23 | const_string_t name) 24 | { 25 | return cred ? ENOTDIR : EOPNOTSUPP; 26 | } 27 | -------------------------------------------------------------------------------- /libtrivfs/file-chauthor.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_chauthor (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | uid_t auth) 25 | { 26 | return cred ? file_chauthor (cred->realnode, auth) : EOPNOTSUPP; 27 | } 28 | -------------------------------------------------------------------------------- /libtrivfs/file-chflags.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_chflags (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | int flags) 25 | { 26 | return cred ? file_chflags (cred->realnode, flags) : EOPNOTSUPP; 27 | } 28 | -------------------------------------------------------------------------------- /libtrivfs/file-chg.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_notice_changes (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | mach_port_t notify) 25 | { 26 | return EOPNOTSUPP; 27 | } 28 | -------------------------------------------------------------------------------- /libtrivfs/file-chmod.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_chmod (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | mode_t mode) 25 | { 26 | /* Is this right? */ 27 | return cred ? file_chmod (cred->realnode, mode) : EOPNOTSUPP; 28 | } 29 | -------------------------------------------------------------------------------- /libtrivfs/file-chown.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_chown (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | uid_t uid, gid_t gid) 25 | { 26 | return cred ? file_chown (cred->realnode, uid, gid) : EOPNOTSUPP; 27 | } 28 | -------------------------------------------------------------------------------- /libtrivfs/file-get-transcntl.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_get_translator_cntl (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | mach_port_t *cntl, 25 | mach_msg_type_name_t *cntl_type) 26 | { 27 | return EOPNOTSUPP; 28 | } 29 | -------------------------------------------------------------------------------- /libtrivfs/file-getfh.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_getfh (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | data_t *data, mach_msg_type_number_t *datalen) 25 | { 26 | return EOPNOTSUPP; 27 | } 28 | -------------------------------------------------------------------------------- /libtrivfs/file-lock-stat.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994, 2002, 2015-2019 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with the GNU Hurd. If not, see . 16 | */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | #include 22 | #include 23 | 24 | kern_return_t 25 | trivfs_S_file_lock_stat (struct trivfs_protid *cred, 26 | mach_port_t reply, mach_msg_type_name_t reply_type, 27 | int *mystatus, int *otherstatus) 28 | { 29 | return EOPNOTSUPP; 30 | } 31 | -------------------------------------------------------------------------------- /libtrivfs/file-lock.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994, 2002, 2015-2019 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with the GNU Hurd. If not, see . 16 | */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | #include 22 | #include 23 | 24 | kern_return_t 25 | trivfs_S_file_lock (struct trivfs_protid *cred, 26 | mach_port_t reply, mach_msg_type_name_t reply_type, 27 | int flags) 28 | { 29 | return EOPNOTSUPP; 30 | } 31 | -------------------------------------------------------------------------------- /libtrivfs/file-set-size.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | #include 21 | 22 | kern_return_t 23 | trivfs_S_file_set_size (struct trivfs_protid *cred, 24 | mach_port_t reply, mach_msg_type_name_t reply_type, 25 | off_t size) 26 | { 27 | assert_backtrace (!trivfs_support_write); 28 | return EOPNOTSUPP; 29 | } 30 | -------------------------------------------------------------------------------- /libtrivfs/file-sync.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,96,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_sync (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | int wait, int omitmeta) 25 | { 26 | return cred ? file_sync (cred->realnode, wait, omitmeta) : EOPNOTSUPP; 27 | } 28 | -------------------------------------------------------------------------------- /libtrivfs/file-syncfs.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1994,96,2002 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 2, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, write to the Free Software 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 17 | 18 | #include "priv.h" 19 | #include "trivfs_fs_S.h" 20 | 21 | kern_return_t 22 | trivfs_S_file_syncfs (struct trivfs_protid *cred, 23 | mach_port_t reply, mach_msg_type_name_t reply_type, 24 | int wait, 25 | int dochildren) 26 | { 27 | return cred ? file_sync (cred->realnode, wait, 0) : EOPNOTSUPP; 28 | } 29 | -------------------------------------------------------------------------------- /libtrivfs/get-source.c: -------------------------------------------------------------------------------- 1 | /* Default version of trivfs_get_source 2 | 3 | Copyright (C) 2013 Free Software Foundation, Inc. 4 | 5 | Written by Justus Winter <4winter@informatik.uni-hamburg.de> 6 | 7 | This file is part of the GNU Hurd. 8 | 9 | The GNU Hurd is free software; you can redistribute it and/or 10 | modify it under the terms of the GNU General Public License as 11 | published by the Free Software Foundation; either version 2, or (at 12 | your option) any later version. 13 | 14 | The GNU Hurd is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with the GNU Hurd. If not, see . */ 21 | 22 | #include "priv.h" 23 | 24 | error_t __attribute__ ((weak)) 25 | trivfs_get_source (char *source, size_t source_len) 26 | { 27 | return EOPNOTSUPP; 28 | } 29 | -------------------------------------------------------------------------------- /libtrivfs/make-node.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2016-2019 Free Software Foundation, Inc. 3 | Written by Svante Signell 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . 19 | */ 20 | 21 | #include "priv.h" 22 | 23 | struct trivfs_node * 24 | trivfs_make_node (struct trivfs_peropen *po) 25 | { 26 | return NULL; 27 | } 28 | -------------------------------------------------------------------------------- /libtrivfs/make-peropen.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2016-2019 Free Software Foundation, Inc. 3 | Written by Svante Signell 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . 19 | */ 20 | 21 | #include "priv.h" 22 | #include 23 | #include 24 | 25 | struct trivfs_peropen * 26 | trivfs_make_peropen (struct trivfs_protid *cred) 27 | { 28 | return NULL; 29 | } 30 | -------------------------------------------------------------------------------- /libtrivfs/runtime-argp.c: -------------------------------------------------------------------------------- 1 | /* Default definition for trivfs_runtime_argp 2 | 3 | Copyright (C) 1996 Free Software Foundation 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 2, or (at your option) 10 | any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd; see the file COPYING. If not, write to 19 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 20 | 21 | #include "priv.h" 22 | 23 | struct argp *trivfs_runtime_argp = 0; 24 | -------------------------------------------------------------------------------- /login/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 1995 Free Software Foundation 3 | # Written by Michael I. Bushnell. 4 | # 5 | # This file is part of the GNU Hurd. 6 | # 7 | # The GNU Hurd is free software; you can redistribute it and/or 8 | # modify it under the terms of the GNU General Public License as 9 | # published by the Free Software Foundation; either version 2, or (at 10 | # your option) any later version. 11 | # 12 | # The GNU Hurd is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | # General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, write to the Free Software 19 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 | 21 | dir := login 22 | makemode := misc 23 | 24 | SRCS = utmp.c 25 | 26 | include ../Makeconf 27 | -------------------------------------------------------------------------------- /lwip/startup.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2017 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . 19 | */ 20 | 21 | #ifndef LWIP_STARTUP_H 22 | #define LWIP_STARTUP_H 23 | 24 | void arrange_shutdown_notification (void); 25 | 26 | #endif /* LWIP_STARTUP_H */ 27 | -------------------------------------------------------------------------------- /mach-defpager/mig-mutate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014 Free Software Foundation, Inc. 3 | Written by Justus Winter. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with the GNU Hurd. If not, see . */ 19 | 20 | #define MEMORY_OBJECT_INTRAN default_pager_t begin_using_default_pager (mach_port_t) 21 | #define MEMORY_OBJECT_INTRAN_PAYLOAD \ 22 | default_pager_t begin_using_default_pager_payload 23 | 24 | #define MEMORY_OBJECT_IMPORTS import "mig-decls.h"; 25 | #define DEFAULT_PAGER_IMPORTS import "mig-decls.h"; 26 | -------------------------------------------------------------------------------- /mkinstalldirs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # mkinstalldirs --- make directory hierarchy 3 | # Author: Noah Friedman 4 | # Created: 1993-05-16 5 | # Public domain 6 | 7 | # $Id: mkinstalldirs,v 1.1 1996/07/18 04:35:29 mib Exp $ 8 | 9 | errstatus=0 10 | 11 | for file 12 | do 13 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 14 | shift 15 | 16 | pathcomp= 17 | for d 18 | do 19 | pathcomp="$pathcomp$d" 20 | case "$pathcomp" in 21 | -* ) pathcomp=./$pathcomp ;; 22 | esac 23 | 24 | if test ! -d "$pathcomp"; then 25 | echo "mkdir $pathcomp" 1>&2 26 | 27 | mkdir "$pathcomp" || lasterr=$? 28 | 29 | if test ! -d "$pathcomp"; then 30 | errstatus=$lasterr 31 | fi 32 | fi 33 | 34 | pathcomp="$pathcomp/" 35 | done 36 | done 37 | 38 | exit $errstatus 39 | 40 | # mkinstalldirs ends here 41 | -------------------------------------------------------------------------------- /move-if-change: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Like mv $1 $2, but if the files are the same, just delete $1. 3 | # Status is 0 if $2 is changed, 1 otherwise. 4 | if 5 | test -r $2 6 | then 7 | if 8 | cmp -s $1 $2 9 | then 10 | echo $2 is unchanged 11 | rm -f $1 12 | else 13 | mv -f $1 $2 14 | fi 15 | else 16 | mv -f $1 $2 17 | fi 18 | -------------------------------------------------------------------------------- /nfs/consts.c: -------------------------------------------------------------------------------- 1 | /* Definition of constants required by libnetfs 2 | Copyright (C) 1995, 1996 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include "nfs.h" 22 | 23 | /* Maximum number of times to walk through symlinks before returning 24 | ELOOP. See for details. */ 25 | int netfs_maxsymlinks = 8; 26 | -------------------------------------------------------------------------------- /pci-arbiter/TODO: -------------------------------------------------------------------------------- 1 | - pci_get_ndevs should be deprecated, applications shouldn't be relying on this 2 | 3 | - In pci-ops.c - config_block_op: 4 | Update len with remaining allowed size once op() returns EIO 5 | so that we get short reads/writes implemented by leaving it to pciaccess 6 | 7 | BTW we could also support libpci. 8 | -------------------------------------------------------------------------------- /pci-arbiter/ncache.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2017 Free Software Foundation, Inc. 3 | 4 | This file is part of the GNU Hurd. 5 | 6 | The GNU Hurd is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License as 8 | published by the Free Software Foundation; either version 2, or (at 9 | your option) any later version. 10 | 11 | The GNU Hurd is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with the GNU Hurd. If not, see . 18 | */ 19 | 20 | /* Header for node caching functions */ 21 | 22 | #ifndef NCACHE_H 23 | #define NCACHE_H 24 | 25 | #include 26 | 27 | #include "pcifs.h" 28 | 29 | void node_cache (struct node *node); 30 | void node_unlink (struct node *node, struct pcifs *fs); 31 | 32 | #endif /* NCACHE_H */ 33 | -------------------------------------------------------------------------------- /pfinet/config.h: -------------------------------------------------------------------------------- 1 | #define __KERNEL__ 1 2 | #undef __SMP__ 3 | 4 | #define _HURD_ 1 5 | #define ENONET ENETUNREACH 6 | 7 | 8 | #define CONFIG_NET 1 9 | #define CONFIG_INET 1 10 | #define CONFIG_IPV6 1 11 | 12 | #undef CONFIG_IPX 13 | #undef CONFIG_ATALK 14 | #undef CONFIG_PACKET 15 | #undef CONFIG_UNIX 16 | #undef CONFIG_NETLINK 17 | #undef CONFIG_RTNETLINK 18 | 19 | #undef CONFIG_FIREWALL 20 | #undef CONFIG_FILTER 21 | 22 | #undef CONFIG_IP_MULTICAST 23 | #undef CONFIG_IP_ROUTER 24 | #undef CONFIG_IP_ADVANCED_ROUTER 25 | #undef CONFIG_IP_PNP 26 | #undef CONFIG_IP_ALIAS 27 | 28 | #undef CONFIG_NET_IPIP 29 | #undef CONFIG_NET_IPGRE 30 | 31 | #undef CONFIG_SYN_COOKIES 32 | 33 | #undef CONFIG_INET_RARP 34 | 35 | #define CONFIG_SKB_LARGE 1 36 | 37 | #define CONFIG_IP_NOSIOCRT 1 /* How convenient. */ 38 | 39 | #define CONFIG_IPV6_EUI64 1 40 | #undef CONFIG_IPV6_NO_PB 41 | -------------------------------------------------------------------------------- /pfinet/glue-include/asm/atomic.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_ASM_ATOMIC_H 2 | #define _HACK_ASM_ATOMIC_H 3 | 4 | /* We don't need atomicity in the Linux code because we serialize all 5 | entries to it. */ 6 | 7 | typedef struct { int counter; } atomic_t; 8 | 9 | #define ATOMIC_INIT(i) { (i) } 10 | 11 | #define atomic_read(v) ((v)->counter) 12 | #define atomic_set(v,i) (((v)->counter) = (i)) 13 | 14 | static __inline__ void atomic_add(int i, atomic_t *v) { v->counter += i; } 15 | static __inline__ void atomic_sub(int i, atomic_t *v) { v->counter -= i; } 16 | static __inline__ void atomic_inc(atomic_t *v) { ++v->counter; } 17 | static __inline__ void atomic_dec(atomic_t *v) { --v->counter; } 18 | static __inline__ int atomic_dec_and_test(atomic_t *v) 19 | { return --v->counter == 0; } 20 | static __inline__ int atomic_inc_and_test_greater_zero(atomic_t *v) 21 | { return ++v->counter > 0; } 22 | 23 | #define atomic_clear_mask(mask, addr) (*(addr) &= ~(mask)) 24 | #define atomic_set_mask(mask, addr) (*(addr) |= (mask)) 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /pfinet/glue-include/asm/delay.h: -------------------------------------------------------------------------------- 1 | /* stub file. */ 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/asm/errno.h: -------------------------------------------------------------------------------- 1 | /* This is used only by checksum.S; the C code uses . */ 2 | 3 | #define EFAULT 42 /* only used in unreached code */ 4 | -------------------------------------------------------------------------------- /pfinet/glue-include/asm/hardirq.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/asm/init.h: -------------------------------------------------------------------------------- 1 | #define __init 2 | #define __initdata 3 | #define __initfunc(x) x 4 | -------------------------------------------------------------------------------- /pfinet/glue-include/asm/segment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/glue-include/asm/segment.h -------------------------------------------------------------------------------- /pfinet/glue-include/asm/system.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_ASM_SYSTEM_H 2 | #define _HACK_ASM_SYSTEM_H 3 | 4 | /* We don't need atomicity in the Linux code because we serialize all 5 | entries to it. */ 6 | 7 | #include 8 | 9 | #define xchg(ptr, x) \ 10 | ({ \ 11 | __typeof__ (*(ptr)) *_ptr = (ptr), _x = *_ptr; \ 12 | *_ptr = (x); _x; \ 13 | }) 14 | 15 | #define mb() ((void) 0) /* memory barrier */ 16 | #define rmb() mb() 17 | #define wmb() mb() 18 | 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /pfinet/glue-include/asm/types.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/autoconf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/glue-include/linux/autoconf.h -------------------------------------------------------------------------------- /pfinet/glue-include/linux/binfmts.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/config.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/errno.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_ERRNO_H 2 | #define _HACK_ERRNO_H 3 | 4 | #include 5 | #include 6 | 7 | #define ERESTARTSYS EINTR 8 | #define ENOPKG ENOSYS 9 | #define ENOIOCTLCMD ENOTTY 10 | 11 | #undef errno 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/fs.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_FS_H 2 | #define _HACK_FS_H 3 | 4 | #include 5 | 6 | /* Hackery */ 7 | struct inode 8 | { 9 | union 10 | { 11 | int i_garbage; 12 | struct socket socket_i; /* icmp.c actually needs this!! */ 13 | } u; 14 | }; 15 | #define i_uid u.i_garbage 16 | #define i_gid u.i_garbage 17 | #define i_sock u.i_garbage 18 | #define i_ino u.i_garbage 19 | #define i_mode u.i_garbage 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/if.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IFF_VOLATILE (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST|IFF_ALLMULTI) 4 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/limits.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_LIMITS_H 2 | #define _HACK_LIMITS_H 3 | 4 | #include 5 | 6 | #define UIO_MAXIOV 1024 /* probably 1 would do */ 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/major.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/glue-include/linux/major.h -------------------------------------------------------------------------------- /pfinet/glue-include/linux/malloc.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_MALLOC_H_ 2 | #define _HACK_MALLOC_H_ 3 | 4 | #include 5 | 6 | #include 7 | 8 | static inline void *kmalloc (size_t sz, int ignored) { return malloc (sz); } 9 | static inline void kfree (void *ptr) { free (ptr); } 10 | static inline void kfree_s (void *ptr, size_t sz) { free (ptr); } 11 | //#define free(x) kfree(x) /* just don't ask */ 12 | 13 | 14 | typedef struct kmem_cache_s kmem_cache_t; 15 | 16 | #define SLAB_HWCACHE_ALIGN 0 /* flag everybody uses */ 17 | #define SLAB_ATOMIC 0 18 | 19 | 20 | extern kmem_cache_t *kmem_cache_create(const char *, size_t, size_t, unsigned long, 21 | void (*)(void *, kmem_cache_t *, unsigned long), 22 | void (*)(void *, kmem_cache_t *, unsigned long)); 23 | extern void *kmem_cache_alloc(kmem_cache_t *, int); 24 | extern void kmem_cache_free(kmem_cache_t *, void *); 25 | 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/personality.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/poll.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_POLL_H_ 2 | #define _HACK_POLL_H_ 3 | 4 | #include 5 | 6 | #define POLLIN SELECT_READ 7 | #define POLLRDNORM SELECT_READ 8 | #define POLLOUT SELECT_WRITE 9 | #define POLLWRNORM SELECT_WRITE 10 | #define POLLWRBAND SELECT_WRITE 11 | #define POLLPRI SELECT_URG 12 | #define POLLERR 0x1000 13 | #define POLLHUP SELECT_READ 14 | 15 | typedef struct poll_table_struct { } poll_table; 16 | 17 | #include 18 | 19 | static inline void 20 | poll_wait(struct file * filp, struct wait_queue ** wait_address, poll_table *p) 21 | { 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/proc_fs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/glue-include/linux/proc_fs.h -------------------------------------------------------------------------------- /pfinet/glue-include/linux/slab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/glue-include/linux/slab.h -------------------------------------------------------------------------------- /pfinet/glue-include/linux/sockios.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/glue-include/linux/sockios.h -------------------------------------------------------------------------------- /pfinet/glue-include/linux/stat.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/string.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/time.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_TIME_H_ 2 | #define _HACK_TIME_H_ 3 | 4 | #include 5 | #include "mapped-time.h" 6 | 7 | #define do_gettimeofday(tp) maptime_read (mapped_time, (tp)) 8 | #define get_fast_time(tp) maptime_read (mapped_time, (tp)) 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/timer.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_TIMER_H_ 2 | #define _HACK_TIMER_H_ 3 | 4 | #include 5 | 6 | enum tstate 7 | { 8 | TIMER_INACTIVE, 9 | TIMER_STARTING, 10 | TIMER_STARTED, 11 | TIMER_EXPIRED, 12 | TIMER_FUNCTION_RUNNING, 13 | }; 14 | 15 | struct timer_list 16 | { 17 | struct timer_list *next, **prev; /* things like to test "T->prev != NULL" */ 18 | unsigned long expires; 19 | unsigned long data; 20 | void (*function)(unsigned long); 21 | }; 22 | 23 | void add_timer (struct timer_list *); 24 | int del_timer (struct timer_list *); 25 | void mod_timer (struct timer_list *, unsigned long); 26 | void init_timer (struct timer_list *); 27 | 28 | 29 | #define time_after(a,b) ((long)(b) - (long)(a) < 0) 30 | #define time_before(a,b) time_after(b,a) 31 | 32 | #define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0) 33 | #define time_before_eq(a,b) time_after_eq(b,a) 34 | 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/timex.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/glue-include/linux/timex.h -------------------------------------------------------------------------------- /pfinet/glue-include/linux/types.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_TYPES_H 2 | #define _HACK_TYPES_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #define __u8 uint8_t 11 | #define __u16 uint16_t 12 | #define __u32 uint32_t 13 | #define __u64 uint64_t 14 | #define __s8 int8_t 15 | #define __s16 int16_t 16 | #define __s32 int32_t 17 | #define __s64 int64_t 18 | #define u8 uint8_t 19 | #define u16 uint16_t 20 | #define u32 uint32_t 21 | #define u64 uint64_t 22 | #define s8 int8_t 23 | #define s16 int16_t 24 | #define s32 int32_t 25 | #define s64 int64_t 26 | 27 | #include 28 | #include 29 | #include 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/un.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/glue-include/linux/un.h -------------------------------------------------------------------------------- /pfinet/glue-include/linux/version.h: -------------------------------------------------------------------------------- 1 | #define UTS_RELEASE "2.1.12" 2 | #define LINUX_VERSION_CODE KERNEL_VERSION(2,1,12) 3 | #define KERNEL_VERSION(x,y,z) (((x)<<16)+((y)<<8)+(z)) 4 | -------------------------------------------------------------------------------- /pfinet/glue-include/linux/wait.h: -------------------------------------------------------------------------------- 1 | #ifndef _HACK_WAIT_H_ 2 | #define _HACK_WAIT_H_ 3 | 4 | #include 5 | 6 | /* This data structure actually represents one waiter on a wait queue, 7 | and waiters always expect to initialize it with { current, NULL }. 8 | The actual wait queue is a `struct wait_queue *' stored somewhere. 9 | We ignore these structures provided by the waiters entirely. 10 | In the `struct wait_queue *' that is the "head of the wait queue" slot, 11 | we actually store a `pthread_cond_t *' pointing to malloc'd storage. */ 12 | 13 | struct wait_queue 14 | { 15 | struct task_struct *task; /* current */ 16 | struct wait_queue *next; /* NULL */ 17 | }; 18 | 19 | 20 | struct select_table_elt 21 | { 22 | pthread_cond_t *dependent_condition; 23 | struct select_table_elt *next; 24 | }; 25 | 26 | typedef struct select_table_struct 27 | { 28 | pthread_cond_t master_condition; 29 | struct select_table_elt *head; 30 | } select_table; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /pfinet/linux-src/arch/i386/lib/old-checksum.c: -------------------------------------------------------------------------------- 1 | /* 2 | * FIXME: old compatibility stuff, will be removed soon. 3 | */ 4 | 5 | #include 6 | 7 | unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum) 8 | { 9 | int src_err=0, dst_err=0; 10 | 11 | sum = csum_partial_copy_generic ( src, dst, len, sum, &src_err, &dst_err); 12 | 13 | if (src_err || dst_err) 14 | printk("old csum_partial_copy_fromuser(), tell mingo to convert me.\n"); 15 | 16 | return sum; 17 | } 18 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/adfs_fs_i.h: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/include/linux/adfs_fs_i.h 3 | * 4 | * Copyright (C) 1997 Russell King 5 | */ 6 | 7 | #ifndef _ADFS_FS_I 8 | #define _ADFS_FS_I 9 | 10 | /* 11 | * adfs file system inode data in memory 12 | */ 13 | struct adfs_inode_info { 14 | unsigned long file_id; /* id of fragments containing actual data */ 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/baycom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * The Linux BAYCOM driver for the Baycom serial 1200 baud modem 3 | * and the parallel 9600 baud modem 4 | * (C) 1997-1998 by Thomas Sailer, HB9JNX/AE4WA 5 | */ 6 | 7 | #ifndef _BAYCOM_H 8 | #define _BAYCOM_H 9 | 10 | /* -------------------------------------------------------------------- */ 11 | /* 12 | * structs for the IOCTL commands 13 | */ 14 | 15 | struct baycom_debug_data { 16 | unsigned long debug1; 17 | unsigned long debug2; 18 | long debug3; 19 | }; 20 | 21 | struct baycom_ioctl { 22 | int cmd; 23 | union { 24 | struct baycom_debug_data dbg; 25 | } data; 26 | }; 27 | 28 | /* -------------------------------------------------------------------- */ 29 | 30 | /* 31 | * ioctl values change for baycom 32 | */ 33 | #define BAYCOMCTL_GETDEBUG 0x92 34 | 35 | /* -------------------------------------------------------------------- */ 36 | 37 | #endif /* _BAYCOM_H */ 38 | 39 | /* --------------------------------------------------------------------- */ 40 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/bios32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This is only a stub file to make drivers not yet converted to the new 3 | * PCI probing mechanism work. [mj] 4 | */ 5 | 6 | #ifndef BIOS32_H 7 | #define BIOS32_H 8 | 9 | #include 10 | 11 | #warning This driver uses the old PCI interface, please fix it (see Documentation/pci.txt) 12 | 13 | extern inline int __pcibios_read_irq(unsigned char bus, unsigned char dev_fn, unsigned char *to) 14 | { 15 | struct pci_dev *pdev = pci_find_slot(bus, dev_fn); 16 | if (!pdev) { 17 | *to = 0; 18 | return PCIBIOS_DEVICE_NOT_FOUND; 19 | } else { 20 | *to = pdev->irq; 21 | return PCIBIOS_SUCCESSFUL; 22 | } 23 | } 24 | 25 | extern inline int __pcibios_read_config_byte(unsigned char bus, 26 | unsigned char dev_fn, unsigned char where, unsigned char *to) 27 | { 28 | return pcibios_read_config_byte(bus, dev_fn, where, to); 29 | } 30 | 31 | #define pcibios_read_config_byte(b,d,w,p) \ 32 | (((w) == PCI_INTERRUPT_LINE) ? __pcibios_read_irq(b,d,p) : __pcibios_read_config_byte(b,d,w,p)) 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/consolemap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * consolemap.h 3 | * 4 | * Interface between console.c, selection.c and consolemap.c 5 | */ 6 | #define LAT1_MAP 0 7 | #define GRAF_MAP 1 8 | #define IBMPC_MAP 2 9 | #define USER_MAP 3 10 | 11 | struct vc_data; 12 | 13 | extern unsigned char inverse_translate(struct vc_data *conp, int glyph); 14 | extern unsigned short *set_translate(int m,int currcons); 15 | extern int conv_uni_to_pc(struct vc_data *conp, long ucs); 16 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/dirent.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_DIRENT_H 2 | #define _LINUX_DIRENT_H 3 | 4 | struct dirent { 5 | long d_ino; 6 | __kernel_off_t d_off; 7 | unsigned short d_reclen; 8 | char d_name[256]; /* We must not include limits.h! */ 9 | }; 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/efs_dir.h: -------------------------------------------------------------------------------- 1 | /* 2 | * efs_dir.h 3 | * 4 | * Copyright (c) 1999 Al Smith 5 | */ 6 | 7 | #ifndef __EFS_DIR_H__ 8 | #define __EFS_DIR_H__ 9 | 10 | #define EFS_DIRBSIZE_BITS EFS_BLOCKSIZE_BITS 11 | #define EFS_DIRBSIZE (1 << EFS_DIRBSIZE_BITS) 12 | 13 | struct efs_dentry { 14 | unsigned int inode; 15 | unsigned char namelen; 16 | char name[3]; 17 | }; 18 | 19 | #define EFS_DENTSIZE (sizeof(struct efs_dentry) - 3 + 1) 20 | #define EFS_MAXNAMELEN ((1 << (sizeof(char) * 8)) - 1) 21 | 22 | #define EFS_DIRBLK_HEADERSIZE 4 23 | #define EFS_DIRBLK_MAGIC 0xbeef /* moo */ 24 | 25 | struct efs_dir { 26 | unsigned short magic; 27 | unsigned char firstused; 28 | unsigned char slots; 29 | 30 | unsigned char space[EFS_DIRBSIZE - EFS_DIRBLK_HEADERSIZE]; 31 | }; 32 | 33 | #define EFS_MAXENTS \ 34 | ((EFS_DIRBSIZE - EFS_DIRBLK_HEADERSIZE) / \ 35 | (EFS_DENTSIZE + sizeof(char))) 36 | 37 | #define EFS_SLOTAT(dir, slot) EFS_REALOFF((dir)->space[slot]) 38 | 39 | #define EFS_REALOFF(offset) ((offset << 1)) 40 | 41 | #endif /* __EFS_DIR_H__ */ 42 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/epcaconfig.h: -------------------------------------------------------------------------------- 1 | #define NUMCARDS 1 2 | #define NBDEVS 2 3 | 4 | struct board_info static_boards[NUMCARDS]={ 5 | { ENABLED, 0, OFF, 2, (unchar*) 0x320, (unchar*) 0xd0000 }, 6 | }; 7 | 8 | /* DO NOT HAND EDIT THIS FILE! */ 9 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/errqueue.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_ERRQUEUE_H 2 | #define _LINUX_ERRQUEUE_H 1 3 | 4 | #ifdef __KERNEL__ 5 | #include 6 | #endif 7 | 8 | struct sock_extended_err 9 | { 10 | __u32 ee_errno; 11 | __u8 ee_origin; 12 | __u8 ee_type; 13 | __u8 ee_code; 14 | __u8 ee_pad; 15 | __u32 ee_info; 16 | __u32 ee_data; 17 | }; 18 | 19 | #define SO_EE_ORIGIN_NONE 0 20 | #define SO_EE_ORIGIN_LOCAL 1 21 | #define SO_EE_ORIGIN_ICMP 2 22 | #define SO_EE_ORIGIN_ICMP6 3 23 | 24 | #define SO_EE_OFFENDER(ee) ((struct sockaddr*)((ee)+1)) 25 | 26 | #ifdef __KERNEL__ 27 | #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb)) 28 | 29 | struct sock_exterr_skb 30 | { 31 | union { 32 | struct inet_skb_parm h4; 33 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) 34 | struct inet6_skb_parm h6; 35 | #endif 36 | } header; 37 | struct sock_extended_err ee; 38 | u16 addr_offset; 39 | u16 port; 40 | }; 41 | 42 | #endif 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/ext2_fs_i.h: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/include/linux/ext2_fs_i.h 3 | * 4 | * Copyright (C) 1992, 1993, 1994, 1995 5 | * Remy Card (card@masi.ibp.fr) 6 | * Laboratoire MASI - Institut Blaise Pascal 7 | * Universite Pierre et Marie Curie (Paris VI) 8 | * 9 | * from 10 | * 11 | * linux/include/linux/minix_fs_i.h 12 | * 13 | * Copyright (C) 1991, 1992 Linus Torvalds 14 | */ 15 | 16 | #ifndef _LINUX_EXT2_FS_I 17 | #define _LINUX_EXT2_FS_I 18 | 19 | /* 20 | * second extended file system inode data in memory 21 | */ 22 | struct ext2_inode_info { 23 | __u32 i_data[15]; 24 | __u32 i_flags; 25 | __u32 i_faddr; 26 | __u8 i_frag_no; 27 | __u8 i_frag_size; 28 | __u16 i_osync; 29 | __u32 i_file_acl; 30 | __u32 i_dir_acl; 31 | __u32 i_dtime; 32 | __u32 i_version; 33 | __u32 i_block_group; 34 | __u32 i_next_alloc_block; 35 | __u32 i_next_alloc_goal; 36 | __u32 i_prealloc_block; 37 | __u32 i_prealloc_count; 38 | int i_new_inode:1; /* Is a freshly allocated inode */ 39 | }; 40 | 41 | #endif /* _LINUX_EXT2_FS_I */ 42 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/hpfs_fs.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_HPFS_FS_H 2 | #define _LINUX_HPFS_FS_H 3 | 4 | /* HPFS magic number (word 0 of block 16) */ 5 | 6 | #define HPFS_SUPER_MAGIC 0xf995e849 7 | 8 | /* The entry point for a VFS */ 9 | 10 | extern struct super_block *hpfs_read_super (struct super_block *, void *, int); 11 | extern int init_hpfs_fs(void); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/hpfs_fs_i.h: -------------------------------------------------------------------------------- 1 | #ifndef _HPFS_FS_I 2 | #define _HPFS_FS_I 3 | 4 | struct hpfs_inode_info { 5 | ino_t i_parent_dir; /* (directories) gives fnode of parent dir */ 6 | unsigned i_dno; /* (directories) root dnode */ 7 | unsigned i_dpos; /* (directories) temp for readdir */ 8 | unsigned i_dsubdno; /* (directories) temp for readdir */ 9 | unsigned i_file_sec; /* (files) minimalist cache of alloc info */ 10 | unsigned i_disk_sec; /* (files) minimalist cache of alloc info */ 11 | unsigned i_n_secs; /* (files) minimalist cache of alloc info */ 12 | unsigned i_conv : 2; /* (files) crlf->newline hackery */ 13 | }; 14 | 15 | #define i_hpfs_dno u.hpfs_i.i_dno 16 | #define i_hpfs_parent_dir u.hpfs_i.i_parent_dir 17 | #define i_hpfs_n_secs u.hpfs_i.i_n_secs 18 | #define i_hpfs_file_sec u.hpfs_i.i_file_sec 19 | #define i_hpfs_disk_sec u.hpfs_i.i_disk_sec 20 | #define i_hpfs_dpos u.hpfs_i.i_dpos 21 | #define i_hpfs_dsubdno u.hpfs_i.i_dsubdno 22 | #define i_hpfs_conv u.hpfs_i.i_conv 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/if_cablemodem.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_CABLEMODEM_H_ 2 | #define _LINUX_CABLEMODEM_H_ 3 | /* 4 | * Author: Franco Venturi 5 | * Copyright 1998 Franco Venturi 6 | * 7 | * This program is free software; you can redistribute it 8 | * and/or modify it under the terms of the GNU General 9 | * Public License as published by the Free Software 10 | * Foundation; either version 2 of the License, or (at 11 | * your option) any later version. 12 | */ 13 | 14 | /* some useful defines for sb1000.c e cmconfig.c - fv */ 15 | #define SIOCGCMSTATS SIOCDEVPRIVATE+0 /* get cable modem stats */ 16 | #define SIOCGCMFIRMWARE SIOCDEVPRIVATE+1 /* get cm firmware version */ 17 | #define SIOCGCMFREQUENCY SIOCDEVPRIVATE+2 /* get cable modem frequency */ 18 | #define SIOCSCMFREQUENCY SIOCDEVPRIVATE+3 /* set cable modem frequency */ 19 | #define SIOCGCMPIDS SIOCDEVPRIVATE+4 /* get cable modem PIDs */ 20 | #define SIOCSCMPIDS SIOCDEVPRIVATE+5 /* set cable modem PIDs */ 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/if_ltalk.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_LTALK_H 2 | #define __LINUX_LTALK_H 3 | 4 | #define LTALK_HLEN 1 5 | #define LTALK_MTU 600 6 | #define LTALK_ALEN 1 7 | 8 | #ifdef __KERNEL__ 9 | extern void ltalk_setup(struct device *); 10 | #endif 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/if_plip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NET3 PLIP tuning facilities for the new Niibe PLIP. 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * as published by the Free Software Foundation; either version 7 | * 2 of the License, or (at your option) any later version. 8 | * 9 | */ 10 | 11 | #ifndef _LINUX_IF_PLIP_H 12 | #define _LINUX_IF_PLIP_H 13 | 14 | #include 15 | 16 | #define SIOCDEVPLIP SIOCDEVPRIVATE 17 | 18 | struct plipconf 19 | { 20 | unsigned short pcmd; 21 | unsigned long nibble; 22 | unsigned long trigger; 23 | }; 24 | 25 | #define PLIP_GET_TIMEOUT 0x1 26 | #define PLIP_SET_TIMEOUT 0x2 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/if_slip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Swansea University Computer Society NET3 3 | * 4 | * This file declares the constants of special use with the SLIP/CSLIP/ 5 | * KISS TNC driver. 6 | */ 7 | 8 | #ifndef __LINUX_SLIP_H 9 | #define __LINUX_SLIP_H 10 | 11 | #define SL_MODE_SLIP 0 12 | #define SL_MODE_CSLIP 1 13 | #define SL_MODE_KISS 4 14 | 15 | #define SL_OPT_SIXBIT 2 16 | #define SL_OPT_ADAPTIVE 8 17 | 18 | /* 19 | * VSV = ioctl for keepalive & outfill in SLIP driver 20 | */ 21 | 22 | #define SIOCSKEEPALIVE (SIOCDEVPRIVATE) /* Set keepalive timeout in sec */ 23 | #define SIOCGKEEPALIVE (SIOCDEVPRIVATE+1) /* Get keepalive timeout */ 24 | #define SIOCSOUTFILL (SIOCDEVPRIVATE+2) /* Set outfill timeout */ 25 | #define SIOCGOUTFILL (SIOCDEVPRIVATE+3) /* Get outfill timeout */ 26 | #define SIOCSLEASE (SIOCDEVPRIVATE+4) /* Set "leased" line type */ 27 | #define SIOCGLEASE (SIOCDEVPRIVATE+5) /* Get line type */ 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/if_strip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * if_strip.h -- 3 | * 4 | * Definitions for the STRIP interface 5 | * 6 | * Copyright 1996 The Board of Trustees of The Leland Stanford 7 | * Junior University. All Rights Reserved. 8 | * 9 | * Permission to use, copy, modify, and distribute this 10 | * software and its documentation for any purpose and without 11 | * fee is hereby granted, provided that the above copyright 12 | * notice appear in all copies. Stanford University 13 | * makes no representations about the suitability of this 14 | * software for any purpose. It is provided "as is" without 15 | * express or implied warranty. 16 | */ 17 | 18 | #ifndef __LINUX_STRIP_H 19 | #define __LINUX_STRIP_H 20 | 21 | typedef struct { 22 | __u8 c[6]; 23 | } MetricomAddress; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/if_tunnel.h: -------------------------------------------------------------------------------- 1 | #ifndef _IF_TUNNEL_H_ 2 | #define _IF_TUNNEL_H_ 3 | 4 | #define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0) 5 | #define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1) 6 | #define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2) 7 | #define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3) 8 | 9 | #define GRE_CSUM __constant_htons(0x8000) 10 | #define GRE_ROUTING __constant_htons(0x4000) 11 | #define GRE_KEY __constant_htons(0x2000) 12 | #define GRE_SEQ __constant_htons(0x1000) 13 | #define GRE_STRICT __constant_htons(0x0800) 14 | #define GRE_REC __constant_htons(0x0700) 15 | #define GRE_FLAGS __constant_htons(0x00F8) 16 | #define GRE_VERSION __constant_htons(0x0007) 17 | 18 | struct ip_tunnel_parm 19 | { 20 | char name[IFNAMSIZ]; 21 | int link; 22 | __u16 i_flags; 23 | __u16 o_flags; 24 | __u32 i_key; 25 | __u32 o_key; 26 | struct iphdr iph; 27 | }; 28 | 29 | #endif /* _IF_TUNNEL_H_ */ 30 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/in_route.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_IN_ROUTE_H 2 | #define _LINUX_IN_ROUTE_H 3 | 4 | /* IPv4 routing cache flags */ 5 | 6 | #define RTCF_DEAD RTNH_F_DEAD 7 | #define RTCF_ONLINK RTNH_F_ONLINK 8 | 9 | /* Obsolete flag. About to be deleted */ 10 | #define RTCF_NOPMTUDISC RTM_F_NOPMTUDISC 11 | 12 | #define RTCF_NOTIFY 0x00010000 13 | #define RTCF_DIRECTDST 0x00020000 14 | #define RTCF_REDIRECTED 0x00040000 15 | #define RTCF_TPROXY 0x00080000 16 | 17 | #define RTCF_FAST 0x00200000 18 | #define RTCF_MASQ 0x00400000 19 | #define RTCF_SNAT 0x00800000 20 | #define RTCF_DOREDIRECT 0x01000000 21 | #define RTCF_DIRECTSRC 0x04000000 22 | #define RTCF_DNAT 0x08000000 23 | #define RTCF_BROADCAST 0x10000000 24 | #define RTCF_MULTICAST 0x20000000 25 | #define RTCF_REJECT 0x40000000 26 | #define RTCF_LOCAL 0x80000000 27 | 28 | #define RTCF_NAT (RTCF_DNAT|RTCF_SNAT) 29 | 30 | #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK) 31 | 32 | #endif /* _LINUX_IN_ROUTE_H */ 33 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/irda.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joshumax/hurd/5ca0fa556b24463bd52ce5e45dddefcd766ae9c3/pfinet/linux-src/include/linux/irda.h -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/iso_fs_i.h: -------------------------------------------------------------------------------- 1 | #ifndef _ISO_FS_I 2 | #define _ISO_FS_I 3 | 4 | /* 5 | * iso fs inode data in memory 6 | */ 7 | struct iso_inode_info { 8 | unsigned int i_first_extent; 9 | unsigned char i_file_format; 10 | unsigned long i_next_section_ino; 11 | off_t i_section_size; 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/iso_fs_sb.h: -------------------------------------------------------------------------------- 1 | #ifndef _ISOFS_FS_SB 2 | #define _ISOFS_FS_SB 3 | 4 | /* 5 | * iso9660 super-block data in memory 6 | */ 7 | struct isofs_sb_info { 8 | unsigned long s_ninodes; 9 | unsigned long s_nzones; 10 | unsigned long s_firstdatazone; 11 | unsigned long s_log_zone_size; 12 | unsigned long s_max_size; 13 | 14 | unsigned char s_high_sierra; /* A simple flag */ 15 | unsigned char s_mapping; 16 | unsigned char s_rock; 17 | unsigned char s_joliet_level; 18 | unsigned char s_utf8; 19 | unsigned char s_cruft; /* Broken disks with high 20 | byte of length containing 21 | junk */ 22 | unsigned char s_unhide; 23 | unsigned char s_nosuid; 24 | unsigned char s_nodev; 25 | mode_t s_mode; 26 | gid_t s_gid; 27 | uid_t s_uid; 28 | struct nls_table *s_nls_iocharset; /* Native language support table */ 29 | }; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/kbd_diacr.h: -------------------------------------------------------------------------------- 1 | #ifndef _DIACR_H 2 | #define _DIACR_H 3 | #include 4 | 5 | extern struct kbdiacr accent_table[]; 6 | extern unsigned int accent_table_size; 7 | 8 | #endif /* _DIACR_H */ 9 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/kbd_ll.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Interface between the low-level keyboard driver and the keymapper 3 | */ 4 | 5 | #ifndef _KBD_LL_H 6 | #define _KBD_LL_H 7 | 8 | extern struct pt_regs *kbd_pt_regs; 9 | 10 | void handle_scancode(unsigned char scancode, int down); 11 | 12 | #endif /* _KBD_LL_H */ 13 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/kmod.h: -------------------------------------------------------------------------------- 1 | /* 2 | kmod header 3 | */ 4 | 5 | #include 6 | 7 | #ifdef CONFIG_KMOD 8 | extern int request_module(const char * name); 9 | #else 10 | #define request_module(x) do {} while(0) 11 | #endif 12 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/lp_intern.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_LP_INTERN_H_ 2 | #define _LINUX_LP_INTERN_H_ 3 | 4 | /* 5 | * split in two parts by Joerg Dorchain 6 | * usr/include/linux/lp.h modified for Amiga by Michael Rausch 7 | * modified for Atari by Andreas Schwab 8 | * bug fixed by Jes Sorensen 18/8-94: 9 | * It was not possible to compile the kernel only for Atari or Amiga. 10 | * 11 | * linux i386 version c.1991-1992 James Wiegand 12 | * many modifications copyright (C) 1992 Michael K. Johnson 13 | * Interrupt support added 1993 Nigel Gamble 14 | */ 15 | 16 | #include 17 | #include 18 | 19 | int lp_internal_init(void); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/lp_mfc.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_LP_MFC_H_ 2 | #define _LINUX_LP_MFC_H_ 3 | 4 | /* 5 | * created 6.11.95 Joerg Dorchain 6 | */ 7 | 8 | #include 9 | #include 10 | 11 | int lp_mfc_init(void); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/minix_fs_i.h: -------------------------------------------------------------------------------- 1 | #ifndef _MINIX_FS_I 2 | #define _MINIX_FS_I 3 | 4 | /* 5 | * minix fs inode data in memory 6 | */ 7 | struct minix_inode_info { 8 | union { 9 | __u16 i1_data[16]; 10 | __u32 i2_data[16]; 11 | } u; 12 | }; 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/minix_fs_sb.h: -------------------------------------------------------------------------------- 1 | #ifndef _MINIX_FS_SB 2 | #define _MINIX_FS_SB 3 | 4 | /* 5 | * minix super-block data in memory 6 | */ 7 | struct minix_sb_info { 8 | unsigned long s_ninodes; 9 | unsigned long s_nzones; 10 | unsigned long s_imap_blocks; 11 | unsigned long s_zmap_blocks; 12 | unsigned long s_firstdatazone; 13 | unsigned long s_log_zone_size; 14 | unsigned long s_max_size; 15 | int s_dirsize; 16 | int s_namelen; 17 | int s_link_max; 18 | struct buffer_head ** s_imap; 19 | struct buffer_head ** s_zmap; 20 | struct buffer_head * s_sbh; 21 | struct minix_super_block * s_ms; 22 | unsigned short s_mount_state; 23 | unsigned short s_version; 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/mman.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_MMAN_H 2 | #define _LINUX_MMAN_H 3 | 4 | #include 5 | 6 | #define MREMAP_MAYMOVE 1 7 | 8 | #endif /* _LINUX_MMAN_H */ 9 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/modsetver.h: -------------------------------------------------------------------------------- 1 | /* Symbol versioning nastiness. */ 2 | 3 | #define __SYMBOL_VERSION(x) __ver_ ## x 4 | #define __VERSIONED_SYMBOL2(x,v) x ## _R ## v 5 | #define __VERSIONED_SYMBOL1(x,v) __VERSIONED_SYMBOL2(x,v) 6 | #define __VERSIONED_SYMBOL(x) __VERSIONED_SYMBOL1(x,__SYMBOL_VERSION(x)) 7 | 8 | #ifndef _set_ver 9 | #define _set_ver(x) __VERSIONED_SYMBOL(x) 10 | #endif 11 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/mpp.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_MPP_H 2 | #define _LINUX_MPP_H 3 | 4 | /* 5 | * Definitions related to Massively Parallel Processing support. 6 | */ 7 | 8 | /* All mpp implementations must supply these functions */ 9 | 10 | extern void mpp_init(void); 11 | extern void mpp_hw_init(void); 12 | extern void mpp_procfs_init(void); 13 | 14 | extern int mpp_num_cells(void); 15 | extern int mpp_cid(void); 16 | extern int get_mppinfo(char *buffer); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/ncp_fs_i.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ncp_fs_i.h 3 | * 4 | * Copyright (C) 1995 Volker Lendecke 5 | * 6 | */ 7 | 8 | #ifndef _LINUX_NCP_FS_I 9 | #define _LINUX_NCP_FS_I 10 | 11 | #include 12 | 13 | #ifdef __KERNEL__ 14 | 15 | enum ncp_inode_state { 16 | NCP_INODE_VALID = 19, /* Inode currently in use */ 17 | NCP_INODE_LOOKED_UP, /* directly before iget */ 18 | NCP_INODE_CACHED, /* in a path to an inode which is in use */ 19 | NCP_INODE_INVALID 20 | }; 21 | 22 | /* 23 | * ncp fs inode data (in memory only) 24 | */ 25 | struct ncp_inode_info { 26 | enum ncp_inode_state state; 27 | int nused; /* for directories: 28 | number of references in memory */ 29 | struct ncp_inode_info *dir; 30 | struct ncp_inode_info *next, *prev; 31 | struct inode *inode; 32 | struct nw_file_info finfo; 33 | }; 34 | 35 | #endif 36 | #endif 37 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/netbeui.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_NETBEUI_H 2 | #define _LINUX_NETBEUI_H 3 | 4 | #include 5 | 6 | #define NB_NAME_LEN 20 /* Set this properly from the full docs when 7 | I get them */ 8 | 9 | struct sockaddr_netbeui 10 | { 11 | sa_family snb_family; 12 | char snb_name[NB_NAME_LEN]; 13 | char snb_devhint[IFNAMSIZ]; 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/netrom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * These are the public elements of the Linux kernel NET/ROM implementation. 3 | * For kernel AX.25 see the file ax25.h. This file requires ax25.h for the 4 | * definition of the ax25_address structure. 5 | */ 6 | 7 | #ifndef NETROM_KERNEL_H 8 | #define NETROM_KERNEL_H 9 | 10 | #define NETROM_MTU 236 11 | 12 | #define NETROM_T1 1 13 | #define NETROM_T2 2 14 | #define NETROM_N2 3 15 | #define NETROM_T4 6 16 | #define NETROM_IDLE 7 17 | 18 | #define SIOCNRDECOBS (SIOCPROTOPRIVATE+2) 19 | 20 | struct nr_route_struct { 21 | #define NETROM_NEIGH 0 22 | #define NETROM_NODE 1 23 | int type; 24 | ax25_address callsign; 25 | char device[16]; 26 | unsigned int quality; 27 | char mnemonic[7]; 28 | ax25_address neighbour; 29 | unsigned int obs_count; 30 | unsigned int ndigis; 31 | ax25_address digipeaters[AX25_MAX_DIGIS]; 32 | }; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/nfs_fs_sb.h: -------------------------------------------------------------------------------- 1 | #ifndef _NFS_FS_SB 2 | #define _NFS_FS_SB 3 | 4 | #include 5 | #include 6 | 7 | /* 8 | * NFS client parameters stored in the superblock. 9 | */ 10 | struct nfs_server { 11 | struct rpc_clnt * client; /* RPC client handle */ 12 | int flags; /* various flags */ 13 | int rsize; /* read size */ 14 | int wsize; /* write size */ 15 | unsigned int bsize; /* server block size */ 16 | unsigned int acregmin; /* attr cache timeouts */ 17 | unsigned int acregmax; 18 | unsigned int acdirmin; 19 | unsigned int acdirmax; 20 | char * hostname; /* remote hostname */ 21 | }; 22 | 23 | /* 24 | * nfs super-block data in memory 25 | */ 26 | struct nfs_sb_info { 27 | struct nfs_server s_server; 28 | struct nfs_fh s_root; 29 | }; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/ntfs_fs.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_NTFS_FS_H 2 | #define _LINUX_NTFS_FS_H 3 | 4 | int init_ntfs_fs(void); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/nvram.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_NVRAM_H 2 | #define _LINUX_NVRAM_H 3 | 4 | #include 5 | 6 | /* /dev/nvram ioctls */ 7 | #define NVRAM_INIT _IO('p', 0x40) /* initialize NVRAM and set checksum */ 8 | #define NVRAM_SETCKS _IO('p', 0x41) /* recalculate checksum */ 9 | 10 | #ifdef __KERNEL__ 11 | extern unsigned char nvram_read_byte( int i ); 12 | extern void nvram_write_byte( unsigned char c, int i ); 13 | extern int nvram_check_checksum( void ); 14 | extern void nvram_set_checksum( void ); 15 | extern int nvram_init( void ); 16 | #endif 17 | 18 | #endif /* _LINUX_NVRAM_H */ 19 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/phonedev.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_PHONEDEV_H 2 | #define __LINUX_PHONEDEV_H 3 | 4 | #include 5 | #include 6 | 7 | #ifdef __KERNEL__ 8 | 9 | #include 10 | 11 | struct phone_device { 12 | struct phone_device *next; 13 | struct file_operations *f_op; 14 | int (*open) (struct phone_device *, struct file *); 15 | int board; /* Device private index */ 16 | int minor; 17 | }; 18 | 19 | extern int phonedev_init(void); 20 | #define PHONE_MAJOR 100 21 | extern int phone_register_device(struct phone_device *, int unit); 22 | #define PHONE_UNIT_ANY -1 23 | extern void phone_unregister_device(struct phone_device *); 24 | 25 | #endif 26 | #endif 27 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/ppp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Back compatibility for a while. 3 | */ 4 | #include 5 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/prctl.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_PRCTL_H 2 | #define _LINUX_PRCTL_H 3 | 4 | /* Values to pass as first argument to prctl() */ 5 | 6 | #define PR_SET_PDEATHSIG 1 /* Second arg is a signal */ 7 | 8 | 9 | #endif /* _LINUX_PRCTL_H */ 10 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/ptrace.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_PTRACE_H 2 | #define _LINUX_PTRACE_H 3 | /* ptrace.h */ 4 | /* structs and defines to help the user use the ptrace system call. */ 5 | 6 | /* has the defines to get at the registers. */ 7 | 8 | #define PTRACE_TRACEME 0 9 | #define PTRACE_PEEKTEXT 1 10 | #define PTRACE_PEEKDATA 2 11 | #define PTRACE_PEEKUSR 3 12 | #define PTRACE_POKETEXT 4 13 | #define PTRACE_POKEDATA 5 14 | #define PTRACE_POKEUSR 6 15 | #define PTRACE_CONT 7 16 | #define PTRACE_KILL 8 17 | #define PTRACE_SINGLESTEP 9 18 | 19 | #define PTRACE_ATTACH 0x10 20 | #define PTRACE_DETACH 0x11 21 | 22 | #define PTRACE_SYSCALL 24 23 | 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/qnx4_fs_i.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Name : qnx4_fs_i.h 3 | * Author : Richard Frowijn 4 | * Function : qnx4 inode definitions 5 | * Version : 1.0 6 | * Last modified : 25-05-1998 7 | * 8 | * History : 23-03-1998 created 9 | * 10 | */ 11 | #ifndef _QNX4_FS_I 12 | #define _QNX4_FS_I 13 | 14 | #include 15 | 16 | /* 17 | * qnx4 fs inode entry 18 | */ 19 | struct qnx4_inode_info { 20 | char i_reserved[16]; /* 16 */ 21 | off_t i_size; /* 4 */ 22 | _xtnt_t i_first_xtnt; /* 8 */ 23 | long i_xblk; /* 4 */ 24 | time_t i_ftime; /* 4 */ 25 | time_t i_mtime; /* 4 */ 26 | time_t i_atime; /* 4 */ 27 | time_t i_ctime; /* 4 */ 28 | _nxtnt_t i_num_xtnts; /* 2 */ 29 | mode_t i_mode; /* 2 */ 30 | muid_t i_uid; /* 2 */ 31 | mgid_t i_gid; /* 2 */ 32 | nlink_t i_nlink; /* 2 */ 33 | char i_zero[4]; /* 4 */ 34 | _ftype_t i_type; /* 1 */ 35 | unsigned char i_status; /* 1 */ 36 | }; 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/qnx4_fs_sb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Name : qnx4_fs_sb.h 3 | * Author : Richard Frowijn 4 | * Function : qnx4 superblock definitions 5 | * Version : 1.0 6 | * Last modified : 20-05-1998 7 | * 8 | * History : 23-03-1998 created 9 | * 10 | */ 11 | #ifndef _QNX4_FS_SB 12 | #define _QNX4_FS_SB 13 | 14 | #include 15 | 16 | /* 17 | * qnx4 super-block data in memory 18 | */ 19 | 20 | struct qnx4_sb_info { 21 | struct buffer_head *sb_buf; /* superblock buffer */ 22 | struct qnx4_super_block *sb; /* our superblock */ 23 | unsigned int Version; /* may be useful */ 24 | struct qnx4_inode_entry *BitMap; /* useful */ 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/qnxtypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Name : qnxtypes.h 3 | * Author : Richard Frowijn 4 | * Function : standard qnx types 5 | * Version : 1.0 6 | * Last modified : 22-03-1998 7 | * 8 | * History : 22-03-1998 created 9 | * 10 | */ 11 | 12 | #ifndef _QNX4TYPES_H 13 | #define _QNX4TYPES_H 14 | 15 | typedef unsigned short _nxtnt_t; 16 | typedef unsigned char _ftype_t; 17 | 18 | typedef struct { 19 | long xtnt_blk; 20 | long xtnt_size; 21 | } _xtnt_t; 22 | 23 | typedef unsigned short muid_t; 24 | typedef unsigned short mgid_t; 25 | typedef unsigned long qnx_off_t; 26 | typedef unsigned short qnx_nlink_t; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/raid0.h: -------------------------------------------------------------------------------- 1 | #ifndef _RAID0_H 2 | #define _RAID0_H 3 | 4 | struct strip_zone 5 | { 6 | int zone_offset; /* Zone offset in md_dev */ 7 | int dev_offset; /* Zone offset in real dev */ 8 | int size; /* Zone size */ 9 | int nb_dev; /* Number of devices attached to the zone */ 10 | struct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */ 11 | }; 12 | 13 | struct raid0_hash 14 | { 15 | struct strip_zone *zone0, *zone1; 16 | }; 17 | 18 | struct raid0_data 19 | { 20 | struct raid0_hash *hash_table; /* Dynamically allocated */ 21 | struct strip_zone *strip_zone; /* This one too */ 22 | int nr_strip_zones; 23 | struct strip_zone *smallest; 24 | int nr_zones; 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/romfs_fs_i.h: -------------------------------------------------------------------------------- 1 | #ifndef __ROMFS_FS_I 2 | #define __ROMFS_FS_I 3 | 4 | /* inode in-kernel data */ 5 | 6 | struct romfs_inode_info { 7 | unsigned long i_metasize; /* size of non-data area */ 8 | unsigned long i_dataoffset; /* from the start of fs */ 9 | }; 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/romfs_fs_sb.h: -------------------------------------------------------------------------------- 1 | #ifndef __ROMFS_FS_SB 2 | #define __ROMFS_FS_SB 3 | 4 | /* romfs superblock in-core data */ 5 | 6 | struct romfs_sb_info { 7 | unsigned long s_maxsize; 8 | }; 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/smb_fs_i.h: -------------------------------------------------------------------------------- 1 | /* 2 | * smb_fs_i.h 3 | * 4 | * Copyright (C) 1995 by Paal-Kr. Engstad and Volker Lendecke 5 | * Copyright (C) 1997 by Volker Lendecke 6 | * 7 | */ 8 | 9 | #ifndef _LINUX_SMB_FS_I 10 | #define _LINUX_SMB_FS_I 11 | 12 | #ifdef __KERNEL__ 13 | #include 14 | 15 | /* 16 | * smb fs inode data (in memory only) 17 | */ 18 | struct smb_inode_info { 19 | 20 | /* 21 | * file handles are local to a connection. A file is open if 22 | * (open == generation). 23 | */ 24 | unsigned int open; /* open generation */ 25 | __u16 fileid; /* What id to handle a file with? */ 26 | __u16 attr; /* Attribute fields, DOS value */ 27 | 28 | __u16 access; /* Access mode */ 29 | __u16 cache_valid; /* dircache valid? */ 30 | unsigned long oldmtime; /* last time refreshed */ 31 | unsigned long closed; /* timestamp when closed */ 32 | }; 33 | 34 | #endif 35 | #endif 36 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/smb_mount.h: -------------------------------------------------------------------------------- 1 | /* 2 | * smb_mount.h 3 | * 4 | * Copyright (C) 1995, 1996 by Paal-Kr. Engstad and Volker Lendecke 5 | * Copyright (C) 1997 by Volker Lendecke 6 | * 7 | */ 8 | 9 | #ifndef _LINUX_SMB_MOUNT_H 10 | #define _LINUX_SMB_MOUNT_H 11 | 12 | #include 13 | 14 | #define SMB_MOUNT_VERSION 6 15 | 16 | struct smb_mount_data { 17 | int version; 18 | __kernel_uid_t mounted_uid; /* Who may umount() this filesystem? */ 19 | __kernel_uid_t uid; 20 | __kernel_gid_t gid; 21 | __kernel_mode_t file_mode; 22 | __kernel_mode_t dir_mode; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/smp_lock.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_SMPLOCK_H 2 | #define __LINUX_SMPLOCK_H 3 | 4 | #ifndef __SMP__ 5 | 6 | #define lock_kernel() do { } while(0) 7 | #define unlock_kernel() do { } while(0) 8 | #define release_kernel_lock(task, cpu) do { } while(0) 9 | #define reacquire_kernel_lock(task) do { } while(0) 10 | 11 | #else 12 | 13 | #include 14 | 15 | #endif /* __SMP__ */ 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/sound.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Sound core interface functions 3 | */ 4 | 5 | extern int register_sound_special(struct file_operations *fops, int unit); 6 | extern int register_sound_mixer(struct file_operations *fops, int dev); 7 | extern int register_sound_midi(struct file_operations *fops, int dev); 8 | extern int register_sound_dsp(struct file_operations *fops, int dev); 9 | extern int register_sound_synth(struct file_operations *fops, int dev); 10 | 11 | extern void unregister_sound_special(int unit); 12 | extern void unregister_sound_mixer(int unit); 13 | extern void unregister_sound_midi(int unit); 14 | extern void unregister_sound_dsp(int unit); 15 | extern void unregister_sound_synth(int unit); 16 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/stddef.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_STDDEF_H 2 | #define _LINUX_STDDEF_H 3 | 4 | #undef NULL 5 | #if defined(__cplusplus) 6 | #define NULL 0 7 | #else 8 | #define NULL ((void *)0) 9 | #endif 10 | 11 | #undef offsetof 12 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/swapctl.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_SWAPCTL_H 2 | #define _LINUX_SWAPCTL_H 3 | 4 | #include 5 | #include 6 | 7 | typedef struct buffer_mem_v1 8 | { 9 | unsigned int min_percent; 10 | unsigned int borrow_percent; 11 | unsigned int max_percent; 12 | } buffer_mem_v1; 13 | typedef buffer_mem_v1 buffer_mem_t; 14 | extern buffer_mem_t buffer_mem; 15 | extern buffer_mem_t page_cache; 16 | 17 | typedef struct freepages_v1 18 | { 19 | unsigned int min; 20 | unsigned int low; 21 | unsigned int high; 22 | } freepages_v1; 23 | typedef freepages_v1 freepages_t; 24 | extern freepages_t freepages; 25 | 26 | typedef struct pager_daemon_v1 27 | { 28 | unsigned int tries_base; 29 | unsigned int tries_min; 30 | unsigned int swap_cluster; 31 | } pager_daemon_v1; 32 | typedef pager_daemon_v1 pager_daemon_t; 33 | extern pager_daemon_t pager_daemon; 34 | 35 | #endif /* _LINUX_SWAPCTL_H */ 36 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/sys.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_SYS_H 2 | #define _LINUX_SYS_H 3 | 4 | /* 5 | * system call entry points ... but not all are defined 6 | */ 7 | #define NR_syscalls 256 8 | 9 | /* 10 | * These are system calls that will be removed at some time 11 | * due to newer versions existing.. 12 | * (please be careful - ibcs2 may need some of these). 13 | */ 14 | #ifdef notdef 15 | #define _sys_waitpid _sys_old_syscall /* _sys_wait4 */ 16 | #define _sys_olduname _sys_old_syscall /* _sys_newuname */ 17 | #define _sys_uname _sys_old_syscall /* _sys_newuname */ 18 | #define _sys_stat _sys_old_syscall /* _sys_newstat */ 19 | #define _sys_fstat _sys_old_syscall /* _sys_newfstat */ 20 | #define _sys_lstat _sys_old_syscall /* _sys_newlstat */ 21 | #define _sys_signal _sys_old_syscall /* _sys_sigaction */ 22 | #define _sys_sgetmask _sys_old_syscall /* _sys_sigprocmask */ 23 | #define _sys_ssetmask _sys_old_syscall /* _sys_sigprocmask */ 24 | #endif 25 | 26 | /* 27 | * These are system calls that haven't been implemented yet 28 | * but have an entry in the table for future expansion.. 29 | */ 30 | #endif 31 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/sysrq.h: -------------------------------------------------------------------------------- 1 | /* -*- linux-c -*- 2 | * 3 | * $Id: sysrq.h,v 1.3 1997/07/17 11:54:33 mj Exp $ 4 | * 5 | * Linux Magic System Request Key Hacks 6 | * 7 | * (c) 1997 Martin Mares 8 | */ 9 | 10 | #include 11 | 12 | struct pt_regs; 13 | struct kbd_struct; 14 | struct tty_struct; 15 | 16 | /* Generic SysRq interface -- you may call it from any device driver, supplying 17 | * ASCII code of the key, pointer to registers and kbd/tty structs (if they 18 | * are available -- else NULL's). 19 | */ 20 | 21 | void handle_sysrq(int, struct pt_regs *, struct kbd_struct *, struct tty_struct *); 22 | 23 | /* Deferred actions */ 24 | 25 | extern int emergency_sync_scheduled; 26 | 27 | #define EMERG_SYNC 1 28 | #define EMERG_REMOUNT 2 29 | 30 | void do_emergency_sync(void); 31 | 32 | #ifdef CONFIG_MAGIC_SYSRQ 33 | #define CHECK_EMERGENCY_SYNC \ 34 | if (emergency_sync_scheduled) \ 35 | do_emergency_sync(); 36 | #else 37 | #define CHECK_EMERGENCY_SYNC 38 | #endif 39 | 40 | extern int sysrq_enabled; 41 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/sysv_fs_i.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYSV_FS_I 2 | #define _SYSV_FS_I 3 | 4 | /* 5 | * SystemV/Coherent FS inode data in memory 6 | */ 7 | struct sysv_inode_info { 8 | u32 i_data[10+1+1+1]; /* zone numbers: max. 10 data blocks, 9 | * then 1 indirection block, 10 | * then 1 double indirection block, 11 | * then 1 triple indirection block. 12 | */ 13 | }; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/tasks.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_TASKS_H 2 | #define _LINUX_TASKS_H 3 | 4 | /* 5 | * This is the maximum nr of tasks - change it if you need to 6 | */ 7 | 8 | #ifdef __SMP__ 9 | #define NR_CPUS 32 /* Max processors that can be running in SMP */ 10 | #else 11 | #define NR_CPUS 1 12 | #endif 13 | 14 | #define NR_TASKS 512 /* On x86 Max 4092, or 4090 w/APM configured. */ 15 | 16 | #define MAX_TASKS_PER_USER (NR_TASKS/2) 17 | #define MIN_TASKS_LEFT_FOR_ROOT 4 18 | 19 | 20 | /* 21 | * This controls the maximum pid allocated to a process 22 | */ 23 | #define PID_MAX 0x8000 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/times.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_TIMES_H 2 | #define _LINUX_TIMES_H 3 | 4 | struct tms { 5 | clock_t tms_utime; 6 | clock_t tms_stime; 7 | clock_t tms_cutime; 8 | clock_t tms_cstime; 9 | }; 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/tty_flip.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_TTY_FLIP_H 2 | #define _LINUX_TTY_FLIP_H 3 | 4 | #ifdef INCLUDE_INLINE_FUNCS 5 | #define _INLINE_ extern 6 | #else 7 | #define _INLINE_ extern __inline__ 8 | #endif 9 | 10 | _INLINE_ void tty_insert_flip_char(struct tty_struct *tty, 11 | unsigned char ch, char flag) 12 | { 13 | if (tty->flip.count < TTY_FLIPBUF_SIZE) { 14 | tty->flip.count++; 15 | *tty->flip.flag_buf_ptr++ = flag; 16 | *tty->flip.char_buf_ptr++ = ch; 17 | } 18 | } 19 | 20 | _INLINE_ void tty_schedule_flip(struct tty_struct *tty) 21 | { 22 | queue_task(&tty->flip.tqueue, &tq_timer); 23 | } 24 | 25 | #undef _INLINE_ 26 | 27 | 28 | #endif /* _LINUX_TTY_FLIP_H */ 29 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/udp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * INET An implementation of the TCP/IP protocol suite for the LINUX 3 | * operating system. INET is implemented using the BSD Socket 4 | * interface as the means of communication with the user level. 5 | * 6 | * Definitions for the UDP protocol. 7 | * 8 | * Version: @(#)udp.h 1.0.2 04/28/93 9 | * 10 | * Author: Fred N. van Kempen, 11 | * 12 | * This program is free software; you can redistribute it and/or 13 | * modify it under the terms of the GNU General Public License 14 | * as published by the Free Software Foundation; either version 15 | * 2 of the License, or (at your option) any later version. 16 | */ 17 | #ifndef _LINUX_UDP_H 18 | #define _LINUX_UDP_H 19 | 20 | 21 | struct udphdr { 22 | __u16 source; 23 | __u16 dest; 24 | __u16 len; 25 | __u16 check; 26 | }; 27 | 28 | 29 | #endif /* _LINUX_UDP_H */ 30 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/ufs_fs_i.h: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/include/linux/ufs_fs_i.h 3 | * 4 | * Copyright (C) 1996 5 | * Adrian Rodriguez (adrian@franklins-tower.rutgers.edu) 6 | * Laboratory for Computer Science Research Computing Facility 7 | * Rutgers, The State University of New Jersey 8 | * 9 | * NeXTstep support added on February 5th 1998 by 10 | * Niels Kristian Bech Jensen . 11 | */ 12 | 13 | #ifndef _LINUX_UFS_FS_I_H 14 | #define _LINUX_UFS_FS_I_H 15 | 16 | struct ufs_inode_info { 17 | union { 18 | __u32 i_data[15]; 19 | __u8 i_symlink[4*15]; 20 | } i_u1; 21 | __u64 i_size; 22 | __u32 i_flags; 23 | __u32 i_gen; 24 | __u32 i_shadow; 25 | __u32 i_uid; 26 | __u32 i_gid; 27 | __u32 i_oeftflag; 28 | __u16 i_osync; 29 | __u32 i_lastfrag; 30 | }; 31 | 32 | #endif /* _LINUX_UFS_FS_I_H */ 33 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/unistd.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_UNISTD_H_ 2 | #define _LINUX_UNISTD_H_ 3 | 4 | extern int errno; 5 | 6 | /* 7 | * Include machine specific syscallX macros 8 | */ 9 | #include 10 | 11 | #endif /* _LINUX_UNISTD_H_ */ 12 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/user.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/utime.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_UTIME_H 2 | #define _LINUX_UTIME_H 3 | 4 | struct utimbuf { 5 | time_t actime; 6 | time_t modtime; 7 | }; 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/uts.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_UTS_H 2 | #define _LINUX_UTS_H 3 | 4 | /* 5 | * Defines for what uname() should return 6 | */ 7 | #ifndef UTS_SYSNAME 8 | #define UTS_SYSNAME "Linux" 9 | #endif 10 | 11 | #ifndef UTS_MACHINE 12 | #define UTS_MACHINE "unknown" 13 | #endif 14 | 15 | #ifndef UTS_NODENAME 16 | #define UTS_NODENAME "(none)" /* set by sethostname() */ 17 | #endif 18 | 19 | #ifndef UTS_DOMAINNAME 20 | #define UTS_DOMAINNAME "(none)" /* set by setdomainname() */ 21 | #endif 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/utsname.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_UTSNAME_H 2 | #define _LINUX_UTSNAME_H 3 | 4 | #define __OLD_UTS_LEN 8 5 | 6 | struct oldold_utsname { 7 | char sysname[9]; 8 | char nodename[9]; 9 | char release[9]; 10 | char version[9]; 11 | char machine[9]; 12 | }; 13 | 14 | #define __NEW_UTS_LEN 64 15 | 16 | struct old_utsname { 17 | char sysname[65]; 18 | char nodename[65]; 19 | char release[65]; 20 | char version[65]; 21 | char machine[65]; 22 | }; 23 | 24 | struct new_utsname { 25 | char sysname[65]; 26 | char nodename[65]; 27 | char release[65]; 28 | char version[65]; 29 | char machine[65]; 30 | char domainname[65]; 31 | }; 32 | 33 | extern struct new_utsname system_utsname; 34 | 35 | extern struct semaphore uts_sem; 36 | #endif 37 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/vfs.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_VFS_H 2 | #define _LINUX_VFS_H 3 | 4 | #include 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/video_encoder.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINUX_VIDEO_ENCODER_H 2 | #define _LINUX_VIDEO_ENCODER_H 3 | 4 | struct video_encoder_capability { /* this name is too long */ 5 | __u32 flags; 6 | #define VIDEO_ENCODER_PAL 1 /* can encode PAL signal */ 7 | #define VIDEO_ENCODER_NTSC 2 /* can encode NTSC */ 8 | #define VIDEO_ENCODER_SECAM 4 /* can encode SECAM */ 9 | #define VIDEO_ENCODER_CCIR 16 /* CCIR-601 pixel rate (720 pixels per line) instead of square pixel rate */ 10 | int inputs; /* number of inputs */ 11 | int outputs; /* number of outputs */ 12 | }; 13 | 14 | #define ENCODER_GET_CAPABILITIES _IOR('e', 1, struct video_encoder_capability) 15 | #define ENCODER_SET_NORM _IOW('e', 2, int) 16 | #define ENCODER_SET_INPUT _IOW('e', 3, int) /* 0 <= input < #inputs */ 17 | #define ENCODER_SET_OUTPUT _IOW('e', 4, int) /* 0 <= output < #outputs */ 18 | #define ENCODER_ENABLE_OUTPUT _IOW('e', 5, int) /* boolean output enable control */ 19 | 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/linux/vmalloc.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_VMALLOC_H 2 | #define __LINUX_VMALLOC_H 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | struct vm_struct { 10 | unsigned long flags; 11 | void * addr; 12 | unsigned long size; 13 | struct vm_struct * next; 14 | }; 15 | 16 | struct vm_struct * get_vm_area(unsigned long size); 17 | void vfree(void * addr); 18 | void * vmalloc(unsigned long size); 19 | long vread(char *buf, char *addr, unsigned long count); 20 | void vmfree_area_pages(unsigned long address, unsigned long size); 21 | int vmalloc_area_pages(unsigned long address, unsigned long size); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/af_unix.h: -------------------------------------------------------------------------------- 1 | #ifndef __LINUX_NET_AFUNIX_H 2 | #define __LINUX_NET_AFUNIX_H 3 | extern void unix_proto_init(struct net_proto *pro); 4 | extern struct proto_ops unix_proto_ops; 5 | extern void unix_inflight(struct file *fp); 6 | extern void unix_notinflight(struct file *fp); 7 | typedef struct sock unix_socket; 8 | extern void unix_gc(void); 9 | 10 | #define UNIX_HASH_SIZE 16 11 | 12 | extern unix_socket *unix_socket_table[UNIX_HASH_SIZE+1]; 13 | 14 | #define forall_unix_sockets(i, s) for (i=0; i<=UNIX_HASH_SIZE; i++) \ 15 | for (s=unix_socket_table[i]; s; s=s->next) 16 | 17 | struct unix_address 18 | { 19 | atomic_t refcnt; 20 | int len; 21 | unsigned hash; 22 | struct sockaddr_un name[0]; 23 | }; 24 | 25 | struct unix_skb_parms 26 | { 27 | struct ucred creds; /* Skb credentials */ 28 | struct scm_fp_list *fp; /* Passed files */ 29 | unsigned attr; /* Special attributes */ 30 | }; 31 | 32 | #define UNIXCB(skb) (*(struct unix_skb_parms*)&((skb)->cb)) 33 | #define UNIXCREDS(skb) (&UNIXCB((skb)).creds) 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/arp.h: -------------------------------------------------------------------------------- 1 | /* linux/net/inet/arp.h */ 2 | #ifndef _ARP_H 3 | #define _ARP_H 4 | 5 | #include 6 | #include 7 | 8 | extern struct neigh_table arp_tbl; 9 | 10 | extern void arp_init(void); 11 | extern int arp_rcv(struct sk_buff *skb, struct device *dev, 12 | struct packet_type *pt); 13 | extern int arp_find(unsigned char *haddr, struct sk_buff *skb); 14 | extern int arp_ioctl(unsigned int cmd, void *arg); 15 | extern void arp_send(int type, int ptype, u32 dest_ip, 16 | struct device *dev, u32 src_ip, 17 | unsigned char *dest_hw, unsigned char *src_hw, unsigned char *th); 18 | extern int arp_bind_neighbour(struct dst_entry *dst); 19 | extern int arp_mc_map(u32 addr, u8 *haddr, struct device *dev, int dir); 20 | extern void arp_ifdown(struct device *dev); 21 | 22 | extern struct neigh_ops arp_broken_ops; 23 | 24 | #endif /* _ARP_H */ 25 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/atalkcall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void atalk_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/ax25call.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void ax25_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/datalink.h: -------------------------------------------------------------------------------- 1 | #ifndef _NET_INET_DATALINK_H_ 2 | #define _NET_INET_DATALINK_H_ 3 | 4 | struct datalink_proto { 5 | unsigned short type_len; 6 | unsigned char type[8]; 7 | const char *string_name; 8 | unsigned short header_length; 9 | int (*rcvfunc)(struct sk_buff *, struct device *, 10 | struct packet_type *); 11 | void (*datalink_header)(struct datalink_proto *, struct sk_buff *, 12 | unsigned char *); 13 | struct datalink_proto *next; 14 | }; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/ip6_fw.h: -------------------------------------------------------------------------------- 1 | #ifndef __NET_IP6_FW_H 2 | #define __NET_IP6_FW_H 3 | 4 | #define IP6_FW_LISTHEAD 0x1000 5 | #define IP6_FW_ACCEPT 0x0001 6 | #define IP6_FW_REJECT 0x0002 7 | 8 | #define IP6_FW_DEBUG 2 9 | 10 | #define IP6_FW_MSG_ADD 1 11 | #define IP6_FW_MSG_DEL 2 12 | #define IP6_FW_MSG_REPORT 3 13 | 14 | 15 | /* 16 | * Fast "hack" user interface 17 | */ 18 | struct ip6_fw_msg { 19 | struct in6_addr dst; 20 | struct in6_addr src; 21 | int dst_len; 22 | int src_len; 23 | int action; 24 | int policy; 25 | int proto; 26 | union { 27 | struct { 28 | __u16 sport; 29 | __u16 dport; 30 | } transp; 31 | 32 | unsigned long data; 33 | 34 | int icmp_type; 35 | } u; 36 | 37 | int msg_len; 38 | }; 39 | 40 | #ifdef __KERNEL__ 41 | 42 | #include 43 | 44 | struct ip6_fw_rule { 45 | struct flow_rule flowr; 46 | struct ip6_fw_rule *next; 47 | struct ip6_fw_rule *prev; 48 | struct flowi info; 49 | unsigned long policy; 50 | }; 51 | 52 | #endif 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/ipconfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id: ipconfig.h,v 1.3 1999/01/04 20:13:29 davem Exp $ 3 | * 4 | * Copyright (C) 1997 Martin Mares 5 | * 6 | * Automatic IP Layer Configuration 7 | */ 8 | 9 | extern __u32 root_server_addr; 10 | extern u8 root_server_path[]; 11 | extern u32 ic_myaddr; 12 | extern u32 ic_servaddr; 13 | extern u32 ic_gateway; 14 | extern u32 ic_netmask; 15 | extern int ic_enable; 16 | extern int ic_host_name_set; 17 | extern int ic_set_manually; 18 | extern int ic_proto_enabled; 19 | 20 | #define IC_BOOTP 1 21 | #define IC_RARP 2 22 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/ipip.h: -------------------------------------------------------------------------------- 1 | #ifndef __NET_IPIP_H 2 | #define __NET_IPIP_H 1 3 | 4 | #include 5 | 6 | /* Keep error state on tunnel for 30 sec */ 7 | #define IPTUNNEL_ERR_TIMEO (30*HZ) 8 | 9 | struct ip_tunnel 10 | { 11 | struct ip_tunnel *next; 12 | struct device *dev; 13 | struct net_device_stats stat; 14 | 15 | int recursion; /* Depth of hard_start_xmit recursion */ 16 | int err_count; /* Number of arrived ICMP errors */ 17 | unsigned long err_time; /* Time when the last ICMP error arrived */ 18 | 19 | /* These four fields used only by GRE */ 20 | __u32 i_seqno; /* The last seen seqno */ 21 | __u32 o_seqno; /* The last output seqno */ 22 | int hlen; /* Precalculated GRE header length */ 23 | int mlink; 24 | 25 | struct ip_tunnel_parm parms; 26 | }; 27 | 28 | extern int ipip_init(void); 29 | extern int ipgre_init(void); 30 | extern int sit_init(void); 31 | extern void sit_cleanup(void); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/ipxcall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void ipx_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/lapbcall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void lapb_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/llc_name.h: -------------------------------------------------------------------------------- 1 | char *frame_names[] = 2 | {"I_CMD","RR_CMD","RNR_CMD","REJ_CMD","DISC_CMD", 3 | "SABME_CMD","I_RSP","RR_RSP","RNR_RSP","REJ_RSP", 4 | "UA_RSP","DM_RSP","FRMR_RSP","BAD_FRAME","UI_CMD", 5 | "XID_CMD","TEST_CMD","XID_RSP","TEST_RSP" 6 | }; 7 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/llc_state.h: -------------------------------------------------------------------------------- 1 | char *state_names[] = { 2 | "ADM","CONN","RESET_WAIT","RESET_CHECK","SETUP", 3 | "RESET","D_CONN","ERROR","NORMAL" 4 | }; 5 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/llccall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void llc_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/netbeuicall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void netbeui_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/nrcall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void nr_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/p8022.h: -------------------------------------------------------------------------------- 1 | #ifndef _NET_P8022_H 2 | #define _NET_P8022_H 3 | 4 | extern struct datalink_proto *register_8022_client(unsigned char type, int (*rcvfunc)(struct sk_buff *, struct device *, struct packet_type *)); 5 | extern void unregister_8022_client(unsigned char type); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/p8022call.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of Space.c simpler */ 2 | extern void p8022_proto_init(struct net_proto *); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/psnap.h: -------------------------------------------------------------------------------- 1 | #ifndef _NET_PSNAP_H 2 | #define _NET_PSNAP_H 3 | 4 | extern struct datalink_proto *register_snap_client(unsigned char *desc, int (*rcvfunc)(struct sk_buff *, struct device *, struct packet_type *)); 5 | extern void unregister_snap_client(unsigned char *desc); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/psnapcall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of Space.c simpler */ 2 | extern void snap_proto_init(struct net_proto *); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/rarp.h: -------------------------------------------------------------------------------- 1 | /* linux/net/inet/rarp.h */ 2 | #ifndef _RARP_H 3 | #define _RARP_H 4 | 5 | extern int rarp_ioctl(unsigned int cmd, void *arg); 6 | extern int rarp_get_info(char *buffer, 7 | char **start, 8 | off_t offset, 9 | int length, 10 | int dummy); 11 | #endif /* _RARP_H */ 12 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/rawv6.h: -------------------------------------------------------------------------------- 1 | #ifndef _NET_RAWV6_H 2 | #define _NET_RAWV6_H 3 | 4 | #ifdef __KERNEL__ 5 | 6 | #define RAWV6_HTABLE_SIZE MAX_INET_PROTOS 7 | extern struct sock *raw_v6_htable[RAWV6_HTABLE_SIZE]; 8 | 9 | 10 | extern struct sock *raw_v6_lookup(struct sock *sk, unsigned short num, 11 | struct in6_addr *loc_addr, struct in6_addr *rmt_addr); 12 | 13 | extern int rawv6_rcv(struct sock *sk, 14 | struct sk_buff *skb, 15 | unsigned long len); 16 | 17 | 18 | extern void rawv6_err(struct sock *sk, 19 | struct sk_buff *skb, 20 | struct ipv6hdr *hdr, 21 | struct inet6_skb_parm *opt, 22 | int type, int code, 23 | unsigned char *buff, u32 info); 24 | 25 | #endif 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/rosecall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void rose_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/slhc.h: -------------------------------------------------------------------------------- 1 | #ifndef __NET_SLHC_H 2 | #define __NET_SLHC_H 3 | 4 | extern void slhc_install(void); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/spxcall.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void spx_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/transp_v6.h: -------------------------------------------------------------------------------- 1 | #ifndef _TRANSP_V6_H 2 | #define _TRANSP_V6_H 3 | 4 | #include 5 | 6 | /* 7 | * IPv6 transport protocols 8 | */ 9 | 10 | #ifdef __KERNEL__ 11 | 12 | extern struct proto rawv6_prot; 13 | extern struct proto udpv6_prot; 14 | extern struct proto tcpv6_prot; 15 | 16 | struct flowi; 17 | 18 | extern void rawv6_init(void); 19 | extern void udpv6_init(void); 20 | extern void tcpv6_init(void); 21 | 22 | extern int udpv6_connect(struct sock *sk, 23 | struct sockaddr *uaddr, 24 | int addr_len); 25 | 26 | extern int datagram_recv_ctl(struct sock *sk, 27 | struct msghdr *msg, 28 | struct sk_buff *skb); 29 | 30 | extern int datagram_send_ctl(struct msghdr *msg, 31 | struct flowi *fl, 32 | struct ipv6_txoptions *opt, 33 | int *hlimit); 34 | 35 | #define LOOPBACK4_IPV6 __constant_htonl(0x7f000006) 36 | 37 | /* 38 | * address family specific functions 39 | */ 40 | extern struct tcp_func ipv4_specific; 41 | 42 | extern int inet6_destroy_sock(struct sock *sk); 43 | 44 | #endif 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /pfinet/linux-src/include/net/x25call.h: -------------------------------------------------------------------------------- 1 | /* Separate to keep compilation of protocols.c simpler */ 2 | extern void x25_proto_init(struct net_proto *pro); 3 | -------------------------------------------------------------------------------- /pfinet/linux-src/net/core/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for the Linux networking core. 3 | # 4 | # Note! Dependencies are done automagically by 'make dep', which also 5 | # removes any old dependencies. DON'T put your own dependencies here 6 | # unless it's something special (ie not a .c file). 7 | # 8 | # Note 2! The CFLAGS definition is now in the main makefile... 9 | 10 | O_TARGET := core.o 11 | 12 | O_OBJS := sock.o skbuff.o iovec.o datagram.o scm.o 13 | 14 | ifeq ($(CONFIG_SYSCTL),y) 15 | ifeq ($(CONFIG_NET),y) 16 | O_OBJS += sysctl_net_core.o 17 | endif 18 | endif 19 | 20 | ifdef CONFIG_FILTER 21 | O_OBJS += filter.o 22 | endif 23 | 24 | ifdef CONFIG_NET 25 | 26 | O_OBJS += dev.o dev_mcast.o dst.o neighbour.o rtnetlink.o utils.o 27 | 28 | ifdef CONFIG_FIREWALL 29 | OX_OBJS += firewall.o 30 | endif 31 | 32 | endif 33 | 34 | ifdef CONFIG_NET_PROFILE 35 | OX_OBJS += profile.o 36 | endif 37 | 38 | include $(TOPDIR)/Rules.make 39 | 40 | tar: 41 | tar -cvf /dev/f1 . 42 | -------------------------------------------------------------------------------- /pfinet/linux-src/net/ethernet/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for the Linux Ethernet layer. 3 | # 4 | # Note! Dependencies are done automagically by 'make dep', which also 5 | # removes any old dependencies. DON'T put your own dependencies here 6 | # unless it's something special (ie not a .c file). 7 | # 8 | # Note 2! The CFLAGS definition is now in the main makefile... 9 | 10 | O_TARGET := ethernet.o 11 | 12 | OBJS := eth.o 13 | 14 | ifeq ($(CONFIG_SYSCTL),y) 15 | OBJS += sysctl_net_ether.o 16 | endif 17 | 18 | ifdef CONFIG_IPX 19 | OBJ2 := pe2.o 20 | endif 21 | 22 | ifdef CONFIG_ATALK 23 | OBJ2 := pe2.o 24 | endif 25 | 26 | ifdef CONFIG_NET 27 | O_OBJS := $(OBJS) $(OBJ2) 28 | endif 29 | 30 | include $(TOPDIR)/Rules.make 31 | 32 | tar: 33 | tar -cvf /dev/f1 . 34 | -------------------------------------------------------------------------------- /pfinet/linux-src/net/ethernet/pe2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | static void 8 | pEII_datalink_header(struct datalink_proto *dl, 9 | struct sk_buff *skb, unsigned char *dest_node) 10 | { 11 | struct device *dev = skb->dev; 12 | 13 | skb->protocol = htons (ETH_P_IPX); 14 | if(dev->hard_header) 15 | dev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len); 16 | } 17 | 18 | struct datalink_proto * 19 | make_EII_client(void) 20 | { 21 | struct datalink_proto *proto; 22 | 23 | proto = (struct datalink_proto *) kmalloc(sizeof(*proto), GFP_ATOMIC); 24 | if (proto != NULL) { 25 | proto->type_len = 0; 26 | proto->header_length = 0; 27 | proto->datalink_header = pEII_datalink_header; 28 | proto->string_name = "EtherII"; 29 | } 30 | 31 | return proto; 32 | } 33 | 34 | void destroy_EII_client(struct datalink_proto *dl) 35 | { 36 | if (dl) 37 | kfree_s(dl, sizeof(struct datalink_proto)); 38 | } 39 | -------------------------------------------------------------------------------- /pfinet/linux-src/net/ethernet/sysctl_net_ether.c: -------------------------------------------------------------------------------- 1 | /* -*- linux-c -*- 2 | * sysctl_net_ether.c: sysctl interface to net Ethernet subsystem. 3 | * 4 | * Begun April 1, 1996, Mike Shaver. 5 | * Added /proc/sys/net/ether directory entry (empty =) ). [MS] 6 | */ 7 | 8 | #include 9 | #include 10 | 11 | ctl_table ether_table[] = { 12 | {0} 13 | }; 14 | -------------------------------------------------------------------------------- /pfinet/mapped-time.h: -------------------------------------------------------------------------------- 1 | #ifndef _MAPPED_TIME_H_ 2 | #define _MAPPED_TIME_H_ 3 | 4 | #include 5 | 6 | #define HZ 100 7 | 8 | extern volatile struct mapped_time_value *mapped_time; 9 | extern long long root_jiffies; 10 | 11 | static inline int 12 | read_mapped_secs (void) 13 | { 14 | return mapped_time->seconds; 15 | } 16 | 17 | static inline int 18 | fetch_jiffies (void) 19 | { 20 | struct timeval tv; 21 | long long j; 22 | 23 | maptime_read (mapped_time, &tv); 24 | 25 | j = (long long) tv.tv_sec * HZ + ((long long) tv.tv_usec * HZ) / 1000000; 26 | return j - root_jiffies; 27 | } 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /pfinet/time.c: -------------------------------------------------------------------------------- 1 | /* Time management functions 2 | Copyright (C) 1995 Free Software Foundation, Inc. 3 | Written by Michael I. Bushnell, p/BSG. 4 | 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #include 22 | 23 | void 24 | do_gettimeofday (struct timeval *tp) 25 | { 26 | gettimeofday (tp, 0); 27 | } 28 | -------------------------------------------------------------------------------- /proc/ourmsg.defs: -------------------------------------------------------------------------------- 1 | /* Private specialized presentation of msg.defs for proc server. */ 2 | 3 | #define routine simpleroutine 4 | 5 | /* The reason for this= is to prevent errors for get_init_port, 6 | get_init_ports, get_init_int, get_init_ints, get_dtable, and get_fd. 7 | We don't use those, so we're safe in breaking them. */ 8 | #define out /* empty */ 9 | 10 | #define USERPREFIX nowait_ 11 | 12 | #include 13 | -------------------------------------------------------------------------------- /procfs/main.h: -------------------------------------------------------------------------------- 1 | /* Hurd /proc filesystem, command-line options set by main.c. 2 | Copyright (C) 2010 Free Software Foundation, Inc. 3 | 4 | This file is part of the GNU Hurd. 5 | 6 | The GNU Hurd is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License as 8 | published by the Free Software Foundation; either version 2, or (at 9 | your option) any later version. 10 | 11 | The GNU Hurd is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | /* Startup options */ 21 | extern int opt_clk_tck; 22 | extern mode_t opt_stat_mode; 23 | extern pid_t opt_kernel_pid; 24 | extern uid_t opt_anon_owner; 25 | -------------------------------------------------------------------------------- /procfs/proclist.h: -------------------------------------------------------------------------------- 1 | /* Hurd /proc filesystem, list of processes as a directory. 2 | Copyright (C) 2010 Free Software Foundation, Inc. 3 | 4 | This file is part of the GNU Hurd. 5 | 6 | The GNU Hurd is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License as 8 | published by the Free Software Foundation; either version 2, or (at 9 | your option) any later version. 10 | 11 | The GNU Hurd is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | #include 21 | 22 | struct node * 23 | proclist_make_node (struct ps_context *pc); 24 | -------------------------------------------------------------------------------- /procfs/rootdir.h: -------------------------------------------------------------------------------- 1 | /* Hurd /proc filesystem, permanent files of the root directory. 2 | Copyright (C) 2010 Free Software Foundation, Inc. 3 | 4 | This file is part of the GNU Hurd. 5 | 6 | The GNU Hurd is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License as 8 | published by the Free Software Foundation; either version 2, or (at 9 | your option) any later version. 10 | 11 | The GNU Hurd is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 | 20 | #include 21 | 22 | struct node * 23 | rootdir_make_node (struct ps_context *pc); 24 | -------------------------------------------------------------------------------- /release/README: -------------------------------------------------------------------------------- 1 | As if the editor cared that this was -*- Text -*-. 2 | 3 | This directory contains tools and scripts useful in setting up Hurd 4 | binary distributions. None of it is installed by default, but it's 5 | provided here for those who might find it helpful. 6 | 7 | Use `make install-dist dist-root=FOO' to install the files that go 8 | into the root of binary distributions. 9 | 10 | Use `make install-tools tool-root=FOO' to install the tools that are 11 | used to build binary distributions. 12 | -------------------------------------------------------------------------------- /release/bfloppy-special.copy: -------------------------------------------------------------------------------- 1 | rename boot/servers.boot copy bfloppy.boot 2 | -------------------------------------------------------------------------------- /release/bfloppy.boot: -------------------------------------------------------------------------------- 1 | # Boot script file for booting GNU Hurd from a boot floppy. Each line 2 | # specifies a file to be loaded by the boot loader (the first word), and 3 | # actions to be done with it. 4 | 5 | # First, the bootstrap filesystem. It needs several ports as arguments, 6 | # as well as the user flags from the boot loader. 7 | /hurd/ufs.static.gz --bootflags=${boot-args} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -Tgunzip:device ${root-device} $(task-create) $(prompt-task-resume) 8 | 9 | # Now the exec server; to load the dynamically-linked exec server program, 10 | # we have the boot loader in fact load and run ld.so, which in turn 11 | # loads and runs /hurd/exec. This task is created, and its task port saved 12 | # in ${exec-task} to be passed to the fs above, but it is left suspended; 13 | # the fs will resume the exec task once it is ready. 14 | /lib/ld.so.1.gz /hurd/exec $(exec-task=task-create) 15 | -------------------------------------------------------------------------------- /release/bfloppy.copy: -------------------------------------------------------------------------------- 1 | mkdir boot 2 | mkdir hurd 3 | mkdir lib 4 | mkdir boot/grub 5 | gzip objcopy boot/gnumach 6 | gzip objcopy boot/serverboot 7 | gzip objcopy lib/ld.so.1 8 | gzip objcopy hurd/ext2fs.static 9 | copy boot/grub/menu.lst 10 | copy boot/grub/stage1 11 | copy boot/grub/stage2 12 | -------------------------------------------------------------------------------- /release/bfloppy1-special.copy: -------------------------------------------------------------------------------- 1 | rename boot/grub/menu.lst copy bfloppy1.grub 2 | -------------------------------------------------------------------------------- /release/bfloppy1.copy: -------------------------------------------------------------------------------- 1 | mkdir boot 2 | mkdir boot/grub 3 | gzip objcopy boot/gnumach 4 | gzip objcopy boot/serverboot 5 | copy boot/grub/stage1 6 | copy boot/grub/stage2 7 | copy boot/grub/ffs_stage1_5 8 | -------------------------------------------------------------------------------- /release/bfloppy1.grub: -------------------------------------------------------------------------------- 1 | # This is the amount grub waits before booting the default entry 2 | timeout= 5 3 | 4 | # Tell which entry to boot by default. Note that this is origin zero 5 | # from the beginning of the file. 6 | default= 0 7 | 8 | # Note that to GRUB, all hard disks are `hd' and all floppy disks are `fd'. 9 | # To Mach, SCSI disks are `sd' and IDE type disks are `hd'. Use 10 | # GRUB names in the `root' command and prefixing filenames. Use a 11 | # Mach name as the `root' arg for the kernel, and whenever running the Hurd. 12 | 13 | 14 | # These two entries are for SCSI disks 15 | # Entry 0: 16 | title= fd0 17 | root= (fd0) 18 | kernel= /boot/gnumach.gz root=fd0 19 | module= /boot/serverboot.gz 20 | pause= Insert boot-floppy #2 and hit RETURN... 21 | 22 | # Installation steps for GRUB hard disk boot blocks 23 | # Entry 4: 24 | title= Install grub from floppy onto hard disk 25 | install= (fd0)+1 (hd0) (hd0,a)/boot/grub/stage2 0x8000 p 26 | 27 | # Entry 5: 28 | title= Reinstall grub from hard disk to itself 29 | install= (hd0)/boot/grub/stage1 (hd0) (hd0,a)/boot/grub/stage2 0x8000 p 30 | -------------------------------------------------------------------------------- /release/bfloppy2-special.copy: -------------------------------------------------------------------------------- 1 | mkdir boot 2 | rename boot/servers.boot copy bfloppy2.boot 3 | -------------------------------------------------------------------------------- /release/bfloppy2.boot: -------------------------------------------------------------------------------- 1 | # Boot script file for booting GNU Hurd from a boot floppy. Each line 2 | # specifies a file to be loaded by the boot loader (the first word), and 3 | # actions to be done with it. 4 | 5 | # First, the bootstrap filesystem. It needs several ports as arguments, 6 | # as well as the user flags from the boot loader. 7 | /hurd/ext2fs.static --sync=2 --bootflags=${boot-args} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -Tgunzip:device ${root-device} $(task-create) $(prompt-task-resume) 8 | 9 | # Now the exec server; to load the dynamically-linked exec server program, 10 | # we have the boot loader in fact load and run ld.so, which in turn 11 | # loads and runs /hurd/exec. This task is created, and its task port saved 12 | # in ${exec-task} to be passed to the fs above, but it is left suspended; 13 | # the fs will resume the exec task once it is ready. 14 | /lib/ld.so.1 /hurd/exec $(exec-task=task-create) 15 | -------------------------------------------------------------------------------- /release/bfloppy2.copy: -------------------------------------------------------------------------------- 1 | mkdir hurd 2 | mkdir lib 3 | objcopy lib/ld.so.1 4 | objcopy hurd/ext2fs.static 5 | -------------------------------------------------------------------------------- /release/fstab-to-settrans: -------------------------------------------------------------------------------- 1 | sed -n 's;^\([^ ][^ ]*\)[ ][ ]*\([^ ][^ ]*\)[ ][ ]*nfs.*$;settrans -c \2 /hurd/nfs \1;p' 2 | -------------------------------------------------------------------------------- /release/mkemptyso.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # args: $1 -- destination .so file 3 | SO=$1 4 | GCC=${GCC-i386-gnu-gcc} 5 | $GCC -nostdlib -shared -fPIC -x c /dev/null -Wl,-soname=`basename $SO` -o $SO 6 | -------------------------------------------------------------------------------- /release/release-steps: -------------------------------------------------------------------------------- 1 | 2 | Make tar file. 3 | Test compilation. 4 | Update README, including version number. 5 | Update INSTALL, including version number. 6 | Update NEWS. 7 | Write release announcement. 8 | README and release announcement should mention list of platforms. 9 | -------------------------------------------------------------------------------- /release/rfloppy-special.copy: -------------------------------------------------------------------------------- 1 | rename etc/passwd copy rfloppy.passwd 2 | rename etc/group copy rfloppy.group 3 | rename etc/nsswitch.conf copy rfloppy.nss 4 | -------------------------------------------------------------------------------- /release/rfloppy.group: -------------------------------------------------------------------------------- 1 | wheel::0:root 2 | -------------------------------------------------------------------------------- /release/rfloppy.nss: -------------------------------------------------------------------------------- 1 | # /etc/nsswitch.conf 2 | # 3 | # Don't use name services that we can't provide (specifically, nis & db) 4 | # 5 | 6 | # defaults for hosts & networks are ok 7 | 8 | passwd: files 9 | group: files 10 | shadow: files 11 | aliases: files 12 | 13 | protocols: files 14 | services: files 15 | ethers: files 16 | rpc: files 17 | publickey: files 18 | 19 | netgroup: files 20 | -------------------------------------------------------------------------------- /release/rfloppy.passwd: -------------------------------------------------------------------------------- 1 | root::0:0:Lord of the Files:/:/bin/bash 2 | -------------------------------------------------------------------------------- /release/servers.boot: -------------------------------------------------------------------------------- 1 | # Boot script file for booting GNU Hurd. Each line specifies a file to be 2 | # loaded by the boot loader (the first word), and actions to be done with it. 3 | 4 | # First, the bootstrap filesystem. It needs several ports as arguments, 5 | # as well as the user flags from the boot loader. 6 | /hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} --kernel-task=${kernel-task} -T typed ${root} $(task-create) $(task-resume) 7 | 8 | 9 | # Now the exec server; to load the dynamically-linked exec server program, 10 | # we have the boot loader in fact load and run ld.so, which in turn 11 | # loads and runs /hurd/exec. This task is created, and its task port saved 12 | # in ${exec-task} to be passed to the fs above, but it is left suspended; 13 | # the fs will resume the exec task once it is ready. 14 | /lib/ld.so.1 /hurd/exec $(exec-task=task-create) 15 | -------------------------------------------------------------------------------- /rumpdisk/block-rump.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 Free Software Foundation 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2, or (at your option) 7 | * any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 17 | */ 18 | #ifndef _BLOCK_RUMP_H_ 19 | #define _BLOCK_RUMP_H_ 20 | 21 | void rump_register_block (void); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /shutdown/mig-mutate.h: -------------------------------------------------------------------------------- 1 | #define SHUTDOWN_INTRAN \ 2 | trivfs_protid_t trivfs_begin_using_protid (shutdown_t) 3 | #define SHUTDOWN_INTRAN_PAYLOAD \ 4 | trivfs_protid_t trivfs_begin_using_protid_payload 5 | #define SHUTDOWN_DESTRUCTOR \ 6 | trivfs_end_using_protid (trivfs_protid_t) 7 | #define SHUTDOWN_IMPORTS \ 8 | import "libtrivfs/mig-decls.h"; 9 | -------------------------------------------------------------------------------- /storeio/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for storeio 2 | # 3 | # Copyright (C) 1995, 1996, 1997, 2000, 2012 Free Software Foundation, Inc. 4 | # 5 | # This program is free software; you can redistribute it and/or 6 | # modify it under the terms of the GNU General Public License as 7 | # published by the Free Software Foundation; either version 2, or (at 8 | # your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | # General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | 19 | dir := storeio 20 | makemode := server 21 | 22 | target = storeio 23 | SRCS = dev.c storeio.c open.c pager.c io.c 24 | 25 | OBJS = $(SRCS:.c=.o) 26 | HURDLIBS = trivfs pager fshelp iohelp store ports ihash shouldbeinlibc 27 | LDLIBS = -lpthread 28 | 29 | include ../Makeconf 30 | -------------------------------------------------------------------------------- /sutils/swapoff.c: -------------------------------------------------------------------------------- 1 | #define SWAPOFF 2 | #include "swapon.c" 3 | -------------------------------------------------------------------------------- /term/ourmsg.defs: -------------------------------------------------------------------------------- 1 | /* Private specialized presentation of msg.defs for term server. */ 2 | 3 | #define routine simpleroutine 4 | 5 | /* The reason for this= is to prevent errors for get_init_port, 6 | get_init_ports, get_init_int, get_init_ints, get_dtable, and get_fd. 7 | We don't use those, so we're safe in breaking them. */ 8 | #define out /* empty */ 9 | 10 | #define USERPREFIX nowait_ 11 | 12 | #define msg ourmsg /* Change subsystem name for headers et al. */ 13 | 14 | #include 15 | -------------------------------------------------------------------------------- /term/xinl.c: -------------------------------------------------------------------------------- 1 | #define TERM_DEFINE_EI 2 | #include "term.h" 3 | -------------------------------------------------------------------------------- /usermux/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for usermux 2 | # 3 | # Copyright (C) 1997, 2000, 2012 Free Software Foundation, Inc. 4 | # 5 | # This program is free software; you can redistribute it and/or 6 | # modify it under the terms of the GNU General Public License as 7 | # published by the Free Software Foundation; either version 2, or (at 8 | # your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | # General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 | 19 | dir := usermux 20 | makemode := server 21 | 22 | target = usermux 23 | 24 | SRCS = usermux.c mux.c leaf.c node.c stubs.c 25 | 26 | OBJS = $(SRCS:.c=.o) 27 | HURDLIBS = netfs fshelp iohelp ports ihash shouldbeinlibc 28 | LDLIBS = -lpthread 29 | 30 | include ../Makeconf 31 | -------------------------------------------------------------------------------- /usermux/usermux-xinl.c: -------------------------------------------------------------------------------- 1 | /* Real definitions for extern inline functions in usermux.h 2 | 3 | Copyright (C) 1997 Free Software Foundation, Inc. 4 | Written by Miles Bader 5 | This file is part of the GNU Hurd. 6 | 7 | The GNU Hurd is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License as 9 | published by the Free Software Foundation; either version 2, or (at 10 | your option) any later version. 11 | 12 | The GNU Hurd is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ 20 | 21 | #define USERMUX_EI 22 | #undef __OPTIMIZE__ 23 | #define __OPTIMIZE__ 1 24 | #include "usermux.h" 25 | -------------------------------------------------------------------------------- /utils/loginpr.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -noprofile 2 | # 3 | # Traditional prompting login program 4 | # 5 | # This can be made the system default by making it the shell for the 6 | # pseudo-user `login'. 7 | # 8 | 9 | prompt='login: ' 10 | user='' 11 | 12 | test "$_LOGIN_RETRY" && echo '' 13 | unset _LOGIN_RETRY 14 | 15 | until [ "$user" ]; do 16 | echo -n "$prompt" 17 | read user args || exit 0 18 | done 19 | 20 | exec login "$@" -p --paranoid -R-aSHELL="$0" -R-aMOTD -R-p -R-e_LOGIN_RETRY=yes "$user" $args 21 | --------------------------------------------------------------------------------