Diff for /dietlibc/t.c between versions 1.211 and 1.212

version 1.211, 2005/09/26 12:22:20 version 1.212, 2005/10/04 17:47:03
Line 45 Line 45
 #include <features.h>  #include <features.h>
 #include <sys/ioctl.h>  #include <sys/ioctl.h>
 #include <pty.h>  #include <pty.h>
   #include <sys/statfs.h>
   #include <mqueue.h>
 #ifdef __dietlibc__  #ifdef __dietlibc__
 #include <md5.h>  #include <md5.h>
 #include <write12.h>  #include <write12.h>
Line 104  extern char* strcpy2(char*a,char*b); Line 106  extern char* strcpy2(char*a,char*b);
      __asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx")       __asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx")
   
 int main(int argc,char *argv[]) {  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);    char* c=strndupa("fnord",3);
   puts(c);    puts(c);
   #endif
 #if 0  #if 0
   char buf[100];    char buf[100];
   __write2("foo!\n");    __write2("foo!\n");

Removed from v.1.211  
changed lines
  Added in v.1.212


LinuxTV legacy CVS <linuxtv.org/cvs>