We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e815a28 commit f4f57f4Copy full SHA for f4f57f4
test/getrandom-fallbacks.c
@@ -29,6 +29,23 @@
29
test will not work. */
30
#if defined HAVE_ARC4RANDOM_BUF || !defined HAVE_LD_WRAP
31
32
+extern int __wrap_open (const char *path, int flags, mode_t mode);
33
+extern int __wrap_close (int fd);
34
+
35
+int
36
+__wrap_open (ARG_UNUSED (const char *path),
37
+ ARG_UNUSED (int flags),
38
+ ARG_UNUSED (mode_t mode))
39
+{
40
+ return -1;
41
+}
42
43
44
+__wrap_close (ARG_UNUSED (int fd))
45
46
47
48
49
int
50
main (void)
51
{
0 commit comments