Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
8e367322
Commit
8e367322
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Libc] add definitions for parsing LAVA-M's base64
parent
87f3dca1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
share/libc/fcntl.h
+4
-0
4 additions, 0 deletions
share/libc/fcntl.h
share/libc/sys/stat.h
+8
-0
8 additions, 0 deletions
share/libc/sys/stat.h
share/libc/unistd.h
+2
-0
2 additions, 0 deletions
share/libc/unistd.h
with
14 additions
and
0 deletions
share/libc/fcntl.h
+
4
−
0
View file @
8e367322
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
share/libc/sys/stat.h
+
8
−
0
View file @
8e367322
...
@@ -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
This diff is collapsed.
Click to expand it.
share/libc/unistd.h
+
2
−
0
View file @
8e367322
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment