#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "epicsAssert.h"
#include "osiUnistd.h"
#include "epicsGetopt.h"
#include "udpiiu.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
#define CAN_DETACH_STDINOUT |
#define epicsAssertAuthor "Jeff Hill johill@lanl.gov" |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 56 of file caRepeater.cpp.
58 bool detachinout =
true;
61 while ((opt =
getopt(argc, argv,
"hv")) != -1) {
65 fprintf(
stderr,
"\nUnknown argument '%c'\n", opt);
76 #ifdef CAN_DETACH_STDINOUT 78 int readfd = open(
"/dev/null", O_RDONLY);
79 int writefd = open(
"/dev/null", O_WRONLY);
int getopt(int nargc, char *const *nargv, const char *ostr)