This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can we use -ansi with -D_POSIX_SOURCE?


# gcc x.c -D_POSIX_SOURCE -ansi
# a.out
1000000: 100

How do we fix it? It is quite confusing. We define CLK_TCK to different
values in /usr/include/time.h and /usr/include/bits/time.h.


-- 
H.J. Lu (hjl@gnu.org)
---
#include <time.h>
#include <unistd.h>

main ()
{
  printf ("%ld: %ld\n", CLK_TCK, sysconf(_SC_CLK_TCK));
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]