Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(482)

Unified Diff: src/process-manager/libc.h

Issue 82064: add several system call emulation support for ns-3-simu (Closed)
Patch Set: Created 14 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/process-manager/libc.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/process-manager/libc.h
===================================================================
--- a/src/process-manager/libc.h
+++ b/src/process-manager/libc.h
@@ -18,6 +18,10 @@
FILE *stdin;
FILE *stdout;
FILE *stderr;
+ char *optarg;
+ int optind;
+ int opterr;
+ int optopt;
int (*vfprintf_fn) (FILE *, const char *, va_list);
int (*vsprintf_fn) (char *, const char *, va_list);
int (*vsnprintf_fn) (char *, size_t, const char *, va_list);
@@ -40,6 +44,8 @@
wctype_t (*wctype_l_fn) (__const char *__property, __locale_t __locale);
int (*fputs_fn) (const char *, FILE *);
int (*fputc_fn) (int, FILE *);
+ char* (*fgets_fn) (char *, int, FILE *);
+ int (*fgetc_fn) (FILE *);
uint32_t (*htonl_fn) (uint32_t hostlong);
uint16_t (*htons_fn) (uint16_t hostshort);
uint32_t (*ntohl_fn) (uint32_t netlong);
@@ -51,6 +57,7 @@
ssize_t (*read_fn) (int fd, void *buf, size_t count);
int (*connect_fn) (int sockfd, const struct sockaddr *serv_addr,socklen_t addrlen);
ssize_t (*write_fn) (int fd, const void *buf, size_t count);
+ ssize_t (*writev_fn) (int fd, const struct iovec *iov, int iovcnt);
int (*setsockopt_fn) (int s, int level, int optname,
const void *optval, socklen_t optlen);
int (*getsockopt_fn) (int s, int level, int optname,
@@ -88,11 +95,18 @@
int (*fflush_fn) (FILE *stream);
int (*fseek_fn)(FILE *stream, long offset, int whence);
long (*ftell_fn)(FILE *stream);
+ int (*ferror_fn)(FILE *stream);
+ int (*fcntl_fn)(int fd, int cmd);
+ void (*setbuf_fn)(FILE *stream, char *buf);
+ void (*setbuffer_fn)(FILE *stream, char *buf, size_t size);
void (*rewind_fn)(FILE *stream);
int *(*__errno_location_fn) (void);
int (*getopt_r_fn) (int argc, char * const argv[], const char *optstring,
char **poptarg, int *poptind, int *popterr, int *poptopt);
+ int (*getopt_long_r_fn) (int argc, char * const argv[], const char *optstring,
+ const struct option *longopts, int *longindex,
+ char **poptarg, int *poptind, int *popterr, int *poptopt);
pid_t (*getpid_fn) (void);
pid_t (*getppid_fn) (void);
uid_t (*getuid_fn) (void);
« no previous file with comments | « no previous file | src/process-manager/libc.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b