drop 'req' from gas macro, not available in binutils 2.16
[kugel-rb.git] / tools / database / database.c
blob0f9304eb0a1e03283577ced2232c234f5293c082
1 /* A _very_ skeleton file to demonstrate building tagcache db on host. */
3 #include <stdbool.h>
4 #include <stdio.h>
5 #include <sys/stat.h>
6 #include "tagcache.h"
8 int main(int argc, char **argv)
10 tagcache_init();
11 tagcache_build(".");
12 tagcache_reverse_scan();
14 return 0;
17 /* stub to avoid including all of apps/misc.c */
18 bool file_exists(const char *file)
20 struct stat s;
21 if (!stat(file, &s))
22 return true;
23 return false;
26 /* stubs to avoid including thread-sdl.c */
27 #include "kernel.h"
28 void mutex_init(struct mutex *m)
30 (void)m;
33 void mutex_lock(struct mutex *m)
35 (void)m;
38 void mutex_unlock(struct mutex *m)
40 (void)m;
43 void sim_thread_lock(void *me)
45 (void)me;
48 void * sim_thread_unlock(void)
50 return (void*)1;