Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
3ade8167
Unverified
Commit
3ade8167
authored
May 05, 2019
by
Stéphane Graber
Committed by
GitHub
May 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2975 from brauner/2019-05-04/returns_twice
compiler: add __returns_twice attribute
parents
0854538f
633cb8be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
compiler.h
src/lxc/compiler.h
+4
-0
raw_syscalls.c
src/lxc/raw_syscalls.c
+2
-1
No files found.
src/lxc/compiler.h
View file @
3ade8167
...
...
@@ -59,6 +59,10 @@
# define __hot __attribute__((hot))
#endif
#ifndef __returns_twice
#define __returns_twice __attribute__((returns_twice))
#endif
#define __cgfsng_ops
#endif
/* __LXC_COMPILER_H */
src/lxc/raw_syscalls.c
View file @
3ade8167
...
...
@@ -9,6 +9,7 @@
#include <sys/syscall.h>
#include <unistd.h>
#include "compiler.h"
#include "config.h"
#include "macro.h"
#include "raw_syscalls.h"
...
...
@@ -32,7 +33,7 @@ int lxc_raw_execveat(int dirfd, const char *pathname, char *const argv[],
* The nice thing about this is that we get fork() behavior. That is
* lxc_raw_clone() returns 0 in the child and the child pid in the parent.
*/
pid_t
lxc_raw_clone
(
unsigned
long
flags
)
__returns_twice
pid_t
lxc_raw_clone
(
unsigned
long
flags
)
{
/*
* These flags don't interest at all so we don't jump through any hoops
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment