9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

jmp.c (224B)


      1 #include <u.h>
      2 #define NOPLAN9DEFINES
      3 #include <libc.h>
      4 
      5 void
      6 p9longjmp(p9jmp_buf buf, int val)
      7 {
      8 	siglongjmp((void*)buf, val);
      9 }
     10 
     11 void
     12 p9notejmp(void *x, p9jmp_buf buf, int val)
     13 {
     14 	USED(x);
     15 	siglongjmp((void*)buf, val);
     16 }
     17