Skip to content

Instantly share code, notes, and snippets.

View brynet's full-sized avatar
💭
Hmm.. This isn't where I parked my CVS account.

Bryan Steele brynet

💭
Hmm.. This isn't where I parked my CVS account.
View GitHub Profile
@brynet
brynet / vmm_clock.diff
Created January 24, 2021 02:00
vmm_clock
diff --git a/vmm_clock_main.c b/vmm_clock_main.c
index cd01897..ef9c18b 100644
--- a/vmm_clock_main.c
+++ b/vmm_clock_main.c
@@ -95,7 +95,7 @@ static void vmmclock_init_mem(void)
unsigned long ncpus;
unsigned int order;
struct page *p;
- int r;
+ //int r;
@brynet
brynet / devilutionX-clang.diff
Last active June 29, 2019 06:14
devilutionX clang fixes
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 56bf70f9..884ed0e7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,7 +35,7 @@ if(NIGHTLY_BUILD)
set(FASTER ON)
endif()
-if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
+if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL OpenBSD)
@brynet
brynet / fdm-pledge.diff
Last active October 11, 2016 23:48
pledge(2) for fdm #2
diff --git a/child.c b/child.c
index b81cd42..57b0eb6 100644
--- a/child.c
+++ b/child.c
@@ -129,6 +129,35 @@ child_start(struct children *children, uid_t uid, gid_t gid,
if (geteuid() == 0)
dropto(uid, gid);
+#ifdef HAVE_PLEDGE
+ struct child_fetch_data *cfd = child->data;
@brynet
brynet / fdm-pledge.diff
Created February 18, 2016 19:37
pledge(2) for fdm
diff --git a/child.c b/child.c
index 70b915e..0c3b33b 100644
--- a/child.c
+++ b/child.c
@@ -129,6 +129,21 @@ child_start(struct children *children, uid_t uid, gid_t gid,
if (geteuid() == 0)
dropto(uid, gid);
+#ifdef HAVE_PLEDGE
+ struct child_fetch_data *cfd = child->data;