1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:17:44 +00:00

Miscellaneous compat work while seeing if GNU coreutils would build.

This commit is contained in:
Andreas Kling 2018-11-07 10:23:16 +01:00
parent a7f1d892a9
commit d7a41579e5
12 changed files with 92 additions and 2 deletions

23
LibC/mntent.h Normal file
View file

@ -0,0 +1,23 @@
#pragma once
#include <sys/cdefs.h>
#include <stdio.h>
__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);
__END_DECLS