This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(kgdb) bt | |
#0 doadump (textdump=<value optimized out>) at pcpu.h:219 | |
#1 0xffffffff80959ce2 in kern_reboot (howto=260) at /usr/git/freebsd-10.3/sys/kern/kern_shutdown.c:486 | |
#2 0xffffffff8095a0c5 in vpanic (fmt=<value optimized out>, ap=<value optimized out>) at /usr/git/freebsd-10.3/sys/kern/kern_shutdown.c:889 | |
#3 0xffffffff80959f53 in panic (fmt=0x0) at /usr/git/freebsd-10.3/sys/kern/kern_shutdown.c:818 | |
#4 0xffffffff80df97eb in trap_fatal (frame=<value optimized out>, eva=<value optimized out>) at /usr/git/freebsd-10.3/sys/amd64/amd64/trap.c:858 | |
#5 0xffffffff80df9aed in trap_pfault (frame=0xfffffe044f7d1fe0, usermode=<value optimized out>) at /usr/git/freebsd-10.3/sys/amd64/amd64/trap.c:681 | |
#6 0xffffffff80df916a in trap (frame=0xfffffe044f7d1fe0) at /usr/git/freebsd-10.3/sys/amd64/amd64/trap.c:447 | |
#7 0xffffffff80ddf142 in calltrap () at /usr/git/freebsd-10.3/sys/amd64/amd64/exception.S:236 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <err.h> | |
int main(int argc, char **argv) | |
{ | |
int i,limit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rendomly trenspise vawals en tuxt by Devo Cemerun en 2014 | |
#include <stdio.h> | |
#include <stdint.h> | |
#define uc(a) (a & 0x5f) | |
#define lc(a) (a | 0x20) | |
char | |
rendamviwal(void) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use32 | |
UMB_START = 0x00100000 | |
org UMB_START | |
MB_MAGIC = 1BADB002h | |
MB_F_BOOTALIGNED = 1 | |
MB_F_MEMINFO = (1 shl 1) | |
MB_F_VIDEOTABLE = (1 shl 2) | |
MB_F_USE_MBOFFSETS = (1 shl 16) | |
MB_FLAGS = MB_F_BOOTALIGNED or MB_F_MEMINFO or \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// at - by Dave Cameron 2013 | |
// A simple timer to run a job at a specific time (in the near future) | |
// compile like: gcc -Os at.c -o at -lrt | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <errno.h> | |
#include <err.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/apps/pdfapp.c b/apps/pdfapp.c | |
index 887d823..37eed92 100644 | |
--- a/apps/pdfapp.c | |
+++ b/apps/pdfapp.c | |
@@ -1402,7 +1402,8 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta | |
int newy = app->pany + y - app->sely; | |
/* Scrolling beyond limits implies flipping pages */ | |
/* Are we requested to scroll beyond limits? */ | |
- if (newy + fz_pixmap_height(app->ctx, app->image) < app->winh || newy > 0) | |
+ /* if (newy + fz_pixmap_height(app->ctx, app->image) < app->winh || newy > 0) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
usage() { | |
echo "usage: $0 <infile> <outelf> [symname]" | |
echo "Converts binary or text file <outelf> into elf object <outelf> with constant named" | |
echo "symname defaults to infile if none is specified, with disallowed characters replaced with _" | |
echo "symname an array containing the <infile>" | |
echo "symname_length length of array <symname>" | |
echo "symname_end points to the null byte appended after <symname>" | |
} |