| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,12 @@ |
| 1 |
+libyesterday |
|
| 2 |
+ |
|
| 3 |
+Captures gettimeofday(), time() and clock_gettime() to simulate yesterday's date |
|
| 4 |
+ |
|
| 5 |
+Usage examples: |
|
| 6 |
+ # load date program with day set to yesterday |
|
| 7 |
+ LD_PRELOAD=/path/to/libyesterday.so /bin/date |
|
| 8 |
+ # load date program with day set to a week ago |
|
| 9 |
+ LIBYESTERDAY=$((3600*24*7)) LD_PRELOAD=/path/to/libyesterday.so /bin/date |
|
| 10 |
+ |
|
| 11 |
+Author: Dario Rodriguez antartica@whereismybit.com |
|
| 12 |
+This program is licensed under the terms of the MIT/X license. |