[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/NEWLIB PATCH 06/16] mntent.h: Import from musl


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Thu, 22 Aug 2019 13:10:46 +0300
  • Cc: felipe.huici@xxxxxxxxx, charalampos.mainas@xxxxxxxxx
  • Delivery-date: Thu, 22 Aug 2019 10:11:15 +0000
  • Ironport-phdr: 9a23:Z4q8wRF62+yIr/vLLuW0YJ1GYnF86YWxBRYc798ds5kLTJ7ypM6wAkXT6L1XgUPTWs2DsrQY0rCQ6vy9EjZbqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5sIBmssAncuckbjYR8Jqs/1xDEvmZGd+NKyG1yOFmdhQz85sC+/J5i9yRfpfcs/NNeXKv5Yqo1U6VWACwpPG4p6sLrswLDTRaU6XsHTmoWiBtIDBPb4xz8Q5z8rzH1tut52CmdIM32UbU5Uims4qt3VBPljjoMOjgk+2/Vl8NwlrpWrhK/qRJizYDaY4abO/hwfq7GYd8WWXBMUtpLWiBdHo+xaZYEAeobPeZfqonwv0UDrRylBQmwBePvzCJDiHnr3a0izuQqDAbL0xAnH9IVrHTUrdP1OL0WUeCo1KnI0C7OYO9N2Tvn8IjIbwsureuWXbJ3aMfcz1QkGQ3CjlWVs4PlPjWV2/wIs2iG9OpgUfuji2omqw5qvjej3MAsipPGho8T11vK9j15zZ4oKdC3VUJ3e92pHZtKuy2EKYd7QNkuTm9wtConxbAKpIS3cSsKxZg92RLSZfKKf5KV7h/sSuqcJypzimh/d7KlnRmy9FCtyuj7VsapzllHtjFFktzQtnAV0BzT99SHRuN9/ki/3TaP0Bje6v9BIU8ulKrbL4QtzaIrlpYJqUTDAzT5lF/sjK+Rbkkk++6o5Pr7Yrj+u5OROJJ4hhv9P6kugMCzH/o0PwoUU2WV4ei80afs/Uz9QLVElP02lazZvYjGKsQcva65Hw5V0oA55xa7EjemyMkYkGIbI1JeYh6Hl5XpNErULPDiCvezm06snytzx/DaIr3hBY3ALn3CkLfnfLZ97FVcxBMuwt9B+ZJbFLUBLen3Wk/wr9zYEgQ5Pxa7wun5DtVxzIQeWXiAAqWBKqPdrUeI5v4zI+mLfIIapDb9JOI/5/H0iX82g1odfbGu3ZsMcny4G+5pI0SfYXX2mdcMCmEKsRQiQ+zuklKNSiRfaGivX6gk/DE0FJqmDZvfRoCqmLGB0jm0HplXZmBeFF+AC3fod5iFW/gQaSKfOclhnSIYWrilUYAuzguiuxHny+kvEu2B/ywetJX4kdR4+eDXvRUz7iBvSdSQ1SeKVW4nsHkPQmod27tjoEo17kqbzOAsiPtDCd1VofdUShoSPoWa1/FwTcr1DFGSNuyVQUqrF431SQo6Scg8locD
  • Ironport-sdr: t5LnqKLx8+u1jZYMjHOZQMB6R5kvIhVG474lr/fgqAQkH/C0tBXYl4J5yHfjT6dHPH36Y15xKQ 6QQd4Pll22Ew==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Copied as is from the official musl git mirror
git://git.musl-libc.org/musl, commit 6fcb440d.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 musl-imported/include/mntent.h | 43 ++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 musl-imported/include/mntent.h

diff --git a/musl-imported/include/mntent.h b/musl-imported/include/mntent.h
new file mode 100644
index 0000000..3492a1d
--- /dev/null
+++ b/musl-imported/include/mntent.h
@@ -0,0 +1,43 @@
+#ifndef _MNTENT_H
+#define _MNTENT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define __NEED_FILE
+#include <bits/alltypes.h>
+
+#define MOUNTED "/etc/mtab"
+
+#define MNTTYPE_IGNORE "ignore"
+#define MNTTYPE_NFS    "nfs"
+#define MNTTYPE_SWAP   "swap"
+#define MNTOPT_DEFAULTS        "defaults"
+#define MNTOPT_RO      "ro"
+#define MNTOPT_RW      "rw"
+#define MNTOPT_SUID    "suid"
+#define MNTOPT_NOSUID  "nosuid"
+#define MNTOPT_NOAUTO  "noauto"
+
+struct mntent {
+       char *mnt_fsname;
+       char *mnt_dir;
+       char *mnt_type;
+       char *mnt_opts;
+       int mnt_freq;
+       int mnt_passno;
+};
+
+FILE *setmntent(const char *, const char *);
+int endmntent(FILE *);
+struct mntent *getmntent(FILE *);
+struct mntent *getmntent_r(FILE *, struct mntent *, char *, int);
+int addmntent(FILE *, const struct mntent *);
+char *hasmntopt(const struct mntent *, const char *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.