]> sourceware.org Git - glibc.git/blobdiff - io/tst-open-tmpfile.c
support: Use macros for *stat wrappers
[glibc.git] / io / tst-open-tmpfile.c
index 2c4087389441f1ee4878c7191007e483082adafe..a2e4bb90df4813bb7bcb52541bbbcf1d19048716 100644 (file)
@@ -1,5 +1,5 @@
 /* Test open and openat with O_TMPFILE.
-   Copyright (C) 2016-2019 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
@@ -14,7 +14,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 /* This test verifies that open and openat work as expected, i.e. they
    create a deleted file with the requested file mode.  */
@@ -92,7 +92,7 @@ wrap_openat64 (const char *path, int flags, mode_t mode)
 /* 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];
@@ -172,7 +172,7 @@ check_wrapper_flags_mode (const char *op, wrapper_func wrapper,
     }
 
   /* 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);
This page took 0.027315 seconds and 5 git commands to generate.