1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-04-17 15:44:34 +02:00

updated prototypes for RISC OS

This commit is contained in:
Stefan Bellon 2002-01-02 17:48:27 +00:00
parent 20d3c745a5
commit 52901c7380
2 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-01-02 Stefan Bellon <sbellon@sbellon.de>
* util.h [__riscos__]: Updated prototype list.
* types.h [__riscos__]: Changed comment wording.
2001-12-27 David Shaw <dshaw@jabberwocky.com> 2001-12-27 David Shaw <dshaw@jabberwocky.com>
* KEYSERVER_SCHEME_NOT_FOUND should be 127 to match the POSIX * KEYSERVER_SCHEME_NOT_FOUND should be 127 to match the POSIX

View File

@ -255,19 +255,28 @@ int vasprintf ( char **result, const char *format, va_list args);
/******* RISC OS stuff ***********/ /******* RISC OS stuff ***********/
#ifdef __riscos__ #ifdef __riscos__
pid_t riscos_getpid(void);
int riscos_kill(pid_t pid, int sig);
FILE *riscos_fopen(const char *filename, const char *mode); FILE *riscos_fopen(const char *filename, const char *mode);
int riscos_open(const char *filename, int oflag, ...); int riscos_open(const char *filename, int oflag, ...);
int riscos_fstat(int fildes, struct stat *buf); int riscos_fstat(int fildes, struct stat *buf);
int riscos_access(const char *path, int amode);
int fdopenfile(const char *filename, const int allow_write); int fdopenfile(const char *filename, const int allow_write);
void close_fds(void); void close_fds(void);
int renamefile(const char *old, const char *new); int renamefile(const char *old, const char *new);
char *gstrans(const char *old); char *gstrans(const char *old);
void not_implemented(const char *feature); void not_implemented(const char *feature);
void set_filetype(const char *filename, const int type); #ifdef DEBUG
void dump_fdlist(void);
void list_openfiles(void);
#endif
#ifndef __RISCOS__C__ #ifndef __RISCOS__C__
#define fopen riscos_fopen #define getpid riscos_getpid
#define kill(a,b) riscos_kill((a),(b))
#define fopen(a,b) riscos_fopen((a),(b))
#define fstat(a,b) riscos_fstat((a),(b))
#define open riscos_open #define open riscos_open
#define fstat riscos_fstat #define access(a,b) riscos_access((a),(b))
#endif /* !__RISCOS__C__ */ #endif /* !__RISCOS__C__ */
#endif /* __riscos__ */ #endif /* __riscos__ */