Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: Automatically generated function prototypes use __ARGS. Solution: Remove __ARGS from osdef.sh.
- Loading branch information
Showing
4 changed files
with
118 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,95 +2,95 @@ | |
* osdef2.h.in - See osdef1.h.in for a description. | ||
*/ | ||
|
||
extern int remove __ARGS((const char *)); | ||
extern int rename __ARGS((const char *, const char *)); | ||
extern int free __ARGS((char *)); | ||
extern char *malloc __ARGS((unsigned int)); | ||
extern char *realloc __ARGS((char *, int)); | ||
extern char *getenv __ARGS((char *)); | ||
extern int setenv __ARGS((char *, char *, int)); | ||
extern int putenv __ARGS((const char *)); | ||
extern int remove(const char *); | ||
extern int rename(const char *, const char *); | ||
extern int free(char *); | ||
extern char *malloc(unsigned int); | ||
extern char *realloc(char *, int); | ||
extern char *getenv(char *); | ||
extern int setenv(char *, char *, int); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
brammool
Author
Contributor
|
||
extern int putenv(const char *); | ||
|
||
#ifndef __TANDEM | ||
extern int gethostname __ARGS((char *, int)); | ||
extern int gethostname(char *, int); | ||
#endif | ||
extern void perror __ARGS((char *)); | ||
extern void perror(char *); | ||
|
||
#ifndef __TANDEM | ||
extern int sleep __ARGS((int)); | ||
extern int sleep(int); | ||
#endif | ||
extern int usleep __ARGS((unsigned int)); | ||
extern unsigned int alarm __ARGS((unsigned int)); | ||
extern int usleep(unsigned int); | ||
extern unsigned int alarm(unsigned int); | ||
#ifndef __TANDEM | ||
extern int chdir __ARGS((char *)); | ||
extern int chdir(char *); | ||
#endif | ||
extern int fchdir __ARGS((int)); | ||
extern int fchdir(int); | ||
#ifndef stat /* could be redefined to stat64() */ | ||
extern int stat __ARGS((const char *, struct stat *)); | ||
extern int stat(const char *, struct stat *); | ||
#endif | ||
#ifndef lstat /* could be redefined to lstat64() */ | ||
extern int lstat __ARGS((const char *, struct stat *)); | ||
extern int lstat(const char *, struct stat *); | ||
#endif | ||
extern int fstat __ARGS((int, struct stat *)); | ||
extern int open __ARGS((const char *, int, ...)); | ||
extern int close __ARGS((int)); | ||
extern int fstat(int, struct stat *); | ||
extern int open(const char *, int, ...); | ||
extern int close(int); | ||
#ifndef __TANDEM | ||
extern int read __ARGS((int, char *, size_t)); | ||
extern int write __ARGS((int, char *, size_t)); | ||
extern int read(int, char *, size_t); | ||
extern int write(int, char *, size_t); | ||
#endif | ||
extern int pipe __ARGS((int *)); | ||
extern off_t lseek __ARGS((int, off_t, int)); | ||
extern void sync __ARGS((void)); | ||
extern uid_t getuid __ARGS((void)); | ||
extern gid_t getgid __ARGS((void)); | ||
extern void qsort __ARGS((void *, size_t, size_t, int (*)(const void *, const void *))); | ||
extern int pipe(int *); | ||
extern off_t lseek(int, off_t, int); | ||
extern void sync(void); | ||
extern uid_t getuid(void); | ||
extern gid_t getgid(void); | ||
extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); | ||
|
||
extern int isatty __ARGS((int)); | ||
extern int getpid __ARGS((void)); | ||
extern int dup __ARGS((int)); | ||
extern int unlink __ARGS((const char *)); | ||
extern int link __ARGS((const char *, const char *)); | ||
extern int mkdir __ARGS((const char *, mode_t)); | ||
extern int rmdir __ARGS((const char *)); | ||
extern int isatty(int); | ||
extern int getpid(void); | ||
extern int dup(int); | ||
extern int unlink(const char *); | ||
extern int link(const char *, const char *); | ||
extern int mkdir(const char *, mode_t); | ||
extern int rmdir(const char *); | ||
|
||
extern int tgetent __ARGS((char *, char *)); | ||
extern int tgetnum __ARGS((char *)); | ||
extern int tgetflag __ARGS((char *)); | ||
extern char *tgoto __ARGS((char *, int, int)); | ||
extern int tputs __ARGS((char *, int, int (*)(int))); | ||
extern int tgetent(char *, char *); | ||
extern int tgetnum(char *); | ||
extern int tgetflag(char *); | ||
extern char *tgoto(char *, int, int); | ||
extern int tputs(char *, int, int (*)(int)); | ||
|
||
#ifdef HAVE_TERMIOS_H | ||
struct termios; /* for tcgetattr __ARGS */ | ||
extern int tcgetattr __ARGS((int, struct termios *)); | ||
extern int tcsetattr __ARGS((int, int, const struct termios *)); | ||
struct termios; /* for tcgetattr() */ | ||
extern int tcgetattr(int, struct termios *); | ||
extern int tcsetattr(int, int, const struct termios *); | ||
#endif | ||
|
||
#ifdef HAVE_SYS_STATFS_H | ||
struct statfs; /* for fstatfs __ARGS */ | ||
extern int fstatfs __ARGS((int, struct statfs *, int, int)); | ||
struct statfs; /* for fstatfs() */ | ||
extern int fstatfs(int, struct statfs *, int, int); | ||
#endif | ||
|
||
#ifdef HAVE_GETTIMEOFDAY | ||
struct timeval; /* for gettimeofday __ARGS */ | ||
struct timezone; /* for gettimeofday __ARGS */ | ||
extern int gettimeofday __ARGS((struct timeval *tp, struct timezone *tzp)); | ||
extern time_t time __ARGS((time_t *)); | ||
struct timeval; /* for gettimeofday() */ | ||
struct timezone; /* for gettimeofday() */ | ||
extern int gettimeofday(struct timeval *tp, struct timezone *tzp); | ||
extern time_t time(time_t *); | ||
#endif | ||
|
||
#ifdef HAVE_GETPWNAM | ||
struct passwd; /* for getpwnam __ARGS */ | ||
extern struct passwd *getpwnam __ARGS((const char *)); | ||
struct passwd; /* for getpwnam() */ | ||
extern struct passwd *getpwnam(const char *); | ||
#endif | ||
|
||
#ifdef USE_TMPNAM | ||
extern char *tmpnam __ARGS((char *)); | ||
extern char *tmpnam(char *); | ||
#else | ||
extern char *mktemp __ARGS((char *)); | ||
extern char *mktemp(char *); | ||
#endif | ||
|
||
#ifdef ISC | ||
extern int _Xmblen __ARGS((char const *, size_t)); | ||
extern int _Xmblen(char const *, size_t); | ||
#else | ||
/* This is different from the header but matches mblen() */ | ||
extern int _Xmblen __ARGS((char *, size_t)); | ||
extern int _Xmblen(char *, size_t); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This should be
setenv(const char *, const char *, int);
, check http://man7.org/linux/man-pages/man3/setenv.3.html