aboutsummaryrefslogtreecommitdiff
path: root/procfs/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid unaligned memory accessesSamuel Thibault2023-02-021-1/+3
|
* Remove unused parameter from the 'get_source' machinery.Justus Winter2017-09-011-6/+4
| | | | | | | | | | | | | | | | | | | | | * libdiskfs/diskfs.h (diskfs_get_source): Remove first parameter. * libdiskfs/file-get-source.c (diskfs_S_file_get_source): Adapt callsite. * libdiskfs/get-source.c (diskfs_get_source): Adapt default implementation. * libnetfs/netfs.h (netfs_get_source): Remove first parameter. * libnetfs/file-get-source.c (netfs_S_file_get_source): Adapt callsite. * libnetfs/get-source.c (netfs_get_source): Adapt default implementation. * libtrivfs/trivfs.h (trivfs_get_source): Remove first parameter. * libtrivfs/file-get-source.c (trivfs_S_file_get_source): Adapt callsite. * libtrivfs/get-source.c (trivfs_get_source): Adapt default implementation. * nfs/main.c (netfs_get_source): Adapt implementation. * procfs/main.c (netfs_get_source): Likewise. * trans/firmlink.c (trivfs_get_source): Likewise.
* Use our own variant of 'assert' and 'assert_perror'.Justus Winter2017-08-051-1/+1
| | | | | Our variants print stack traces on failures. This will make locating errors much easier.
* procfs: provide magic retry response for /proc/selfJustus Winter2016-12-191-24/+0
| | | | | | | | | * hurd/hurd_types.h: Document the magic retry string `pid'. * hurd/paths.h (_HURD_MAGIC): New macro. * procfs/main.c: Remove all code related to faking /proc/self. * procfs/main.h: Likewise. * procfs/rootdir.c: Likewise. Instead, return the magic retry response `pid' for the `self' node.
* Fix function nameSamuel Thibault2016-02-141-2/+2
| | | | | * procfs/main.c (set_default_options): Rename to set_compatibility_options. (argp_parser): Update call accordingly.
* procfs: Move setting default parameters to a separate functionSamuel Thibault2016-01-191-3/+8
| | | | | * procfs/main.c (set_default_options): New function (argp_parser): Call `set_default_options'.
* Make procfs accept none or proc as "device"Samuel Thibault2015-09-081-0/+6
| | | | | | | This allows "mount none /proc -t proc" to work. * procfs/main.c (argp_parser): On ARGP_KEY_ARG, accept and ignore "none" and "proc".
* procfs: fix runtime option parsingJustus Winter2015-04-071-1/+1
| | | | | * procfs/main.c (netfs_runtime_argp): Actually use the runtime option parser.
* procfs: fix argument parsingJustus Winter2015-04-071-3/+3
| | | | * procfs/main.c (argp_parser): Fix argument parsing.
* procfs: Fix typos in comments (found by codespell)Stefan Weil2015-01-031-1/+1
| | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Fix coding styleSamuel Thibault2014-12-061-1/+1
|
* procfs: do not hard-code the default argument valuesJustus Winter2014-11-211-3/+3
| | | | | * procfs/main.c (common_options): If possible, do not hard-code the default values.
* Add proc_set_init_task, make runsystem pid 1Justus Winter2014-11-211-2/+7
| | | | | | | | | | | | | | | | | * hurd/process.defs (proc_set_init_task): New procedure. * hurd/process_reply.defs (proc_set_init_task): Likewise. * hurd/process_request.defs (proc_set_init_task): Likewise. * include/pids.h: Add HURD_PID_INIT as 1, adjust others accordingly. * init/init.c (start_child): Register the child task. * proc/proc.h (init_proc): New variable. (create_startup_proc): Rename to create_init_proc. * proc/main.c (main): Create placeholder proc object for pid 1. * proc/mgt.c: Use init_proc instead of startup_proc, as the former is the new root of the process tree. (create_startup_proc): Rename to create_init_proc. (S_proc_set_init_task): New function. * doc/hurd.texi (Server Bootstrap): Update accordingly. * procfs/main.c: Do not hard-code kernel pid, use pids.h instead.
* Make procfs appear in /proc/mountsSamuel Thibault2014-11-111-0/+12
| | | | | | d-i needs to be able to check whether /proc is mounted or not. * procfs/main.c (netfs_get_source): New function.
* Prepare the procfs translator to be merged into the Hurd sourcesJustus Winter2014-06-151-0/+315
Move the procfs translator to its own subdirectory 'procfs'. This is the last commit to this repository. Development of the procfs translator will continue in the main Hurd repository. * procfs/Makefile: Replace the standalone Makefile with the one from the Debian packaging repository.