version 1.218, 2014/04/04 11:25:37
|
version 1.219, 2014/10/10 14:54:29
|
Line 47
|
Line 47
|
#include <pty.h> |
#include <pty.h> |
#include <sys/statfs.h> |
#include <sys/statfs.h> |
#include <mqueue.h> |
#include <mqueue.h> |
|
#include <ucontext.h> |
#ifdef __dietlibc__ |
#ifdef __dietlibc__ |
#include <md5.h> |
#include <md5.h> |
#include <write12.h> |
#include <write12.h> |
Line 108 extern char* strcpy2(char*a,char*b);
|
Line 109 extern char* strcpy2(char*a,char*b);
|
#define malloc(x) ({typeof(x) y=x; (y<0 || (size_t)(y)!=y ? 0 : malloc(y));}) |
#define malloc(x) ({typeof(x) y=x; (y<0 || (size_t)(y)!=y ? 0 : malloc(y));}) |
|
|
int main(int argc,char *argv[]) { |
int main(int argc,char *argv[]) { |
|
int n; |
|
struct ucontext uc; |
|
n=0; |
|
getcontext(&uc); |
|
puts("getcontext returned"); |
|
if (n==0) { |
|
++n; |
|
setcontext(&uc); |
|
puts("should not get here"); |
|
exit(1); |
|
} |
|
puts("all ok"); |
|
return 0; |
#if 0 |
#if 0 |
char* a=malloc(-3); |
char* a=malloc(-3); |
char* b=malloc(0xffffffffull+1); |
char* b=malloc(0xffffffffull+1); |
printf("%p %p\n",a,b); |
printf("%p %p\n",a,b); |
#endif |
#endif |
|
#if 0 |
printf("%u\n",getpagesize()); |
printf("%u\n",getpagesize()); |
|
#endif |
#if 0 |
#if 0 |
struct stat s; |
struct stat s; |
time_t t=time(0); |
time_t t=time(0); |