mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-25 20:21:07 +01:00
RISC OS specific changes
This commit is contained in:
parent
005d2cc4a8
commit
40b599a04a
@ -1,3 +1,12 @@
|
|||||||
|
2002-06-07 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
|
* g10.c [__riscos__]: Added --attribute-file to do the same as
|
||||||
|
--attribute-fd, but with a filename not a fd as argument.
|
||||||
|
Added magic symbol for RISC OS to use different memory management.
|
||||||
|
|
||||||
|
* gpgv.c [__riscos__]: Added magic symbol for RISC OS to use
|
||||||
|
different memory management.
|
||||||
|
|
||||||
2002-06-06 David Shaw <dshaw@jabberwocky.com>
|
2002-06-06 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
|
* main.h, g10.c (main), keygen.c (build_personal_digest_list): Put
|
||||||
|
24
g10/g10.c
24
g10/g10.c
@ -148,9 +148,12 @@ enum cmd_and_opt_values { aNull = 0,
|
|||||||
oDebug,
|
oDebug,
|
||||||
oDebugAll,
|
oDebugAll,
|
||||||
oStatusFD,
|
oStatusFD,
|
||||||
oAttributeFD,
|
|
||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
oStatusFile,
|
oStatusFile,
|
||||||
|
#endif /* __riscos__ */
|
||||||
|
oAttributeFD,
|
||||||
|
#ifdef __riscos__
|
||||||
|
oAttributeFile,
|
||||||
#endif /* __riscos__ */
|
#endif /* __riscos__ */
|
||||||
oSKComments,
|
oSKComments,
|
||||||
oNoSKComments,
|
oNoSKComments,
|
||||||
@ -413,9 +416,12 @@ static ARGPARSE_OPTS opts[] = {
|
|||||||
{ oDebug, "debug" ,4|16, "@"},
|
{ oDebug, "debug" ,4|16, "@"},
|
||||||
{ oDebugAll, "debug-all" ,0, "@"},
|
{ oDebugAll, "debug-all" ,0, "@"},
|
||||||
{ oStatusFD, "status-fd" ,1, N_("|FD|write status info to this FD") },
|
{ oStatusFD, "status-fd" ,1, N_("|FD|write status info to this FD") },
|
||||||
{ oAttributeFD, "attribute-fd" ,1, "@" },
|
|
||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
{ oStatusFile, "status-file" ,2, N_("|[file]|write status info to file") },
|
{ oStatusFile, "status-file" ,2, N_("|[file]|write status info to file") },
|
||||||
|
#endif /* __riscos__ */
|
||||||
|
{ oAttributeFD, "attribute-fd" ,1, "@" },
|
||||||
|
#ifdef __riscos__
|
||||||
|
{ oAttributeFile, "attribute-file" ,2, "@" },
|
||||||
#endif /* __riscos__ */
|
#endif /* __riscos__ */
|
||||||
{ oNoSKComments, "no-comment", 0, "@"},
|
{ oNoSKComments, "no-comment", 0, "@"},
|
||||||
{ oNoSKComments, "no-sk-comments", 0, "@"},
|
{ oNoSKComments, "no-sk-comments", 0, "@"},
|
||||||
@ -590,6 +596,11 @@ static void print_mds( const char *fname, int algo );
|
|||||||
static void add_notation_data( const char *string, int which );
|
static void add_notation_data( const char *string, int which );
|
||||||
static void add_policy_url( const char *string, int which );
|
static void add_policy_url( const char *string, int which );
|
||||||
|
|
||||||
|
#ifdef __riscos__
|
||||||
|
/* This enables better dynamic memory management on RISC OS */
|
||||||
|
const char *__dynamic_da_name = "GnuPG Heap";
|
||||||
|
#endif /* __riscos__ */
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
strusage( int level )
|
strusage( int level )
|
||||||
{
|
{
|
||||||
@ -1067,12 +1078,17 @@ main( int argc, char **argv )
|
|||||||
case oStatusFD:
|
case oStatusFD:
|
||||||
set_status_fd( iobuf_translate_file_handle (pargs.r.ret_int, 1) );
|
set_status_fd( iobuf_translate_file_handle (pargs.r.ret_int, 1) );
|
||||||
break;
|
break;
|
||||||
|
#ifdef __riscos__
|
||||||
|
case oStatusFile:
|
||||||
|
set_status_fd( iobuf_translate_file_handle ( fdopenfile (pargs.r.ret_str, 1), 1) );
|
||||||
|
break;
|
||||||
|
#endif /* __riscos__ */
|
||||||
case oAttributeFD:
|
case oAttributeFD:
|
||||||
set_attrib_fd(iobuf_translate_file_handle (pargs.r.ret_int, 1));
|
set_attrib_fd(iobuf_translate_file_handle (pargs.r.ret_int, 1));
|
||||||
break;
|
break;
|
||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
case oStatusFile:
|
case oAttributeFile:
|
||||||
set_status_fd( iobuf_translate_file_handle ( fdopenfile (pargs.r.ret_str, 1), 1) );
|
set_attrib_fd(iobuf_translate_file_handle ( fdopenfile (pargs.r.ret_str, 1), 1) );
|
||||||
break;
|
break;
|
||||||
#endif /* __riscos__ */
|
#endif /* __riscos__ */
|
||||||
case oLoggerFD:
|
case oLoggerFD:
|
||||||
|
@ -81,6 +81,11 @@ static ARGPARSE_OPTS opts[] = {
|
|||||||
|
|
||||||
int g10_errors_seen = 0;
|
int g10_errors_seen = 0;
|
||||||
|
|
||||||
|
#ifdef __riscos__
|
||||||
|
/* This enables better dynamic memory management on RISC OS */
|
||||||
|
const char *__dynamic_da_name = "GnuPG (gpgv) Heap";
|
||||||
|
#endif /* __riscos__ */
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
strusage( int level )
|
strusage( int level )
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-06-07 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
|
* util.h [__riscos__]: RISC OS needs strings.h for strcasecmp()
|
||||||
|
and strncasecmp().
|
||||||
|
|
||||||
2002-05-22 Werner Koch <wk@gnupg.org>
|
2002-05-22 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* util.h: Add strncasecmp. Removed stricmp and memicmp.
|
* util.h: Add strncasecmp. Removed stricmp and memicmp.
|
||||||
|
@ -257,6 +257,8 @@ int vasprintf ( char **result, const char *format, va_list args);
|
|||||||
|
|
||||||
/******* RISC OS stuff ***********/
|
/******* RISC OS stuff ***********/
|
||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
|
/* needed for strcasecmp() */
|
||||||
|
#include <strings.h>
|
||||||
pid_t riscos_getpid(void);
|
pid_t riscos_getpid(void);
|
||||||
int riscos_kill(pid_t pid, int sig);
|
int riscos_kill(pid_t pid, int sig);
|
||||||
int riscos_access(const char *path, int amode);
|
int riscos_access(const char *path, int amode);
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2002-06-07 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
|
* conf-riscos/include/config.h [__riscos__]: Fixed macro bug.
|
||||||
|
|
||||||
2002-05-10 Stefan Bellon <sbellon@sbellon.de>
|
2002-05-10 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
* conf-riscos/include/config.h [__riscos__]: Changes for later
|
* conf-riscos/include/config.h [__riscos__]: Changes for later
|
||||||
|
@ -373,7 +373,8 @@
|
|||||||
# define __attribute__(x)
|
# define __attribute__(x)
|
||||||
# if (__CC_NORCROFT_VERSION < 544) /* old version of Norcroft */
|
# if (__CC_NORCROFT_VERSION < 544) /* old version of Norcroft */
|
||||||
# define inline __inline
|
# define inline __inline
|
||||||
# define __func__ "[" __FILE__ ":" __LINE__ "]"
|
# define STR(a) #a
|
||||||
|
# define __func__ "[" __FILE__ ":" STR(__LINE__) "]"
|
||||||
# endif
|
# endif
|
||||||
#else /* gcc */
|
#else /* gcc */
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user