7666f5006c
Note that mandoc does not use anymore sqlite3 but a home made database format An important improvement has been made as well in makewhatis performance: Tests on my laptop shows makewhatis on the entire system goes from 26s to 12s
18 lines
239 B
C
18 lines
239 B
C
#include <stdio.h>
|
|
#include <time.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
struct timespec timeout;
|
|
|
|
timeout.tv_sec = 0;
|
|
timeout.tv_nsec = 100000000; /* 0.1 seconds */
|
|
|
|
if (nanosleep(&timeout, NULL)) {
|
|
perror("nanosleep");
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|