2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
2018-11-07 10:23:16 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2019-05-28 11:53:16 +02:00
|
|
|
#include <sys/cdefs.h>
|
2018-11-07 10:23:16 +01:00
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
#define MOUNTED "/etc/mtab"
|
|
|
|
|
#define MNTTAB "/etc/fstab"
|
|
|
|
|
|
|
|
|
|
struct mntent {
|
|
|
|
|
char* mnt_fsname;
|
|
|
|
|
char* mnt_dir;
|
|
|
|
|
char* mnt_type;
|
|
|
|
|
char* mnt_opts;
|
|
|
|
|
int mnt_freq;
|
|
|
|
|
int mnt_passno;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct mntent* getmntent(FILE* stream);
|
2021-08-12 19:38:30 +02:00
|
|
|
FILE* setmntent(char const* filename, char const* type);
|
|
|
|
|
int endmntent(FILE* streamp);
|
|
|
|
|
struct mntent* getmntent_r(FILE* streamp, struct mntent* mntbuf, char* buf, int buflen);
|
2018-11-07 10:23:16 +01:00
|
|
|
|
|
|
|
|
__END_DECLS
|