VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
advttyd.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <stdarg.h>
#include <ctype.h>
#include <dirent.h>
#include <syslog.h>
#include "proc_tools.h"
#include "advttyd.h"

Data Structures

struct  _TTYINFO
 

Macros

#define _safe_strcpy(DEST, SRC)
 

Typedefs

typedef struct _TTYINFO TTYINFO
 

Functions

void __close_stdfd (void)
 
void usage (char *cmd)
 
int setup_options (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Variables

int __log_fd = -1
 
int _restart
 

Macro Definition Documentation

◆ _safe_strcpy

#define _safe_strcpy ( DEST,
SRC )
Value:
snprintf(DEST, sizeof(DEST), "%s", SRC)

Typedef Documentation

◆ TTYINFO

typedef struct _TTYINFO TTYINFO

Function Documentation

◆ __close_stdfd()

void __close_stdfd ( void )

◆ main()

int main ( int argc,
char * argv[] )

◆ setup_options()

int setup_options ( int argc,
char * argv[] )

◆ usage()

void usage ( char * cmd)

Variable Documentation

◆ __log_fd

int __log_fd = -1

◆ _restart

int _restart