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
051bbe2c
Commit
051bbe2c
authored
5 months ago
by
Basile Desloges
Committed by
Andre Maroneze
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[libc] Add euidaccess and faccessat
parent
ed56ff76
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/libc/unistd.h
+29
-0
29 additions, 0 deletions
share/libc/unistd.h
with
29 additions
and
0 deletions
share/libc/unistd.h
+
29
−
0
View file @
051bbe2c
...
...
@@ -37,6 +37,7 @@ __PUSH_FC_STDLIB
#include
"__fc_define_useconds_t.h"
#include
"__fc_define_intptr_t.h"
#include
"__fc_define_fds.h"
#include
"fcntl.h"
#include
"limits.h"
#ifndef __FC_POSIX_VERSION
...
...
@@ -737,6 +738,34 @@ enum __fc_confstr_name
*/
extern
int
access
(
const
char
*
path
,
int
amode
);
/*@ // missing: may assign to errno: EACCES, ELOOP, ENAMETOOLONG, ENOENT,
// ENOTDIR, EROFS, ETXTBSY
// (EINVAL prevented by precondition)
// missing: assigns \result \from 'filesystem, permissions'
requires valid_string_path: valid_read_string(path);
requires valid_amode: (amode & ~(R_OK | W_OK | X_OK)) == 0 ||
amode == F_OK;
assigns \result \from indirect:path, indirect:path[0..], indirect:amode;
ensures result_ok_or_error: \result == 0 || \result == -1;
*/
extern
int
euidaccess
(
const
char
*
path
,
int
amode
);
/*@ // missing: may assign to errno: EACCES, ELOOP, ENAMETOOLONG, ENOENT,
// ENOTDIR, EROFS, ETXTBSY
// (EINVAL prevented by precondition)
// missing: assigns \result \from 'filesystem, permissions'
requires valid_fd: fd == AT_FDCWD || 0 <= fd < __FC_MAX_OPEN_FILES;
requires valid_string_path: valid_read_string(path);
requires valid_amode: (amode & ~(R_OK | W_OK | X_OK)) == 0 ||
amode == F_OK;
requires valid_flag: (flag & ~AT_EACCESS) == 0 ||
flag == 0;
assigns \result \from indirect:fd, indirect:path, indirect:path[0..],
indirect:amode, indirect:flag;
ensures result_ok_or_error: \result == 0 || \result == -1;
*/
extern
int
faccessat
(
int
fd
,
const
char
*
path
,
int
amode
,
int
flag
);
extern
unsigned
int
alarm
(
unsigned
int
);
extern
int
brk
(
void
*
);
...
...
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