Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion namespaces/nsenter/nsenter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
//
// formated with indent -linux nsenter.c

#define _GNU_SOURCE
#include <sched.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/limits.h>
Expand All @@ -18,7 +22,7 @@

#define pr_perror(fmt, ...) fprintf(stderr, "nsenter: " fmt ": %m\n", ##__VA_ARGS__)

static const kBufSize = 256;
static const int kBufSize = 256;
static const char *kNsEnter = "nsenter";

void get_args(int *argc, char ***argv)
Expand Down
3 changes: 2 additions & 1 deletion namespaces/nsenter/nsenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
package nsenter

/*
__attribute__((constructor)) init() {
void nsenter();
__attribute__((constructor)) int init() {
nsenter();
}
*/
Expand Down