@@ -3,7 +3,7 @@ new file mode 100644
33index 0000000..d447895
44--- /dev/null
55+++ b/cbits/symbols.c
6- @@ -0,0 +1,319 @@
6+ @@ -0,0 +1,327 @@
77+ #define BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD
88+ #include <stddef.h>
99+ #include <stdio.h>
@@ -69,6 +69,9 @@ index 0000000..d447895
6969+ extern void __subtf3(void);
7070+ extern void __trunctfdf2(void);
7171+
72+ + extern void flock(void);
73+ + extern void times(void);
74+ +
7275+ #define MISSING_FUN(f) void (f)(void) { printf("Unknown call to `%s'\n", #f); exit(1); }
7376+
7477+ MISSING_FUN(c_format_unix_time)
@@ -174,6 +177,7 @@ index 0000000..d447895
174177+ SYM(stdout),
175178+ SYM(strftime),
176179+ SYM(utimes),
180+ + SYM(times),
177181+ SYM(setenv),
178182+ SYM(fpathconf),
179183+ SYM(exit),
@@ -231,6 +235,7 @@ index 0000000..d447895
231235+ SYM(openat),SYM(__open_2),
232236+ // string.h
233237+ SYM(strerror),
238+ + SYM(strerror_r),
234239+ SYM(strcmp),
235240+ SYM(memchr),SYM(strcpy),SYM(strchr),SYM(strncpy),SYM(strrchr),
236241+ SYM(strcat),SYM(strncmp),SYM(strdup),
@@ -267,6 +272,7 @@ index 0000000..d447895
267272+ SYM(fprintf),
268273+ SYM(vfprintf),
269274+ SYM(fopen), SYM(fclose),
275+ + SYM(flock),
270276+ SYM(getegid),SYM(getgid),
271277+ SYM(getpwent),
272278+ SYM(getgrent),
@@ -284,6 +290,7 @@ index 0000000..d447895
284290+ SYM(ferror),
285291+ SYM(fflush),
286292+ SYM(fgets),SYM(fputc),SYM(fputs),
293+ + SYM(puts),
287294+ SYM(fseek),SYM(ftell),
288295+ SYM(sscanf),
289296+ SYM(shutdown),
@@ -317,6 +324,7 @@ index 0000000..d447895
317324+ SYM(__multf3),
318325+ SYM(__subtf3),
319326+ SYM(__trunctfdf2),
327+ + SYM(getrusage),
320328+ { 0, 0, STRENGTH_NORMAL, 1 } /* sentinel */
321329+ };
322330+
0 commit comments