Skip to content

Instantly share code, notes, and snippets.

--- /usr/share/man/man1m/zfs.1m Mon Oct 15 16:15:16 2018
+++ zfs.1m Mon Oct 15 21:56:52 2018
@@ -277,6 +277,7 @@
.Op Fl m Ar memory_limit
.Ar pool script
.Op Ar arg1 No ...
+.Nm
.Cm load-key
.Op Fl rn
.Op Fl L Ar keylocation
#include <stdio.h>
#include <inttypes.h>
int
main(int argc, char **argv)
{
uint32_t x = 0x12345678;
uint8_t *p8 = (uint8_t *)&x;
__packed uint16_t *p16 = (uint16_t *)(p8 + 1);
--- include/lldb/Utility/RegularExpression.h.orig 2017-05-12 04:51:55.000000000 +0000
+++ include/lldb/Utility/RegularExpression.h
@@ -69,7 +69,7 @@ public:
void Clear() {
const size_t num_matches = m_matches.size();
- regmatch_t invalid_match = {-1, -1};
+ regmatch_t invalid_match = {NULL, NULL, -1, -1, 0, 0};
for (size_t i = 0; i < num_matches; ++i)
m_matches[i] = invalid_match;
@jasonbking
jasonbking / c.vim
Last active February 26, 2018 20:03
Additional syntax highlighting for illumos
"
" Save as ~/.vim/after/syntax/c.vim
"
" Additional illumos types
"
syn keyword cType uint_t boolean_t clockid_t
"
" boolean_t values
"
syn keyword cConstant B_TRUE B_FALSE _B_TRUE _B_FALSE
#define _REENTRANT 1
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/debug.h>
int
main(int argc, char **argv)
{