blob: 0180d552b5bbfc2ec83f7d854ea55f2d64b6c272 [file] [log] [blame] [raw]
/*
* Vaguely based on
* @(#)pathnames.h 5.3 (Berkeley) 5/9/89
* This code is in the public domain.
*/
#ifndef PATHNAMES_H
#define PATHNAMES_H
#include <sys/param.h>
#if defined __GLIBC__ || defined BSD
#include <paths.h>
#endif
#ifndef __STDC__
# error "we need an ANSI compiler"
#endif
#if defined __linux__ || defined __CYGWIN__
#define _PATH_PROC_SWAPS "/proc/swaps"
#define _PATH_PROC_FILESYSTEMS "/proc/filesystems"
#define _PATH_PROC_MOUNTS "/proc/mounts"
#define _PATH_PROC_PARTITIONS "/proc/partitions"
#define _PATH_PROC_DEVICES "/proc/devices"
#endif
#ifndef _PATH_MOUNTED
# ifdef MOUNTED /* deprecated */
# define _PATH_MOUNTED MOUNTED
# elif __linux__
# define _PATH_MOUNTED "/etc/mtab"
# else
# define _PATH_MOUNTED "/etc/mnttab" /* SysV */
# endif
#endif
#define _PATH_MOUNTED_LOCK _PATH_MOUNTED "~"
#define _PATH_MOUNTED_TMP _PATH_MOUNTED ".tmp"
#ifndef _PATH_DEV
# define _PATH_DEV "/dev/"
#endif
/* udev paths */
#define _PATH_DEV_BYLABEL "/dev/disk/by-label"
#define _PATH_DEV_BYUUID "/dev/disk/by-uuid"
#define _PATH_DEV_BYID "/dev/disk/by-id"
#define _PATH_DEV_BYPATH "/dev/disk/by-path"
#endif /* PATHNAMES_H */