Cleanup kernel options a bit

This commit is contained in:
Mark
2020-08-07 12:53:58 +03:00
parent 8a21e8bf75
commit 236f4e5bf5
9 changed files with 68 additions and 38 deletions
+10 -1
View File
@@ -9,7 +9,6 @@
#define OF_MEMDIR (1 << 3)
#define OF_MEMDIR_DOT (1 << 4)
#define OF_MEMDIR_DOTDOT (1 << 5)
#define OF_SOCKET (1 << 6)
#define OF_CLOEXEC (1 << 7)
struct vfs_ioctx;
@@ -27,6 +26,16 @@ struct ofile {
};
};
#if defined(ENABLE_NET)
#define OF_SOCKET (1 << 6)
static inline int ofile_is_socket(struct ofile *of) {
return !!(of->flags & OF_SOCKET);
}
#else
#define ofile_is_socket(of) 0
#endif
struct ofile *ofile_create(void);
struct ofile *ofile_dup(struct ofile *of);
void ofile_destroy(struct ofile *of);