[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 62/87: hurd: add symbolic name for the mtab translator
From: |
Samuel Thibault |
Subject: |
[hurd] 62/87: hurd: add symbolic name for the mtab translator |
Date: |
Sun, 09 Nov 2014 11:05:04 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 0ef49e125811ddb750403f02a091fd892b595fdf
Author: Justus Winter <address@hidden>
Date: Fri Sep 19 08:13:26 2014 +0200
hurd: add symbolic name for the mtab translator
* hurd/paths.h (_HURD_MTAB): New macro.
* procfs/rootdir.c (rootdir_mounts_get_translator): Use the new macro.
(rootdir_mounts_exists): Likewise.
---
hurd/paths.h | 2 ++
procfs/rootdir.c | 7 ++-----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/hurd/paths.h b/hurd/paths.h
index 4877132..92875b2 100644
--- a/hurd/paths.h
+++ b/hurd/paths.h
@@ -52,5 +52,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA
02139, USA. */
#define _HURD_FIFO _HURD "fifo" /* S_IFIFO */
#define _HURD_IFSOCK _HURD "ifsock" /* S_IFSOCK */
+/* Symbolic names for all non-essential translators. */
+#define _HURD_MTAB _HURD "mtab"
#endif /* hurd/paths.h */
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index 0b13119..9541059 100644
--- a/procfs/rootdir.c
+++ b/procfs/rootdir.c
@@ -407,9 +407,6 @@ rootdir_gc_fakeself (void *hook, char **contents, ssize_t
*contents_len)
return 0;
}
-/* The mtab translator to use by default for the "mounts" node. */
-#define MTAB_TRANSLATOR "/hurd/mtab"
-
static struct node *rootdir_mounts_node;
static pthread_spinlock_t rootdir_mounts_node_lock =
PTHREAD_SPINLOCK_INITIALIZER;
@@ -454,7 +451,7 @@ rootdir_mounts_make_node (void *dir_hook, const void
*entry_hook)
static error_t
rootdir_mounts_get_translator (void *hook, char **argz, size_t *argz_len)
{
- static const char const mtab_argz[] = MTAB_TRANSLATOR "\0/";
+ static const char const mtab_argz[] = _HURD_MTAB "\0/";
*argz = malloc (sizeof mtab_argz);
if (! *argz)
@@ -470,7 +467,7 @@ rootdir_mounts_exists (void *dir_hook, const void
*entry_hook)
{
static int translator_exists = -1;
if (translator_exists == -1)
- translator_exists = access (MTAB_TRANSLATOR, F_OK|X_OK) == 0;
+ translator_exists = access (_HURD_MTAB, F_OK|X_OK) == 0;
return translator_exists;
}
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 21/87: ext2fs: fix compiler warning, (continued)
- [hurd] 21/87: ext2fs: fix compiler warning, Samuel Thibault, 2014/11/09
- [hurd] 49/87: Add missing linefeed, Samuel Thibault, 2014/11/09
- [hurd] 58/87: libdiskfs: fix /servers/exec lookup, Samuel Thibault, 2014/11/09
- [hurd] 59/87: hurd: make memory_object parameter polymorphic, Samuel Thibault, 2014/11/09
- [hurd] 61/87: procfs: fix typo in comment, Samuel Thibault, 2014/11/09
- [hurd] 53/87: libtrivfs: fix typo, Samuel Thibault, 2014/11/09
- [hurd] 64/87: BSD apps want sin_zero cleared in sys_getname., Samuel Thibault, 2014/11/09
- [hurd] 60/87: trans/hello{, -mt}: properly escape contents in trivfs_append_args, Samuel Thibault, 2014/11/09
- [hurd] 66/87: exec: redzone page zero before loading anything, Samuel Thibault, 2014/11/09
- [hurd] 52/87: libdiskfs: fix reference counting of peropen objects, Samuel Thibault, 2014/11/09
- [hurd] 62/87: hurd: add symbolic name for the mtab translator,
Samuel Thibault <=
- [hurd] 70/87: procfs: generalize the translator linkage code, Samuel Thibault, 2014/11/09
- [hurd] 56/87: hurd: fix semantic of file_get_children, Samuel Thibault, 2014/11/09
- [hurd] 47/87: Make the ncursesw driver of the console client compile properly, Samuel Thibault, 2014/11/09
- [hurd] 65/87: exec: add proper argument parsing, add --device-master-port, Samuel Thibault, 2014/11/09
- [hurd] 18/87: hurd: fix type of optimal_transfer_size, Samuel Thibault, 2014/11/09
- [hurd] 50/87: sutils: add urandom device target to MAKEDEV, Samuel Thibault, 2014/11/09
- [hurd] 45/87: Revert "libpipe: fix calls to pipe_send with no data", Samuel Thibault, 2014/11/09
- [hurd] 57/87: include: detect use-after-free errors using the reference counts, Samuel Thibault, 2014/11/09
- [hurd] 73/87: libdiskfs: remove code counting cache misses, Samuel Thibault, 2014/11/09
- [hurd] 82/87: Fix dead name notification in static binaries, Samuel Thibault, 2014/11/09