aboutsummaryrefslogtreecommitdiff
path: root/system/include/mntent.h
blob: 462c6065f92ccb05b4980a88de04d7df5585bca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _MNTENT_H
#define _MNTENT_H

#include <stdio.h>

struct mntent {
  char *mnt_fsname;
  char *mnt_dir;
  char *mnt_type;
  char *mnt_opts;
  int   mnt_freq;
  int   mnt_passno;
};

struct mntent *getmntent(FILE *f);
FILE *setmntent(const char *filename, const char *type);
int   addmntent(FILE *f, const struct mntent *m);
int   endmntent(FILE *f);
char *hasmntopt(const struct mntent *m, const char *opt);

#endif