/* Test open and openat with O_TMPFILE.
- Copyright (C) 2016-2021 Free Software Foundation, Inc.
+ Copyright (C) 2016-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
/* Return true if FD is flagged as deleted in /proc/self/fd, false if
not. */
static bool
-is_file_deteted (int fd)
+is_file_deleted (int fd)
{
char *proc_fd_path = xasprintf ("/proc/self/fd/%d", fd);
char file_path[4096];
}
/* Check that the file is marked as deleted in /proc. */
- if (!is_file_deteted (fd))
+ if (!is_file_deleted (fd))
{
printf ("error: path in /proc is not marked as deleted\n");
exit (1);