* include/paths.h (_PATH_MNTTAB): Define.
(_PATH_MOUNTED): Define. * include/mntent.h: Include paths.h. Define MNTTAB and MOUNTED as their paths.h equivalents. Add comment.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/* mntent.h
|
||||
|
||||
Copyright 1996, 1998, 1999, 2000, 2001, 2006, 2009 Red Hat, Inc.
|
||||
Copyright 1996, 1998, 1999, 2000, 2001, 2006, 2009, 2010 Red Hat, Inc.
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@ -15,6 +15,8 @@ details. */
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <paths.h>
|
||||
|
||||
struct mntent
|
||||
{
|
||||
char *mnt_fsname;
|
||||
@ -32,12 +34,17 @@ struct mntent *getmntent (FILE *__filep);
|
||||
int endmntent (FILE *__filep);
|
||||
#endif
|
||||
|
||||
/* The following two defines are deprecated. Use the equivalent
|
||||
names from paths.h instead. */
|
||||
#ifndef MNTTAB
|
||||
#define MNTTAB _PATH_MNTTAB
|
||||
#endif
|
||||
/* This next file does exist, but the implementation of these
|
||||
functions does not actually use it.
|
||||
However, applications need the define to pass to setmntent().
|
||||
*/
|
||||
#ifndef MOUNTED
|
||||
#define MOUNTED "/etc/mtab"
|
||||
#define MOUNTED _PATH_MOUNTED
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user