summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorKarel Zak2010-04-02 11:43:36 +0200
committerKarel Zak2010-04-02 11:43:36 +0200
commit865deca2242a8b9f40d351e3eb2f5c0f9433bd02 (patch)
tree4f9065793161f580166b121f096d9d4366aa3274 /include/pathnames.h
parentmkswap: move write_all() to include/writeall.h (diff)
downloadkernel-qcow2-util-linux-865deca2242a8b9f40d351e3eb2f5c0f9433bd02.tar.gz
kernel-qcow2-util-linux-865deca2242a8b9f40d351e3eb2f5c0f9433bd02.tar.xz
kernel-qcow2-util-linux-865deca2242a8b9f40d351e3eb2f5c0f9433bd02.zip
swapon: move DELETED_SUFFIX to include/pathnames.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r--include/pathnames.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index 9c4eb009b..7d57c528f 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -12,6 +12,10 @@
# error "we need an ANSI compiler"
#endif
+/* used by kernel in /proc (e.g. /proc/swaps) for deleted files */
+#define PATH_DELETED_SUFFIX "\\040(deleted)"
+#define PATH_DELETED_SUFFIX_SZ (sizeof(PATH_DELETED_SUFFIX) - 1)
+
/* DEFPATHs from <paths.h> don't include /usr/local */
#undef _PATH_DEFPATH
#define _PATH_DEFPATH "/usr/local/bin:/bin:/usr/bin"