Skip to content

Instantly share code, notes, and snippets.

View citrus-it's full-sized avatar

Andy Fiddaman citrus-it

View GitHub Profile
@citrus-it
citrus-it / braich-tests.md
Last active August 27, 2023 19:08
braich tests

OS tests

Warning: Test '/opt/os-tests/tests/ucontext.32' not added to this run because it failed verification.
Warning: Test '/opt/os-tests/tests/ucontext.64' not added to this run because it failed verification.
Warning: Test '/opt/os-tests/tests/zen_umc_test' not added to this run because it failed verification.
Test: /opt/os-tests/tests/clock_gettime.32 (run as root)          [00:00] [FAIL]
Test: /opt/os-tests/tests/clock_gettime.64 (run as root)          [00:00] [FAIL]
Test: /opt/os-tests/tests/definit/definit (run as root)           [00:00] [PASS]
Test: /opt/os-tests/tests/eventfd.32 (run as root)                [00:00] [PASS]
@citrus-it
citrus-it / pkgrepomog.md
Created February 10, 2023 15:27
Transfer pkg repo, modifying manifests on the way
% pkg contents -t depend -g packages/i386/nightly/repo.redist zones
TYPE    FMRI
require consolidation/osnet/osnet-incorporation
require pkg:/SUNWcs@0.5.11-151045.0
require pkg:/library/libtecla@1.6.0-151045.0
require pkg:/library/libxml2@2.10.3-151045.0
require pkg:/service/resource-pools@0.5.11-151045.0
require pkg:/shell/ksh93@93.21.1.20120801-151045.0
require pkg:/system/file-system/zfs@0.5.11-151045.0
@citrus-it
citrus-it / uefivars.md
Created June 10, 2022 10:15
UEFI variable setting from host
# /tmp/uefivars /zones/bhyvetest/root/etc/uefivars -l
BOOT OPTIONS
------------
Bootorder: [8, 0, 1, 2, 3, 4, 5, 6, 7]
   0  UiApp
   1  UEFI BHYVE SATA DVD ROM BHYVE-BD80-94E5-3155
   2  UEFI Misc Device
   3  UEFI Misc Device 2
   4  UEFI BHYVE SATA DISK BHYVE-0FEB-9A35-9220
@citrus-it
citrus-it / xpg.md
Created February 7, 2022 10:19
gcc xpg4/6
gcc-7 (OmniOS 151040/7.5.0-il-1) 7.5.0

*startfile_arch:
%{
    std=c1x|std=gnu1x:values-Xc.o%s values-xpg6.o%s;
    std=c11|std=gnu11:values-Xc.o%s values-xpg6.o%s;
    std=c99|std=gnu99:values-Xc.o%s values-xpg6.o%s;
    std=c9x|std=gnu9x:values-Xc.o%s values-xpg6.o%s;
 std=c++0x|std=gnu++0x:values-Xc.o%s;
@citrus-it
citrus-it / ov_14196_librename.diff
Created October 30, 2021 09:57
ov_14196_librename
diff --git a/usr/src/lib/librename/Makefile b/usr/src/lib/librename/Makefile
index 1278c6cc9d2..6ae7851aa3a 100644
--- a/usr/src/lib/librename/Makefile
+++ b/usr/src/lib/librename/Makefile
@@ -24,15 +24,14 @@ all := TARGET = all
clean := TARGET = clean
clobber := TARGET = clobber
install := TARGET = install
-lint := TARGET = lint
 export __GNUC=
 export PRIMARY_CC=gcc7,/opt/gcc-7/bin/gcc,gnu
 export PRIMARY_CCC=gcc7,/opt/gcc-7/bin/g++,gnu
-export SHADOW_CCS=gcc4,/opt/gcc-4.4.4/bin/gcc,gnu
-export SHADOW_CCCS=gcc4,/opt/gcc-4.4.4/bin/g++,gnu
+export SHADOW_CCS=gcc10,/opt/gcc-10/bin/gcc,gnu
+export SHADOW_CCCS=gcc10,/opt/gcc-10/bin/g++,gnu
reaper# zadm show test
{
   "cloud-init" : "on",
   # - sshkey can also be a path to a file, current attr limit of 256 characters is problematic
   "sshkey" : "ssh-ed25519 AAAAC3N...nl9Hqpi7j4acP8s",
   # password can be a hash or just the desired password
   "password" : "$6$SEeDRaFR$CI8Y/wfMXioIWlrtTLs75iOA4m/./1Vu78d5Plhk6N/T.yctR/s8ojMIjIhyIJB8lwYJAlQXi5GBuh4O0gjY5/",
zonename: tt
zonepath: /data/zone/tt
brand: illumos
autoboot: false
bootargs:
pool:
limitpriv: default
scheduling-class:
@citrus-it
citrus-it / locks.md
Last active December 28, 2019 20:23
pfiles locks
bloody# ./locks &
[1] 102240
    Locked (RO): 3
OFD Locked (RO): 4
    Locked (RW): 5
OFD Locked (RW): 6

diff

gcc 4

%{ansi:values-Xc.o%s}
%{!ansi:values-Xa.o%s}

illumos gcc7