Lines 5-12
Link Here
|
5 |
* Copyright (C) 2008-2011, Robert Luberda <robert@debian.org> |
5 |
* Copyright (C) 2008-2011, Robert Luberda <robert@debian.org> |
6 |
* |
6 |
* |
7 |
*/ |
7 |
*/ |
8 |
#define _GNU_SOURCE |
|
|
9 |
|
10 |
#include <sys/file.h> |
8 |
#include <sys/file.h> |
11 |
#include <sys/stat.h> |
9 |
#include <sys/stat.h> |
12 |
#include <fcntl.h> |
10 |
#include <fcntl.h> |
Lines 17-23
Link Here
|
17 |
#include <features.h> |
15 |
#include <features.h> |
18 |
#include <unistd.h> |
16 |
#include <unistd.h> |
19 |
#include <time.h> |
17 |
#include <time.h> |
20 |
#include <sys/time.h> |
18 |
#include <sys/types.h> |
21 |
|
19 |
|
22 |
static int fudge = 0; |
20 |
static int fudge = 0; |
23 |
static int dostatic = 0; |
21 |
static int dostatic = 0; |
Lines 62-69
time_t time(time_t *x) {
Link Here
|
62 |
|
60 |
|
63 |
#endif |
61 |
#endif |
64 |
|
62 |
|
65 |
int __gettimeofday(struct timeval *x, struct timezone *y) { |
63 |
int __gettimeofday(struct timeval *x, void *y) { |
66 |
static int (*libc_gettimeofday)(struct timeval *, struct timezone *) = NULL; |
64 |
static int (*libc_gettimeofday)(struct timeval *, void *) = NULL; |
67 |
int res; |
65 |
int res; |
68 |
|
66 |
|
69 |
if(!libc_gettimeofday) |
67 |
if(!libc_gettimeofday) |
Lines 74-80
int __gettimeofday(struct timeval *x, struct timezone *y) {
Link Here
|
74 |
return 0; |
72 |
return 0; |
75 |
} |
73 |
} |
76 |
|
74 |
|
77 |
int gettimeofday(struct timeval *x, struct timezone *y) { |
75 |
int gettimeofday(struct timeval *x, void *y) { |
78 |
return __gettimeofday(x,y); |
76 |
return __gettimeofday(x,y); |
79 |
} |
77 |
} |
80 |
|
78 |
|