diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2016-12-19 02:13:06 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-12-19 02:13:06 +0100 |
commit | b2c97e251bb470e6f967c716081675a96dbde59c (patch) | |
tree | aa159f1f6d44959c40a3739515c4c6ae3ab9f3e7 /hurd | |
parent | 5add1f4c531639b6247c827566ae55426c1182d7 (diff) |
procfs: provide magic retry response for /proc/self
* 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.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurd_types.h | 3 | ||||
-rw-r--r-- | hurd/paths.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/hurd/hurd_types.h b/hurd/hurd_types.h index 43411778..2960a294 100644 --- a/hurd/hurd_types.h +++ b/hurd/hurd_types.h @@ -114,6 +114,9 @@ enum retry_type as for FS_RETRY_NORMAL. "/..." means retry "...", but starting from the users root directory. + + "pid/..." means replace `pid' with the PID of the current process in %u + format and then retry as for FS_RETRY_NORMAL. */ }; typedef enum retry_type retry_type; diff --git a/hurd/paths.h b/hurd/paths.h index a13ba9b7..e1b00e90 100644 --- a/hurd/paths.h +++ b/hurd/paths.h @@ -54,6 +54,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define _HURD_IFSOCK _HURD "ifsock" /* S_IFSOCK */ /* Symbolic names for all non-essential translators. */ +#define _HURD_MAGIC _HURD "magic" #define _HURD_MTAB _HURD "mtab" #endif /* hurd/paths.h */ |