Skip to content

Commit

Permalink
runtime.c: avoid explicit "extern C" when header files are available
Browse files Browse the repository at this point in the history
Signed-off-by: Nadav Har'El <nyh@scylladb.com>
  • Loading branch information
nyh committed Aug 1, 2017
1 parent e15edaa commit ae27453
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions runtime.cc
Expand Up @@ -58,6 +58,8 @@
#include <grp.h>
#include <unordered_map>
#include <api/sys/prctl.h>
#include <sys/wait.h>
#include <pty.h>

#define __LC_LAST 13

Expand Down Expand Up @@ -561,15 +563,13 @@ char *tmpnam_r(char *s)
return s ? tmpnam(s) : NULL;
}

extern "C"
pid_t wait3(int *status, int options, struct rusage *usage)
{
WARN_STUBBED();
errno = ECHILD;
return -1;
}

extern "C"
pid_t wait4(pid_t pid, int *status, int options, struct rusage *usage)
{
WARN_STUBBED();
Expand All @@ -591,7 +591,6 @@ int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid)
return -1;
}

extern "C"
int openpty(int *amaster, int *aslave, char *name,
const struct termios *termp,
const struct winsize *winp)
Expand All @@ -601,7 +600,6 @@ int openpty(int *amaster, int *aslave, char *name,
return -1;
}

extern "C"
pid_t forkpty(int *amaster, char *name,
const struct termios *termp,
const struct winsize *winp)
Expand Down

0 comments on commit ae27453

Please sign in to comment.