--- dietlibc/t.c 2005/09/26 12:22:20 1.211 +++ dietlibc/t.c 2005/10/04 17:47:03 1.212 @@ -45,6 +45,8 @@ #include #include #include +#include +#include #ifdef __dietlibc__ #include #include @@ -104,8 +106,19 @@ extern char* strcpy2(char*a,char*b); __asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") int main(int argc,char *argv[]) { + static struct mq_attr x; + mqd_t a=mq_open("fnord",O_WRONLY|O_CREAT,0600,&x); + mqd_t b=mq_open("fnord",O_RDONLY); +#if 0 + struct statfs s; + if (statfs("/tmp",&s)!=-1) { + printf("%llu blocks, %llu free\n",(unsigned long long)s.f_blocks,(unsigned long long)s.f_bfree); + } +#endif +#if 0 char* c=strndupa("fnord",3); puts(c); +#endif #if 0 char buf[100]; __write2("foo!\n");