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
f1a4a029
Commit
f1a4a029
authored
May 08, 2014
by
S.Çağlar Onur
Committed by
Stéphane Graber
May 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use same ifndef/define format for all headers
Signed-off-by:
S.Çağlar Onur
<
caglar@10ur.org
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
29b0b04b
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
68 additions
and
54 deletions
+68
-54
af_unix.h
src/lxc/af_unix.h
+4
-0
arguments.h
src/lxc/arguments.h
+2
-2
attach.h
src/lxc/attach.h
+2
-2
attach_options.h
src/lxc/attach_options.h
+2
-2
caps.h
src/lxc/caps.h
+2
-2
cgroup.h
src/lxc/cgroup.h
+2
-2
commands.h
src/lxc/commands.h
+2
-2
conf.h
src/lxc/conf.h
+2
-2
confile.h
src/lxc/confile.h
+3
-3
console.h
src/lxc/console.h
+5
-0
error.h
src/lxc/error.h
+2
-2
genl.h
src/lxc/genl.h
+2
-2
list.h
src/lxc/list.h
+2
-2
log.h
src/lxc/log.h
+2
-2
lxc.h
src/lxc/lxc.h
+2
-2
lxclock.h
src/lxc/lxclock.h
+2
-2
lxcseccomp.h
src/lxc/lxcseccomp.h
+2
-1
lxcutmp.h
src/lxc/lxcutmp.h
+4
-0
mainloop.h
src/lxc/mainloop.h
+2
-2
monitor.h
src/lxc/monitor.h
+2
-2
namespace.h
src/lxc/namespace.h
+2
-2
network.h
src/lxc/network.h
+2
-2
nl.h
src/lxc/nl.h
+2
-2
parse.h
src/lxc/parse.h
+2
-2
rtnl.h
src/lxc/rtnl.h
+2
-2
start.h
src/lxc/start.h
+2
-2
state.h
src/lxc/state.h
+2
-2
sync.h
src/lxc/sync.h
+2
-2
utils.h
src/lxc/utils.h
+2
-2
version.h.in
src/lxc/version.h.in
+2
-2
No files found.
src/lxc/af_unix.h
View file @
f1a4a029
...
...
@@ -21,6 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LXC_AF_UNIX_H
#define __LXC_AF_UNIX_H
extern
int
lxc_abstract_unix_open
(
const
char
*
path
,
int
type
,
int
flags
);
extern
int
lxc_abstract_unix_close
(
int
fd
);
extern
int
lxc_abstract_unix_connect
(
const
char
*
path
);
...
...
@@ -29,3 +32,4 @@ extern int lxc_abstract_unix_recv_fd(int fd, int *recvfd, void *data, size_t siz
extern
int
lxc_abstract_unix_send_credential
(
int
fd
,
void
*
data
,
size_t
size
);
extern
int
lxc_abstract_unix_rcv_credential
(
int
fd
,
void
*
data
,
size_t
size
);
#endif
src/lxc/arguments.h
View file @
f1a4a029
...
...
@@ -21,8 +21,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
arguments_h
#define __
arguments_h
#ifndef __
LXC_ARGUMENTS_H
#define __
LXC_ARGUMENTS_H
#include <getopt.h>
#include <stdint.h>
...
...
src/lxc/attach.h
View file @
f1a4a029
...
...
@@ -21,8 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _
attach_h
#define _
attach_h
#ifndef _
_LXC_ATTACH_H
#define _
_LXC_ATTACH_H
#include <sys/types.h>
#include <lxc/attach_options.h>
...
...
src/lxc/attach_options.h
View file @
f1a4a029
...
...
@@ -22,8 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _LXC_ATTACH_OPTIONS_H
#define _LXC_ATTACH_OPTIONS_H
#ifndef _
_
LXC_ATTACH_OPTIONS_H
#define _
_
LXC_ATTACH_OPTIONS_H
#include <sys/types.h>
...
...
src/lxc/caps.h
View file @
f1a4a029
...
...
@@ -22,8 +22,8 @@
*/
#include "config.h"
#ifndef _
caps_h
#define _
caps_h
#ifndef _
_LXC_CAPS_H
#define _
_LXC_CAPS_H
#if HAVE_SYS_CAPABILITY_H
extern
int
lxc_caps_reset
(
void
);
...
...
src/lxc/cgroup.h
View file @
f1a4a029
...
...
@@ -21,8 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
lxc_cgroup_h
#define __
lxc_cgroup_h
#ifndef __
LXC_CGROUP_H
#define __
LXC_CGROUP_H
#include <stdbool.h>
#include <stddef.h>
...
...
src/lxc/commands.h
View file @
f1a4a029
...
...
@@ -21,8 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
commands_h
#define __
commands_h
#ifndef __
LXC_COMMANDS_H
#define __
LXC_COMMANDS_H
#include "state.h"
...
...
src/lxc/conf.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _
conf_h
#define _
conf_h
#ifndef _
_LXC_CONF_H
#define _
_LXC_CONF_H
#include "config.h"
...
...
src/lxc/confile.h
View file @
f1a4a029
...
...
@@ -21,12 +21,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LXC_CONFILE_H
#define __LXC_CONFILE_H
#include <stdio.h>
#include <lxc/attach_options.h>
#ifndef _confile_h
#define _confile_h
struct
lxc_conf
;
struct
lxc_list
;
...
...
src/lxc/console.h
View file @
f1a4a029
...
...
@@ -21,6 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LXC_CONSOLE_H
#define __LXC_CONSOLE_H
struct
lxc_epoll_descr
;
struct
lxc_container
;
...
...
@@ -37,3 +40,5 @@ extern int lxc_console(struct lxc_container *c, int ttynum,
extern
int
lxc_console_getfd
(
struct
lxc_container
*
c
,
int
*
ttynum
,
int
*
masterfd
);
extern
int
lxc_console_set_stdfds
(
struct
lxc_handler
*
);
#endif
src/lxc/error.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
lxc_error_h
#define __
lxc_error_h
#ifndef __
LXC_ERROR_H
#define __
LXC_ERROR_H
extern
int
lxc_error_set_and_log
(
int
pid
,
int
status
);
...
...
src/lxc/genl.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
genl_h
#define __
genl_h
#ifndef __
LXC_GENL_H
#define __
LXC_GENL_H
/*
* Use this as a good size to allocate generic netlink messages
...
...
src/lxc/list.h
View file @
f1a4a029
...
...
@@ -21,8 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _
list_h
#define _
list_h
#ifndef _
_LXC_LIST_H
#define _
_LXC_LIST_H
struct
lxc_list
{
void
*
elem
;
...
...
src/lxc/log.h
View file @
f1a4a029
...
...
@@ -21,8 +21,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _
log_h
#define _
log_h
#ifndef _
_LXC_LOG_H
#define _
_LXC_LOG_H
#include "config.h"
...
...
src/lxc/lxc.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
lxc_h
#define __
lxc_h
#ifndef __
LXC_LXC_H
#define __
LXC_LXC_H
#ifdef __cplusplus
extern
"C"
{
...
...
src/lxc/lxclock.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LXCLOCK_H
#define __LXCLOCK_H
#ifndef __LXC
_LXC
LOCK_H
#define __LXC
_LXC
LOCK_H
#include <fcntl.h>
/* For O_* constants */
#include <sys/stat.h>
/* For mode constants */
...
...
src/lxc/lxcseccomp.h
View file @
f1a4a029
...
...
@@ -21,7 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _lxc_seccomp_h
#ifndef __LXC_LXCSECCOMP_H
#define __LXC_LXCSECCOMP_H
#include "conf.h"
...
...
src/lxc/lxcutmp.h
View file @
f1a4a029
...
...
@@ -21,6 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LXC_LXCUTMP_H
#define __LXC_LXCUTMP_H
#include "config.h"
struct
lxc_handler
;
...
...
@@ -28,3 +31,4 @@ struct lxc_epoll_descr;
int
lxc_utmp_mainloop_add
(
struct
lxc_epoll_descr
*
descr
,
struct
lxc_handler
*
handler
);
#endif
src/lxc/mainloop.h
View file @
f1a4a029
...
...
@@ -21,8 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _
mainloop_h
#define _
mainloop_h
#ifndef _
_LXC_MAINLOOP_H
#define _
_LXC_MAINLOOP_H
#include <stdint.h>
#include "list.h"
...
...
src/lxc/monitor.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
monitor_h
#define __
monitor_h
#ifndef __
LXC_MONITOR_H
#define __
LXC_MONITOR_H
#include <limits.h>
#include <sys/param.h>
...
...
src/lxc/namespace.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
namespace_h
#define __
namespace_h
#ifndef __
LXC_NAMESPACE_H
#define __
LXC_NAMESPACE_H
#include <sys/syscall.h>
#include <sched.h>
...
...
src/lxc/network.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _
network_h
#define _
network_h
#ifndef _
_LXC_NETWORK_H
#define _
_LXC_NETWORK_H
/*
* Convert a string mac address to a socket structure
...
...
src/lxc/nl.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
nl_h
#define __
nl_h
#ifndef __
LXC_NL_H
#define __
LXC_NL_H
/*
* Use this as a good size to allocate generic netlink messages
...
...
src/lxc/parse.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
parse_h
#define __
parse_h
#ifndef __
LXC_PARSE_H
#define __
LXC_PARSE_H
typedef
int
(
*
lxc_dir_cb
)(
const
char
*
name
,
const
char
*
directory
,
const
char
*
file
,
void
*
data
);
...
...
src/lxc/rtnl.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
genl_h
#define __
genl_h
#ifndef __
LXC_RTNL_H
#define __
LXC_RTNL_H
/*
* Use this as a good size to allocate route netlink messages
...
...
src/lxc/start.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
lxc_state_h
#define __
lxc_state_h
#ifndef __
LXC_START_H
#define __
LXC_START_H
#include <signal.h>
#include <sys/param.h>
...
...
src/lxc/state.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _
state_h
#define _
state_h
#ifndef _
_LXC_STATE_H
#define _
_LXC_STATE_H
typedef
enum
{
STOPPED
,
STARTING
,
RUNNING
,
STOPPING
,
...
...
src/lxc/sync.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __
lxc_sync_h
#define __
lxc_sync_h
#ifndef __
LXC_SYNC_H
#define __
LXC_SYNC_H
struct
lxc_handler
;
...
...
src/lxc/utils.h
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _
utils_h
#define _
utils_h
#ifndef _
_LXC_UTILS_H
#define _
_LXC_UTILS_H
#include <errno.h>
#include <stdarg.h>
...
...
src/lxc/version.h.in
View file @
f1a4a029
...
...
@@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _VERSION_H
#define _VERSION_H
#ifndef _
_LXC_
VERSION_H
#define _
_LXC_
VERSION_H
#define LXC_VERSION_MAJOR @LXC_VERSION_MAJOR@
#define LXC_VERSION_MINOR @LXC_VERSION_MINOR@
...
...
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