Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 6d63f54
Author: Randall S. Becker <rsbecker@nexbridge.com>
Date:   Tue Aug 24 09:36:24 2021 -0500

    Merged NonStop port into 1.1.1l

    Fixes: #3

    Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
  • Loading branch information
rsbeckerca committed Dec 14, 2021
1 parent ac3cef2 commit ae066aa
Show file tree
Hide file tree
Showing 25 changed files with 542 additions and 4 deletions.
206 changes: 206 additions & 0 deletions Configurations/50-nonstop.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
#### Nonstop configurations
"nonstop-common" => {
inherit_from => [ "BASE_unix" ],
template => 1,
cc => "c99",
cflags => add_before(picker(debug => "-g -O0",
release => "-g -O2") ,"-Wextensions -Wnowarn=203,220,272,734,770,1506 -Wbuild_neutral_library"),
perl => "/usr/bin/perl",
lflags => "-lrld",
shared_target => "self",
shared_cflag => "",
shared_ldflag => "-Wshared",
shared_extension => ".so",
enable => ["egd"],
dso_scheme => "DLFCN",
},
"nonstop-nsx" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -I/usr/local/include") },
shared_cflag => sub { join(" ",@_,"-Wverbose -I/usr/local/include") },
lflags => sub { join(" ",@_,"-lfloss -Wxld='-set floattype neutral_float' -Wsystype=oss") },
shared_ldflag => sub { join(" ",@_,"-lfloss -Wxld='-export_all -set floattype neutral_float -set systype oss' -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "OPENSSL_TANDEM_FLOSS"],
disable => ["threads"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nsx_ieee" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -I/usr/local/include -WIEEE_float") },
shared_cflag => sub { join(" ",@_,"-Wverbose -I/usr/local/include -WIEEE_float") },
lflags => sub { join(" ",@_,"-lfloss -Wxld='-set floattype ieee_float' -Wsystype=oss") },
shared_ldflag => sub { join(" ",@_,"-lfloss -Wxld='-export_all -set floattype ieee_float -set systype oss' -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "OPENSSL_TANDEM_FLOSS"],
disable => ["threads"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nsx_put" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose") },
shared_cflag => sub { join(" ",@_,"-Wverbose") },
lflags => sub { join(" ",@_,"-lput") },
shared_ldflag => sub { join(" ",@_,"-Wxld='-export_all -set floattype neutral_float -set systype oss' -lput -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_REENTRANT", "_PUT_MODEL_","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","_ENABLE_FLOSS_THREADS", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nsx_64" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wlp64 -Wverbose -I/usr/local/include") },
shared_cflag => sub { join(" ",@_,"-Wlp64 -Wverbose -I/usr/local/include") },
lflags => sub { join(" ",@_,"-lfloss -Wlp64") },
shared_ldflag => sub { join(" ",@_,"-lfloss -Wxld='-export_all -set data_model lp64 -set floattype neutral_float -set systype oss' -Wlp64 -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "OPENSSL_TANDEM_FLOSS"],
disable => ["threads"],
bn_ops => "SIXTY_FOUR_BIT",
},
"nonstop-nsx_64_ieee" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wlp64 -Wverbose -WIEEE_float -I/usr/local/include") },
shared_cflag => sub { join(" ",@_,"-Wlp64 -Wverbose -WIEEE_float -I/usr/local/include") },
lflags => sub { join(" ",@_,"-L/usr/local/lib -lfloss -Wlp64") },
shared_ldflag => sub { join(" ",@_,"-L/usr/local/lib -lfloss -Wxld='-export_all -set data_model lp64 -set floattype ieee_float -set systype oss' -Wlp64 -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "OPENSSL_TANDEM_FLOSS"],
disable => ["threads"],
bn_ops => "SIXTY_FOUR_BIT",
},
"nonstop-nsx_64_put" => {
inherit_from => [ "nonstop-common" ],
shared_cflag => sub { join(" ",@_,"-Wlp64 -Wverbose -Wtarget=tns/x") },
cflags => sub { join(" ",@_,"-Wlp64 -Wverbose -Wtarget=tns/x") },
lflags => sub { join(" ",@_,"-Wxld='-set floattype neutral_float -set systype oss' -Wlp64 -lput -Wsystype=oss") },
shared_ldflag => sub { join(" ",@_,"-Wxld='-export_all -set data_model lp64'") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_REENTRANT", "_PUT_MODEL_","_TANDEM_ARCH=3","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","_ENABLE_FLOSS_THREADS","__TANDEM", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM"],
bn_ops => "SIXTY_FOUR_BIT",
},
"nonstop-nsx_spt" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/x") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/x") },
lflags => sub { join(" ",@_,"-lspt -Wextensions") },
shared_ldflag => sub { join(" ",@_,"-Wxld='-export_all -set floattype neutral_float -set systype oss' -lspt -Wextensions -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_REENTRANT", "_SPT_MODEL_","_THREAD_SUPPORT_FUNCTIONS","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nsx_spt_floss" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-I/usr/local/include -Wverbose -Wtarget=tns/x") },
shared_cflag => sub { join(" ",@_,"-I/usr/local/include -Wverbose -Wtarget=tns/x") },
lflags => sub { join(" ",@_,"-lfloss -lspt -Wextensions") },
shared_ldflag => sub { join(" ",@_,"-lfloss -Wxld='-export_all -set floattype neutral_float -set systype oss' -lspt -Wextensions -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_REENTRANT", "_SPT_MODEL_","_THREAD_SUPPORT_FUNCTIONS","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM","OPENSSL_TANDEM_FLOSS"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nsx_g" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/x") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/x") },
lflags => sub { join(" ",@_,"-Wsystype=guardian -Wxld='-set systype guardian -set floattype neutral_float'") },
shared_ldflag => sub { join(" ",@_,"-Wxld='-export_all -set floattype neutral_float -soname \$\(\@:lib%.so=%\) -set systype guardian' -Wsystype=guardian") },
#shared_extension => " ",
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "NO_GETPID"],
disable => ["threads"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nsx_g_tandem" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/x") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/x") },
lflags => sub { join(" ",@_,"-Wsystype=guardian -Wxld='-set systype guardian -set floattype tandem_float'") },
shared_ldflag => sub { join(" ",@_,"-Wxld='-export_all -set floattype tandem_float -soname \$\(\@:lib%.so=%\) -set systype guardian' -Wsystype=guardian") },
#shared_extension => " ",
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "NO_GETPID"],
disable => ["threads"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nsv" => {
inherit_from => [ "nonstop-nsx" ],
},
"nonstop-nse" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e -I/usr/local/include") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e -I/usr/local/include") },
lflags => sub { join(" ",@_,"-lfloss") },
shared_ldflag => sub { join(" ",@_,"-lfloss -Weld='-export_all -set floattype neutral_float -set systype oss' -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_TANDEM_ARCH=2","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","__TANDEM", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "OPENSSL_TANDEM_FLOSS"],
disable => ["threads"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nse_ieee" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e -I/usr/local/include -WIEEE_float") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e -I/usr/local/include -WIEEE_float") },
lflags => sub { join(" ",@_,"-lfloss") },
shared_ldflag => sub { join(" ",@_,"-lfloss -Weld='-export_all -set floattype ieee_float -set systype oss' -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_TANDEM_ARCH=2","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","__TANDEM", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "OPENSSL_TANDEM_FLOSS"],
disable => ["threads"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nse_put" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
lflags => sub { join(" ",@_,"-lput") },
shared_ldflag => sub { join(" ",@_,"-Weld='-export_all -set floattype neutral_float -set systype oss' -lput -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_REENTRANT", "_PUT_MODEL_","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","_ENABLE_FLOSS_THREADS", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nse_64" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wlp64 -Wverbose -Wtarget=tns/e") },
shared_cflag => sub { join(" ",@_,"-Wlp64 -Wverbose -Wtarget=tns/e") },
lflags => sub { join(" ",@_,"-lfloss -Wlp64") },
shared_ldflag => sub { join(" ",@_,"-lfloss -Weld='-export_all -set data_model lp64 -set floattype neutral_float -set systype oss' -Wlp64 -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "OPENSSL_TANDEM_FLOSS"],
disable => ["threads"],
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR",
},
"nonstop-nse_64_put" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wlp64 -Wverbose -Wtarget=tns/e") },
shared_cflag => sub { join(" ",@_,"-Wlp64 -Wverbose -Wtarget=tns/e") },
lflags => sub { join(" ",@_,"-lput -Wlp64") },
shared_ldflag => sub { join(" ",@_,"-Weld='-export_all -set data_model lp64 -set floattype neutral_float -set systype oss' -Wlp64 -lput -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_REENTRANT", "_PUT_MODEL_","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1","_ENABLE_FLOSS_THREADS", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM"],
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR",
},
"nonstop-nse_spt" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
lflags => sub { join(" ",@_,"-lspt -Wextensions") },
shared_ldflag => sub { join(" ",@_,"-Weld='-export_all -set floattype neutral_float -set systype oss' -lspt -Wextensions -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_REENTRANT", "_SPT_MODEL_","_THREAD_SUPPORT_FUNCTIONS","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nse_spt_floss" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
lflags => sub { join(" ",@_,"-lfloss -lspt -Wextensions") },
shared_ldflag => sub { join(" ",@_,"-lfloss -Weld='-export_all -set floattype neutral_float -set systype oss' -lspt -Wextensions -Wsystype=oss") },
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_REENTRANT", "_SPT_MODEL_","_THREAD_SUPPORT_FUNCTIONS","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "OPENSSL_TANDEM_FLOSS"],
bn_ops => "THIRTY_TWO_BIT",
},
"nonstop-nse_g" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
lflags => sub { join(" ",@_,"-Wsystype=guardian -Weld='-set systype guardian'") },
shared_ldflag => sub { join(" ",@_,"-Weld='-set systype guardian -export_all -set floattype neutral_float -soname \$\(\@:lib%.so=%\)' -Wsystype=guardian") },
#shared_extension => " ",
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "NO_GETPID"],
disable => ["threads"],
bn_ops => "THIRTY_TWO_BIT",
},

"nonstop-nse_g_tandem" => {
inherit_from => [ "nonstop-common" ],
cflags => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
shared_cflag => sub { join(" ",@_,"-Wverbose -Wtarget=tns/e") },
lflags => sub { join(" ",@_,"-Wsystype=guardian -Weld='-set systype guardian -set floattype tandem_float'") },
shared_ldflag => sub { join(" ",@_,"-Wsystype=guardian -Weld='-set systype guardian -export_all -set floattype tandem_float -soname \$\(\@:lib%.so=%\)'") },
#shared_extension => " ",
defines => ["OPENSSL_VPROC=\$(OPENSSL_VPROC)","_XOPEN_SOURCE","_XOPEN_SOURCE_EXTENDED=1", "_TANDEM_SOURCE", "B_ENDIAN", "OPENSSL_SYSNAME_TANDEM", "NO_GETPID"],
disable => ["threads"],
bn_ops => "THIRTY_TWO_BIT",
},
42 changes: 42 additions & 0 deletions NOTES.HPNS
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## Probably have to be set:
# COMP_ROOT=$(cygpath -w /path/to/comp_rooot) # must be path format for system (ie windows)
# CC=/path/to/c99 # must be executable by shell

## Optionally
# DBGFLAG="--debug"
# CIPHENABLES="enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-rc4"
# onplatform cross compile (nsx->nsi): SYSTEMLIBS="-L/E/cs3/usr/local/lib"
## VPROC
## For Itanium:
# OPENSSL_VPROC_PREFIX=T0085H06
## For X86:
# OPENSSL_VPROC_PREFIX=T0085L01
# export OPENSSL_VPROC=${OPENSSL_VPROC_PREFIX}_$(cat include/openssl/opensslv.h |\
# sed -n -e 's/^ *# *define *OPENSSL_VERSION_TEXT[^"]*"\([^"]*\)"/\1/p' |\
# sed -e 's/[. ]/_/g' -e 's/[.-]/_/g' |\
# grep -v fips \
# )

## Current Configure targets
# Guardian targets' libraries will have so-names 'ssl' and 'crypto'
./Configure nonstop-nsx --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine no-threads --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nsx_g --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine no-threads --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nsx_put --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine threads "-D_REENTRANT" --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nsx_spt --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine threads "-D_REENTRANT" --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nsx_64 --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine no-threads --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nsx_64_put --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine threads "-D_REENTRANT" --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nsx_g_tandem --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine no-threads --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}

./Configure nonstop-nse --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine no-threads --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nse_g --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine no-threads --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nse_put --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine threads "-D_REENTRANT" --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nse_spt --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine threads "-D_REENTRANT" --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nse_64 --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine no-threads --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nse_64_put --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine threads "-D_REENTRANT" --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
./Configure nonstop-nse_g_tandem --prefix=${PWD}/install --openssldir=${PWD}/install no-dynamic-engine no-threads --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}

## Build loop:
# Configure <...>
# Make
# ...
# Make install
20 changes: 20 additions & 0 deletions apps/apps.c
Original file line number Diff line number Diff line change
Expand Up @@ -2451,6 +2451,11 @@ int raw_read_stdin(void *buf, int siz)
return recv(fileno_stdin(), buf, siz, 0);
}
#else
# if defined(__TANDEM)
# if defined(OPENSSL_TANDEM_FLOSS)
# include <floss.h(floss_read)>
# endif
# endif
int raw_read_stdin(void *buf, int siz)
{
return read(fileno_stdin(), buf, siz);
Expand All @@ -2466,7 +2471,22 @@ int raw_write_stdout(const void *buf, int siz)
else
return -1;
}
#elif defined(OPENSSL_SYSNAME_TANDEM) && defined(OPENSSL_THREADS) && defined(_SPT_MODEL_)
# if defined(__TANDEM)
# if defined(OPENSSL_TANDEM_FLOSS)
# include <floss.h(floss_write)>
# endif
# endif
int raw_write_stdout(const void *buf,int siz)
{
return write(fileno(stdout),(void*)buf,siz);
}
#else
# if defined(__TANDEM)
# if defined(OPENSSL_TANDEM_FLOSS)
# include <floss.h(floss_write)>
# endif
# endif
int raw_write_stdout(const void *buf, int siz)
{
return write(fileno_stdout(), buf, siz);
Expand Down

0 comments on commit ae066aa

Please sign in to comment.