Skip to content

Commit

Permalink
Lets try defining the functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 committed Jan 7, 2025
1 parent e815a28 commit f4f57f4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/getrandom-fallbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@
test will not work. */
#if defined HAVE_ARC4RANDOM_BUF || !defined HAVE_LD_WRAP

extern int __wrap_open (const char *path, int flags, mode_t mode);
extern int __wrap_close (int fd);

int
__wrap_open (ARG_UNUSED (const char *path),

Check warning on line 36 in test/getrandom-fallbacks.c

View check run for this annotation

Codecov / codecov/patch

test/getrandom-fallbacks.c#L36

Added line #L36 was not covered by tests
ARG_UNUSED (int flags),
ARG_UNUSED (mode_t mode))
{
return -1;

Check warning on line 40 in test/getrandom-fallbacks.c

View check run for this annotation

Codecov / codecov/patch

test/getrandom-fallbacks.c#L40

Added line #L40 was not covered by tests
}

int
__wrap_close (ARG_UNUSED (int fd))

Check warning on line 44 in test/getrandom-fallbacks.c

View check run for this annotation

Codecov / codecov/patch

test/getrandom-fallbacks.c#L44

Added line #L44 was not covered by tests
{
return -1;

Check warning on line 46 in test/getrandom-fallbacks.c

View check run for this annotation

Codecov / codecov/patch

test/getrandom-fallbacks.c#L46

Added line #L46 was not covered by tests
}

int
main (void)
{
Expand Down

0 comments on commit f4f57f4

Please sign in to comment.