mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
added RISC OS module loading support
This commit is contained in:
parent
20c99d180a
commit
7dac918b6d
19 changed files with 395 additions and 133 deletions
|
@ -1,3 +1,16 @@
|
|||
2002-10-31 Stefan Bellon <sbellon@sbellon.de>
|
||||
|
||||
* compress.c (init_compress) [__riscos__]: Use
|
||||
riscos_load_module() to load ZLib module.
|
||||
|
||||
* g10.c (main) [__riscos__]: Renames due to changes in riscos.c
|
||||
(e.g. prefixes all RISC OS specific functions with riscos_*).
|
||||
* photoid.c (show_photos) [__riscos__]: Likewise.
|
||||
* signal.c (got_fatal_signal) [__riscos__]: Likewise.
|
||||
|
||||
* trustdb.c (check_regexp) [__riscos__]: Branch to RISC OS RegEx
|
||||
handling.
|
||||
|
||||
2002-10-31 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* build-packet.c (do_plaintext), encode.c (encode_sesskey,
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <zlib.h>
|
||||
#ifdef __riscos__
|
||||
# include "zlib-riscos.h"
|
||||
#endif
|
||||
|
||||
#include "util.h"
|
||||
#include "memory.h"
|
||||
|
@ -34,13 +37,19 @@
|
|||
#include "main.h"
|
||||
#include "options.h"
|
||||
|
||||
|
||||
static void
|
||||
init_compress( compress_filter_context_t *zfx, z_stream *zs )
|
||||
{
|
||||
int rc;
|
||||
int level;
|
||||
|
||||
#ifdef __riscos__
|
||||
static int zlib_initialized = 0;
|
||||
|
||||
if (!zlib_initialized)
|
||||
zlib_initialized = riscos_load_module("ZLib", zlib_path, 1);
|
||||
#endif
|
||||
|
||||
if( opt.compress >= 0 && opt.compress <= 9 )
|
||||
level = opt.compress;
|
||||
else if( opt.compress == -1 )
|
||||
|
|
18
g10/g10.c
18
g10/g10.c
|
@ -1349,7 +1349,7 @@ main( int argc, char **argv )
|
|||
opt.use_agent = 1;
|
||||
#else /* __riscos__ */
|
||||
opt.use_agent = 0;
|
||||
not_implemented("use-agent");
|
||||
riscos_not_implemented("use-agent");
|
||||
#endif /* __riscos__ */
|
||||
break;
|
||||
case oNoUseAgent: opt.use_agent = 0; break;
|
||||
|
@ -1365,7 +1365,7 @@ main( int argc, char **argv )
|
|||
break;
|
||||
#ifdef __riscos__
|
||||
case oStatusFile:
|
||||
set_status_fd( iobuf_translate_file_handle ( fdopenfile (pargs.r.ret_str, 1), 1) );
|
||||
set_status_fd( iobuf_translate_file_handle ( riscos_fdopenfile (pargs.r.ret_str, 1), 1) );
|
||||
break;
|
||||
#endif /* __riscos__ */
|
||||
case oAttributeFD:
|
||||
|
@ -1373,7 +1373,7 @@ main( int argc, char **argv )
|
|||
break;
|
||||
#ifdef __riscos__
|
||||
case oAttributeFile:
|
||||
set_attrib_fd(iobuf_translate_file_handle ( fdopenfile (pargs.r.ret_str, 1), 1) );
|
||||
set_attrib_fd(iobuf_translate_file_handle ( riscos_fdopenfile (pargs.r.ret_str, 1), 1) );
|
||||
break;
|
||||
#endif /* __riscos__ */
|
||||
case oLoggerFD:
|
||||
|
@ -1383,7 +1383,7 @@ main( int argc, char **argv )
|
|||
#ifdef __riscos__
|
||||
case oLoggerFile:
|
||||
log_set_logfile( NULL,
|
||||
iobuf_translate_file_handle ( fdopenfile (pargs.r.ret_str, 1), 1) );
|
||||
iobuf_translate_file_handle ( riscos_fdopenfile (pargs.r.ret_str, 1), 1) );
|
||||
break;
|
||||
#endif /* __riscos__ */
|
||||
case oWithFingerprint:
|
||||
|
@ -1449,7 +1449,7 @@ main( int argc, char **argv )
|
|||
pargs.r.ret_str);
|
||||
#endif
|
||||
#else /* __riscos__ */
|
||||
not_implemented("load-extension");
|
||||
riscos_not_implemented("load-extension");
|
||||
#endif /* __riscos__ */
|
||||
break;
|
||||
case oRFC1991:
|
||||
|
@ -1497,7 +1497,7 @@ main( int argc, char **argv )
|
|||
log_error("shared memory coprocessing is not available\n");
|
||||
# endif
|
||||
#else /* __riscos__ */
|
||||
not_implemented("run-as-shm-coprocess");
|
||||
riscos_not_implemented("run-as-shm-coprocess");
|
||||
#endif /* __riscos__ */
|
||||
break;
|
||||
case oSetFilename: opt.set_filename = pargs.r.ret_str; break;
|
||||
|
@ -1556,7 +1556,7 @@ main( int argc, char **argv )
|
|||
break;
|
||||
#ifdef __riscos__
|
||||
case oPasswdFile:
|
||||
pwfd = iobuf_translate_file_handle ( fdopenfile (pargs.r.ret_str, 0), 0);
|
||||
pwfd = iobuf_translate_file_handle ( riscos_fdopenfile (pargs.r.ret_str, 0), 0);
|
||||
break;
|
||||
#endif /* __riscos__ */
|
||||
case oCommandFD:
|
||||
|
@ -1564,7 +1564,7 @@ main( int argc, char **argv )
|
|||
break;
|
||||
#ifdef __riscos__
|
||||
case oCommandFile:
|
||||
opt.command_fd = iobuf_translate_file_handle ( fdopenfile (pargs.r.ret_str, 0), 0);
|
||||
opt.command_fd = iobuf_translate_file_handle ( riscos_fdopenfile (pargs.r.ret_str, 0), 0);
|
||||
break;
|
||||
#endif /* __riscos__ */
|
||||
case oCipherAlgo: def_cipher_string = m_strdup(pargs.r.ret_str); break;
|
||||
|
@ -1587,7 +1587,7 @@ main( int argc, char **argv )
|
|||
#ifndef __riscos__
|
||||
opt.lock_once = 0;
|
||||
#else /* __riscos__ */
|
||||
not_implemented("lock-multiple");
|
||||
riscos_not_implemented("lock-multiple");
|
||||
#endif /* __riscos__ */
|
||||
break;
|
||||
case oKeyServer:
|
||||
|
|
|
@ -306,8 +306,8 @@ void show_photos(const struct user_attribute *attrs,
|
|||
}
|
||||
|
||||
#ifdef __riscos__
|
||||
riscos_set_filetype(spawn->tempfile_in,
|
||||
image_type_to_string(args.imagetype,2));
|
||||
riscos_set_filetype_by_mimetype(spawn->tempfile_in,
|
||||
image_type_to_string(args.imagetype,2));
|
||||
#endif
|
||||
|
||||
m_free(name);
|
||||
|
|
|
@ -100,7 +100,7 @@ got_fatal_signal( int sig )
|
|||
init_one_signal (sig, SIG_DFL, 0);
|
||||
remove_lockfiles ();
|
||||
#ifdef __riscos__
|
||||
close_fds ();
|
||||
riscos_close_fds ();
|
||||
#endif /* __riscos__ */
|
||||
raise( sig );
|
||||
}
|
||||
|
|
|
@ -1331,6 +1331,8 @@ check_regexp(const char *exp,const char *string)
|
|||
/* When DISABLE_REGEXP is defined, assume all regexps do not
|
||||
match. */
|
||||
return 0;
|
||||
#elif defined(__riscos__)
|
||||
return riscos_check_regexp(exp, string, DBG_TRUST);
|
||||
#else
|
||||
int ret;
|
||||
regex_t pat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue