* include/mntent.h: Remove declarations of nonexistant addmntent

and hasmntopt.  Update and clarify the /etc/mtab comment.
This commit is contained in:
Corinna Vinschen 2009-03-24 09:19:37 +00:00
parent 6199f417ab
commit 0258b68722
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2009-03-24 Yaakov Selkowitz <yselkowitz@cygwin.com>
* include/mntent.h: Remove declarations of nonexistant addmntent
and hasmntopt. Update and clarify the /etc/mtab comment.
2009-03-23 Corinna Vinschen <corinna@vinschen.de> 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
* smallprint.cc (__small_vsprintf): Handle NULL PWCHAR and * smallprint.cc (__small_vsprintf): Handle NULL PWCHAR and

View File

@ -1,6 +1,6 @@
/* mntent.h /* mntent.h
Copyright 1996, 1998, 1999, 2000, 2001, 2006 Red Hat, Inc. Copyright 1996, 1998, 1999, 2000, 2001, 2006, 2009 Red Hat, Inc.
This file is part of Cygwin. This file is part of Cygwin.
@ -29,18 +29,17 @@ struct mntent
#include <stdio.h> #include <stdio.h>
FILE *setmntent (const char *__filep, const char *__type); FILE *setmntent (const char *__filep, const char *__type);
struct mntent *getmntent (FILE *__filep); struct mntent *getmntent (FILE *__filep);
int addmntent (FILE *__filep, const struct mntent *__mnt);
int endmntent (FILE *__filep); int endmntent (FILE *__filep);
char *hasmntopt (const struct mntent *__mnt, const char *__opt);
#endif #endif
/* This next file doesn't exist, it is in the registry, /* This next file does exist, but the implementation of these
however applications need the define to pass to functions does not actually use it.
the above calls. However, applications need the define to pass to setmntent().
*/ */
#ifndef MOUNTED #ifndef MOUNTED
#define MOUNTED "/etc/mtab" #define MOUNTED "/etc/mtab"
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
}; };
#endif #endif