Diff for /dietlibc/t.c between versions 1.213 and 1.214

version 1.213, 2005/10/08 21:11:32 version 1.214, 2008/05/09 04:36:56
Line 105  extern char* strcpy2(char*a,char*b); Line 105  extern char* strcpy2(char*a,char*b);
 #define rdtscl(low) \  #define rdtscl(low) \
      __asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx")       __asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx")
   
   #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[]) {
     char* a=malloc(-3);
     char* b=malloc(0xffffffffull+1);
     printf("%p %p\n",a,b);
   #if 0
   struct stat s;    struct stat s;
   time_t t=time(0);    time_t t=time(0);
   struct tm* T;    struct tm* T;
   stat("/tmp/nyt.html",&s);    stat("/tmp/nyt.html",&s);
   T=gmtime(&s.st_mtime);    T=gmtime(&s.st_mtime);
   #endif
 #if 0  #if 0
   static struct mq_attr x;    static struct mq_attr x;
   mqd_t a=mq_open("fnord",O_WRONLY|O_CREAT,0600,&x);    mqd_t a=mq_open("fnord",O_WRONLY|O_CREAT,0600,&x);

Removed from v.1.213  
changed lines
  Added in v.1.214


LinuxTV legacy CVS <linuxtv.org/cvs>