Skip to content

Instantly share code, notes, and snippets.

@unxmaal
unxmaal / keybase.md
Created January 31, 2020 19:02
keybase.md

Keybase proof

I hereby claim:

  • I am unxmaal on github.
  • I am unxmaal (https://keybase.io/unxmaal) on keybase.
  • I have a public key ASA6c6MCpCO6zfdTODOWrhnwYUBT2UQehq7mFG_lU0tJkgo

To claim this, I am signing this object:

;; Disabled when `enforce-retry?' is #f:
;; Warn clients: when a (non-blocking) write fails to write all the
;; data, the stream is actually committed to writing the given data
;; in the future. (This requirement comes from the SSL library.)
;; Another warning: data that is written and not buffered may still be
;; in flight between Racket and the underlying ports. A `flush-output'
;; won't return until sent data is actually in the underlying port.
;; (This is due to the fact that unbuffered data cannot be written
;; Disabled when `enforce-retry?' is #f:
;; Warn clients: when a (non-blocking) write fails to write all the
;; data, the stream is actually committed to writing the given data
;; in the future. (This requirement comes from the SSL library.)
;; Another warning: data that is written and not buffered may still be
;; in flight between Racket and the underlying ports. A `flush-output'
;; won't return until sent data is actually in the underlying port.
;; (This is due to the fact that unbuffered data cannot be written
@unxmaal
unxmaal / rktio_envvars.c
Last active January 25, 2020 18:51
Racket
#include "rktio.h"
#include "rktio_private.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
struct rktio_envvars_t {
intptr_t count, size;
char **names;
/usr/didbs/0_1_9_n32_mips3_gcc/include/boost/bind/bind.hpp: In instantiation of 'struct boost::_bi::result_traits<boost::_bi::unspecified, int>$
:
/usr/didbs/0_1_9_n32_mips3_gcc/include/boost/bind/bind.hpp:1284:48: required from 'class boost::_bi::bind_t<boost::_bi::unspecified, int, boo$
t::_bi::list2<boost::_bi::value<const sockaddr*>, boost::_bi::value<int> > >'
tcpreceiver.cc:561:59: required from here
/usr/didbs/0_1_9_n32_mips3_gcc/include/boost/bind/bind.hpp:75:37: error: 'int' is not a class, struct, or union type
75 | typedef typename F::result_type type;
| ^~~~
tcpreceiver.cc: In constructor 'TCPNameserver::TCPNameserver()':
tcpreceiver.cc:561:60: error: could not convert 'boost::_bi::operator< <boost::_bi::unspecified, int, boost::_bi::list2<boost::_bi::value<const
--- .port.sh.orig 2019-09-11 20:10:41.194590400 +0000
+++ .port.sh 2019-09-26 19:03:35.215561297 +0000
@@ -9,10 +9,10 @@
. "$@"
shift
-: "${makeopts:=-j$(sysconf NPROC_ONLN)}"
+: "${makeopts=-j$(sysconf NPROC_ONLN)}"
: "${installopts:=}"
: "${compiler:=gcc}"
#!/opt/local/bin/mksh
set -eu
prefix="$HOME/.local"
[ -f ../config.sh ] && . ../config.sh
CFLAGS=
CXXFLAGS=
PKG_CONFIG_PATH=
. "$@"
shift
echo setup sgidev network build env
echo ----------------------------
hostname
# Vars
## default irix path
IRIX_PATH=/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/etc:/usr/etc:/usr/bin/X11
#------ didbs --------
# didbs gcc version
DGCC=gbs9_1
785c9cecafa459d136b58a038805002a98812628c357d7e8436e5f06523cc9af /usr/include/./ksys/pcache.h
4a733ca5a262babc77ae30f6b06e1b2d00ad369c9a95ce92d3f802ac7586b7d5 /usr/include/./ksys/vnode_pcache.h
f60c8613072bbd3ce425ca2a70ea274e6475675629aab192de7ca368cfe33364 /usr/include/./ksys/behavior.h
7870bbba5e31c139c7c700d008d36db7aaa6f694d68a99b6aacec26ce6255c94 /usr/include/./ksys/cell_config.h
2fa3fff342dcf9e60379755670b2193674144ebc08482a4f4afa2fcad8443a22 /usr/include/./ksys/ddmap.h
d2f0741101ca0e0cebd0bc08800ef0fba342acace401760c77edb24a43b5d39e /usr/include/./ksys/fsc_notify.h
5bf0ae5b7126dfe9cd1d7b4ae49392bf6d1c417fd6b4f51c1bbd0f276c87bd35 /usr/include/./ksys/kcallout.h
4d0082041e0343c12b20de2819a3290d0fc8c7bd43ad1f05ed111a39d67f7b28 /usr/include/./ksys/kqueue.h
96da7f36668599473d9e047f677b8a8c90ea6690ad9b39a4ea44c6c0301c0fae /usr/include/./ksys/oplock.h
d2a171bb235171493e2a03171dc517f4f35c5c95f2400a872ac4457810e422f4 /usr/include/./pipefs/pipeioctl.h
root@yellow /root $ g++ -v test.cc -o test.exe
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/didbs/0_1_0/gbs8_1/libexec/gcc/mips-sgi-irix6.5/8.2.0/lto-wrapper
Target: mips-sgi-irix6.5
Configured with: /usr/didbs/0_1_0_build/gbs8_1-gcc8/gcc-8.2.0/configure --prefix=/usr/didbs/0_1_0/gbs8_1 --disable-silent-rules --disable-nls --
disable-multilib --enable-obsolete --enable-languages=c,c++ --disable-bootstrap --enable-shared --enable-static --enable-threads=posix --disable
-lto --with-gmp=/usr/didbs/0_1_0 --with-mpfr=/usr/didbs/0_1_0 --with-system-zlib --enable-checking=release --with-bugurl=https://sgi.sh/
Thread model: posix
gcc version 8.2.0 20180726 (sgugver1) (GCC)