Skip to content
Snippets Groups Projects
Commit 8e367322 authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[Libc] add definitions for parsing LAVA-M's base64

parent 87f3dca1
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,10 @@ __PUSH_FC_STDLIB ...@@ -93,6 +93,10 @@ __PUSH_FC_STDLIB
#define POSIX_FADV_SEQUENTIAL 2 #define POSIX_FADV_SEQUENTIAL 2
#define POSIX_FADV_WILLNEED 3 #define POSIX_FADV_WILLNEED 3
// Non-POSIX, but used in some code
#define O_BINARY 0
#define O_TEXT 0
__BEGIN_DECLS __BEGIN_DECLS
struct flock struct flock
......
...@@ -30,8 +30,11 @@ __BEGIN_DECLS ...@@ -30,8 +30,11 @@ __BEGIN_DECLS
#include "../__fc_string_axiomatic.h" #include "../__fc_string_axiomatic.h"
extern int chmod(const char *, mode_t); extern int chmod(const char *, mode_t);
extern int fchmodat(int fd, const char *path, mode_t mode, int flag);
extern int fchmod(int, mode_t); extern int fchmod(int, mode_t);
extern int fstat(int, struct stat *); extern int fstat(int, struct stat *);
extern int fstatat(int fd, const char *restrict path,
struct stat *restrict buf, int flag);
/*@ // missing: may assign to errno: EACCES, ELOOP, ENAMETOOLONG, /*@ // missing: may assign to errno: EACCES, ELOOP, ENAMETOOLONG,
// ENOENT, ENOMEM, ENOTDIR, EOVERFLOW, // ENOENT, ENOMEM, ENOTDIR, EOVERFLOW,
...@@ -96,6 +99,11 @@ extern int stat(const char *pathname, struct stat *buf); ...@@ -96,6 +99,11 @@ extern int stat(const char *pathname, struct stat *buf);
*/ */
extern mode_t umask(mode_t cmask); extern mode_t umask(mode_t cmask);
#define S_TYPEISMQ(buf) ((buf)->st_mode - (buf)->st_mode)
#define S_TYPEISSEM(buf) ((buf)->st_mode - (buf)->st_mode)
#define S_TYPEISSHM(buf) ((buf)->st_mode - (buf)->st_mode)
#define S_TYPEISTMO(buf) (0)
__END_DECLS __END_DECLS
__POP_FC_STDLIB __POP_FC_STDLIB
#endif #endif
...@@ -848,6 +848,8 @@ extern int execvp(const char *path, char *const argv[]); ...@@ -848,6 +848,8 @@ extern int execvp(const char *path, char *const argv[]);
extern void _exit(int) __attribute__ ((__noreturn__)); extern void _exit(int) __attribute__ ((__noreturn__));
extern int fchown(int, uid_t, gid_t); extern int fchown(int, uid_t, gid_t);
extern int fchownat(int fd, const char *path, uid_t owner,
gid_t group, int flag);
extern int fchdir(int); extern int fchdir(int);
extern int fdatasync(int); extern int fdatasync(int);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment