mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
tidied up RISC OS specific stuff
This commit is contained in:
parent
f3c436014b
commit
53a953568e
@ -1,3 +1,10 @@
|
|||||||
|
2002-06-21 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
|
* g10.c [__riscos__]: Moved RISC OS specific stuff to util/riscos.c
|
||||||
|
and include/util.h.
|
||||||
|
|
||||||
|
* gpgv.c [__riscos__]: Likewise.
|
||||||
|
|
||||||
2002-06-20 David Shaw <dshaw@jabberwocky.com>
|
2002-06-20 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
|
* keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a
|
||||||
|
12
g10/g10.c
12
g10/g10.c
@ -28,10 +28,6 @@
|
|||||||
#ifdef HAVE_DOSISH_SYSTEM
|
#ifdef HAVE_DOSISH_SYSTEM
|
||||||
#include <fcntl.h> /* for setmode() */
|
#include <fcntl.h> /* for setmode() */
|
||||||
#endif
|
#endif
|
||||||
#ifdef __riscos__
|
|
||||||
#include <unixlib/local.h>
|
|
||||||
#include <unixlib/features.h>
|
|
||||||
#endif /* __riscos__ */
|
|
||||||
|
|
||||||
#define INCLUDED_BY_MAIN_MODULE 1
|
#define INCLUDED_BY_MAIN_MODULE 1
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
@ -600,8 +596,7 @@ 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__
|
#ifdef __riscos__
|
||||||
/* This enables better dynamic memory management on RISC OS */
|
RISCOS_GLOBAL_STATICS("GnuPG Heap")
|
||||||
const char *__dynamic_da_name = "GnuPG Heap";
|
|
||||||
#endif /* __riscos__ */
|
#endif /* __riscos__ */
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
@ -872,10 +867,9 @@ main( int argc, char **argv )
|
|||||||
#ifdef USE_SHM_COPROCESSING
|
#ifdef USE_SHM_COPROCESSING
|
||||||
ulong requested_shm_size=0;
|
ulong requested_shm_size=0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
/* set global RISC OS specific properties */
|
riscos_global_defaults();
|
||||||
__riscosify_control = __RISCOSIFY_NO_PROCESS;
|
|
||||||
__feature_imagefs_is_file = 1;
|
|
||||||
opt.lock_once = 1;
|
opt.lock_once = 1;
|
||||||
#endif /* __riscos__ */
|
#endif /* __riscos__ */
|
||||||
|
|
||||||
|
11
g10/gpgv.c
11
g10/gpgv.c
@ -28,10 +28,6 @@
|
|||||||
#ifdef HAVE_DOSISH_SYSTEM
|
#ifdef HAVE_DOSISH_SYSTEM
|
||||||
#include <fcntl.h> /* for setmode() */
|
#include <fcntl.h> /* for setmode() */
|
||||||
#endif
|
#endif
|
||||||
#ifdef __riscos__
|
|
||||||
#include <unixlib/local.h>
|
|
||||||
#include <unixlib/features.h>
|
|
||||||
#endif /* __riscos__ */
|
|
||||||
|
|
||||||
#define INCLUDED_BY_MAIN_MODULE 1
|
#define INCLUDED_BY_MAIN_MODULE 1
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
@ -83,8 +79,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||||||
int g10_errors_seen = 0;
|
int g10_errors_seen = 0;
|
||||||
|
|
||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
/* This enables better dynamic memory management on RISC OS */
|
RISCOS_GLOBAL_STATICS("GnuPG (gpgv) Heap")
|
||||||
const char *__dynamic_da_name = "GnuPG (gpgv) Heap";
|
|
||||||
#endif /* __riscos__ */
|
#endif /* __riscos__ */
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
@ -144,9 +139,9 @@ main( int argc, char **argv )
|
|||||||
STRLIST sl;
|
STRLIST sl;
|
||||||
STRLIST nrings=NULL;
|
STRLIST nrings=NULL;
|
||||||
unsigned configlineno;
|
unsigned configlineno;
|
||||||
|
|
||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
__riscosify_control = __RISCOSIFY_NO_PROCESS;
|
riscos_global_defaults();
|
||||||
__feature_imagefs_is_file = 1;
|
|
||||||
#endif /* __riscos__ */
|
#endif /* __riscos__ */
|
||||||
|
|
||||||
log_set_name("gpgv");
|
log_set_name("gpgv");
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-06-21 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
|
* util.h [__riscos__]: Further moving away of RISC OS specific
|
||||||
|
stuff from general code.
|
||||||
|
|
||||||
2002-06-20 Stefan Bellon <sbellon@sbellon.de>
|
2002-06-20 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
* util.h [__riscos__]: Added riscos_set_filetype().
|
* util.h [__riscos__]: Added riscos_set_filetype().
|
||||||
|
@ -260,6 +260,12 @@ int vasprintf ( char **result, const char *format, va_list args);
|
|||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
/* needed for strcasecmp() */
|
/* needed for strcasecmp() */
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
/* needed for filename munging */
|
||||||
|
#include <unixlib/local.h>
|
||||||
|
/* needed for image file system feature */
|
||||||
|
#include <unixlib/features.h>
|
||||||
|
void riscos_global_defaults();
|
||||||
|
#define RISCOS_GLOBAL_STATICS(a) const char *__dynamic_da_name = (a);
|
||||||
void riscos_set_filetype(const char *filename, const char *mimetype);
|
void riscos_set_filetype(const char *filename, const char *mimetype);
|
||||||
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);
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-06-21 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
|
* conf-riscos/Makefile: Changes due to moving around RISC OS
|
||||||
|
specific stuff in the code.
|
||||||
|
|
||||||
2002-06-07 Stefan Bellon <sbellon@sbellon.de>
|
2002-06-07 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
* conf-riscos/include/config.h [__riscos__]: Fixed macro bug.
|
* conf-riscos/include/config.h [__riscos__]: Fixed macro bug.
|
||||||
|
@ -181,7 +181,7 @@ GPGV_OBJS=g10.o.armor \
|
|||||||
cipher.o.rsa \
|
cipher.o.rsa \
|
||||||
mpi.mpi \
|
mpi.mpi \
|
||||||
zlib.zlib
|
zlib.zlib
|
||||||
GPGKEYS_OBJS=keyserver.o.gpgkeys_ldap \
|
GPGKEYS_OBJS=util.o.riscos \
|
||||||
util.o.strgutil \
|
util.o.strgutil \
|
||||||
util.o.memory \
|
util.o.memory \
|
||||||
util.o.logger \
|
util.o.logger \
|
||||||
@ -220,8 +220,8 @@ tools.gpgsplit: tools.o.gpgsplit util.util intl.gettext zlib.zlib
|
|||||||
-squeeze tools.gpgsplit
|
-squeeze tools.gpgsplit
|
||||||
-copy tools.gpgsplit ADFS::A5.$.tmp.!GnuPG.gpgsplit ~CF~V
|
-copy tools.gpgsplit ADFS::A5.$.tmp.!GnuPG.gpgsplit ~CF~V
|
||||||
|
|
||||||
keyserver.gpgkeys_ldap: $(GPGKEYS_OBJS) $(LIBLDAP).libraries.libldap.libldap
|
keyserver.gpgkeys_ldap: keyserver.o.gpgkeys_ldap $(GPGKEYS_OBJS) $(LIBLDAP).libraries.libldap.libldap
|
||||||
$(LINK) $(LD_FLAGS) $(GPGKEYS_OBJS) $(LIBLDAP).libraries.libldap.libldap -o keyserver.gpgkeys_ldap
|
$(LINK) $(LD_FLAGS) keyserver.o.gpgkeys_ldap $(GPGKEYS_OBJS) $(LIBLDAP).libraries.libldap.libldap -o keyserver.gpgkeys_ldap
|
||||||
-squeeze keyserver.gpgkeys_ldap
|
-squeeze keyserver.gpgkeys_ldap
|
||||||
-copy keyserver.gpgkeys_ldap ADFS::A5.$.tmp.!GnuPG.gpgkeys_ldap ~CF~V
|
-copy keyserver.gpgkeys_ldap ADFS::A5.$.tmp.!GnuPG.gpgkeys_ldap ~CF~V
|
||||||
|
|
||||||
@ -375,7 +375,7 @@ clean-g10:
|
|||||||
-ifthere g10.o.* then wipe g10.o.* ~CFR~V
|
-ifthere g10.o.* then wipe g10.o.* ~CFR~V
|
||||||
|
|
||||||
clean-keyserver:
|
clean-keyserver:
|
||||||
-ifthere keyserver.gpgkeys_ldap then wipe keyserver.gpgkeys_ldap ~CFR~V
|
-ifthere keyserver.gpgkeys_* then wipe keyserver.gpgkeys_* ~CFR~V
|
||||||
-ifthere keyserver.o.* then wipe keyserver.o.* ~CFR~V
|
-ifthere keyserver.o.* then wipe keyserver.o.* ~CFR~V
|
||||||
|
|
||||||
clean-tools:
|
clean-tools:
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2002-06-21 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
|
* riscos.c (riscos_global_defaults): New.
|
||||||
|
|
||||||
2002-06-20 Stefan Bellon <sbellon@sbellon.de>
|
2002-06-20 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
* riscos.c (riscos_set_filetype_by_number, riscos_set_filetype):
|
* riscos.c (riscos_set_filetype_by_number, riscos_set_filetype):
|
||||||
|
@ -95,6 +95,13 @@ riscos_set_filetype_by_number(const char *filename, int type)
|
|||||||
|
|
||||||
/* exported RISC OS functions */
|
/* exported RISC OS functions */
|
||||||
|
|
||||||
|
void
|
||||||
|
riscos_global_defaults()
|
||||||
|
{
|
||||||
|
__riscosify_control = __RISCOSIFY_NO_PROCESS;
|
||||||
|
__feature_imagefs_is_file = 1;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
riscos_set_filetype(const char *filename, const char *mimetype)
|
riscos_set_filetype(const char *filename, const char *mimetype)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user