diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f79bdaf5b..a9fa904a4 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-03-24 Yaakov Selkowitz + + * include/mntent.h: Remove declarations of nonexistant addmntent + and hasmntopt. Update and clarify the /etc/mtab comment. + 2009-03-23 Corinna Vinschen * smallprint.cc (__small_vsprintf): Handle NULL PWCHAR and diff --git a/winsup/cygwin/include/mntent.h b/winsup/cygwin/include/mntent.h index 5fa4ff945..c284cc7c6 100644 --- a/winsup/cygwin/include/mntent.h +++ b/winsup/cygwin/include/mntent.h @@ -1,6 +1,6 @@ /* 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. @@ -29,18 +29,17 @@ struct mntent #include FILE *setmntent (const char *__filep, const char *__type); struct mntent *getmntent (FILE *__filep); -int addmntent (FILE *__filep, const struct mntent *__mnt); int endmntent (FILE *__filep); -char *hasmntopt (const struct mntent *__mnt, const char *__opt); #endif -/* This next file doesn't exist, it is in the registry, - however applications need the define to pass to - the above calls. +/* 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" #endif + #ifdef __cplusplus }; #endif