13#include "factory/factory.h"
34#include <NTL/config.h>
48#if defined(OMALLOC_USES_MALLOC)
71 global_argv0 = argv[0];
76 #if NTL_MAJOR_VERSION>=10
77 #ifdef NTL_THREAD_BOOST
84 int optc, option_index;
90 if (optc ==
'?' || optc == 0)
92 fprintf(stderr,
"Use '%s --help' for a complete list of options\n",
feArgv0);
111 fprintf(stderr,
"Error: Option '--%s' %s\n",
114 fprintf(stderr,
"Error: Option '--%s=%s' %s\n",
116 fprintf(stderr,
"Use '%s --help' for a complete list of options\n",
feArgv0);
119 if (optc ==
'h') exit(0);
122 case FE_OPT_DUMP_VERSIONTUPLE:
139" A Computer Algebra System for Polynomial Computations / version %s\n"
141" by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann \\ %s\n"
142"FB Mathematik der Universitaet, D-67653 Kaiserslautern \\\n"
143, VERSION, VERSION_DATE);
146 WarnS(
"running in restricted mode:"
147 " shell invocation and links are disallowed");
164 sprintf(
buf,
"%s.%d",(
char*)
feOptSpec[FE_OPT_LOG].value,pid);
168#ifdef SINGULAR_PYOBJECT_SETUP_H
171#ifdef SI_COUNTEDREF_AUTOLOAD
192 Warn(
"Can not open %s", argv[
i]);
233 char *linkname=(
char*)
feOptValue(FE_OPT_LINK);
234 if((linkname!=
NULL)&&(strcmp(linkname,
"ssi")==0))
242 Print(
"** missing arguments: -b requires --link/--MPhost/--MPport\n");
static const int SW_USE_NTL_SORT
set to 1 to sort factors in a factorization
VAR jmp_buf si_start_jmpbuf
VAR BOOLEAN singular_in_batchmode
void init_signals()
init signal handlers and error handling for libraries: NTL, factory
This file defines reusable classes supporting reference counted interpreter objects and initiates the...
#define MAKE_DISTRIBUTION
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
#define LONG_OPTION_RETURN
const char SHORT_OPTS_STRING[]
feOptIndex feGetOptIndex(const char *name)
const char * feSetOptValue(feOptIndex opt, char *optarg)
static void * feOptValue(feOptIndex opt)
EXTERN_VAR struct fe_option feOptSpec[]
int fe_getopt_long(int argc, char *const *argv, const char *options, const struct fe_option *long_options, int *opt_index)
#define optional_argument
char * fe_fgets_dummy(const char *, char *, int)
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
void newBuffer(char *s, feBufferTypes t, procinfo *pi, int lineno)
BOOLEAN newFile(char *fname)
Voice * feInitStdin(Voice *pp)
#define omInitGetBackTrace()
void pyobject_setup()
initialize blackbox support for pyobject; functionilty os autoloaded on demand
int status int void * buf
int ssiBatch(const char *host, const char *port)
int name
New type name for int.
EXTERN_VAR FILE * File_Log
EXTERN_VAR BOOLEAN FE_OPT_NO_SHELL_FLAG
#define omReallocSizeFunc
#define omInitRet_2_Info(argv0)