lxcmntent.h revision edaf8b1bf1ca57202af0ffb53dcd665b01695888
a8c5a86d183db25a57bf193c06b41e092ec2e151Timo Sirainen#ifndef _mntent_h
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen#define _mntent_h
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#include <../config.h>
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen
9ddd3d7d8651985e373a6c48e0ddc76b8a4ef1c7Timo Sirainen#if IS_BIONIC
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainenstruct mntent
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen{
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen char* mnt_fsname;
bdd36cfdba3ff66d25570a9ff568d69e1eb543cfTimo Sirainen char* mnt_dir;
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen char* mnt_type;
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen char* mnt_opts;
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen int mnt_freq;
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen int mnt_passno;
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen};
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainenextern struct mntent *getmntent (FILE *stream);
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen#endif
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
0cb5a9bfbf40b3b323956792aa13d342a459585eTimo Sirainen#ifndef HAVE_SETMNTENT
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenFILE *setmntent (const char *file, const char *mode);
0cb5a9bfbf40b3b323956792aa13d342a459585eTimo Sirainen#endif
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9ddd3d7d8651985e373a6c48e0ddc76b8a4ef1c7Timo Sirainen#ifndef HAVE_ENDMNTENT
9ddd3d7d8651985e373a6c48e0ddc76b8a4ef1c7Timo Sirainenint endmntent (FILE *stream);
a272994d43de80a306a8ed1f2983960d1f3102d0Timo Sirainen#endif
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen#ifndef HAVE_HASMNTOPT
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenextern char *hasmntopt (const struct mntent *mnt, const char *opt);
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen#endif
d1414c09cf0d58ac983054e2f4e1a1f329272dcfTimo Sirainen
d1414c09cf0d58ac983054e2f4e1a1f329272dcfTimo Sirainen#endif
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen