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
290033e7
Commit
290033e7
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[libc] move some macro definitions to sys/select.h
parent
f5da376c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
share/libc/__fc_define_fd_set_t.h
+0
-34
0 additions, 34 deletions
share/libc/__fc_define_fd_set_t.h
share/libc/sys/select.h
+34
-0
34 additions, 0 deletions
share/libc/sys/select.h
with
34 additions
and
34 deletions
share/libc/__fc_define_fd_set_t.h
+
0
−
34
View file @
290033e7
...
@@ -29,40 +29,6 @@ __PUSH_FC_STDLIB
...
@@ -29,40 +29,6 @@ __PUSH_FC_STDLIB
__BEGIN_DECLS
__BEGIN_DECLS
typedef
struct
__fc_fd_set
{
long
__fc_fd_set
[
FD_SETSIZE
/
NFDBITS
];
}
fd_set
;
typedef
struct
__fc_fd_set
{
long
__fc_fd_set
[
FD_SETSIZE
/
NFDBITS
];
}
fd_set
;
/*@
requires valid_fdset: \valid(fdset);
requires initialization: \initialized(fdset);
assigns *fdset \from *fdset, indirect:fd;
*/
extern
void
FD_CLR
(
int
fd
,
fd_set
*
fdset
);
#define FD_CLR FD_CLR
// Note: the 2nd argument in FD_ISSET is not const in some implementations
// due to historical and compatibility reasons.
/*@
requires valid_fdset: \valid_read(fdset);
requires initialization: \initialized(fdset);
assigns \result \from indirect:*fdset, indirect:fd;
*/
extern
int
FD_ISSET
(
int
fd
,
const
fd_set
*
fdset
);
#define FD_ISSET FD_ISSET
/*@
requires valid_fdset: \valid(fdset);
requires initialization: \initialized(fdset);
assigns *fdset \from *fdset, indirect:fd;
*/
extern
void
FD_SET
(
int
fd
,
fd_set
*
fdset
);
#define FD_SET FD_SET
/*@
requires valid_fdset: \valid(fdset);
assigns *fdset \from \nothing;
ensures initialization: \initialized(fdset);
*/
extern
void
FD_ZERO
(
fd_set
*
fdset
);
#define FD_ZERO FD_ZERO
__END_DECLS
__END_DECLS
__POP_FC_STDLIB
__POP_FC_STDLIB
#endif
#endif
This diff is collapsed.
Click to expand it.
share/libc/sys/select.h
+
34
−
0
View file @
290033e7
...
@@ -28,6 +28,40 @@ __BEGIN_DECLS
...
@@ -28,6 +28,40 @@ __BEGIN_DECLS
#include
"../__fc_select.h"
#include
"../__fc_select.h"
/*@
requires valid_fdset: \valid(fdset);
requires initialization: \initialized(fdset);
assigns *fdset \from *fdset, indirect:fd;
*/
extern
void
FD_CLR
(
int
fd
,
fd_set
*
fdset
);
#define FD_CLR FD_CLR
// Note: the 2nd argument in FD_ISSET is not const in some implementations
// due to historical and compatibility reasons.
/*@
requires valid_fdset: \valid_read(fdset);
requires initialization: \initialized(fdset);
assigns \result \from indirect:*fdset, indirect:fd;
*/
extern
int
FD_ISSET
(
int
fd
,
const
fd_set
*
fdset
);
#define FD_ISSET FD_ISSET
/*@
requires valid_fdset: \valid(fdset);
requires initialization: \initialized(fdset);
assigns *fdset \from *fdset, indirect:fd;
*/
extern
void
FD_SET
(
int
fd
,
fd_set
*
fdset
);
#define FD_SET FD_SET
/*@
requires valid_fdset: \valid(fdset);
assigns *fdset \from \nothing;
ensures initialization: \initialized(fdset);
*/
extern
void
FD_ZERO
(
fd_set
*
fdset
);
#define FD_ZERO FD_ZERO
__END_DECLS
__END_DECLS
__POP_FC_STDLIB
__POP_FC_STDLIB
#endif
#endif
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