CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
48 lines
1.7 KiB
C
48 lines
1.7 KiB
C
/* Determine whether two stat buffers are known to refer to the same file.
|
|
|
|
Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc.
|
|
|
|
This file is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as
|
|
published by the Free Software Foundation; either version 2.1 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This file is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef SAME_INODE_H
|
|
# define SAME_INODE_H 1
|
|
|
|
# include <sys/types.h>
|
|
|
|
# if defined __VMS && __CRTL_VER < 80200000
|
|
# define SAME_INODE(a, b) \
|
|
((a).st_ino[0] == (b).st_ino[0] \
|
|
&& (a).st_ino[1] == (b).st_ino[1] \
|
|
&& (a).st_ino[2] == (b).st_ino[2] \
|
|
&& (a).st_dev == (b).st_dev)
|
|
# elif defined _WIN32 && ! defined __CYGWIN__
|
|
/* Native Windows. */
|
|
# if _GL_WINDOWS_STAT_INODES
|
|
/* stat() and fstat() set st_dev and st_ino to 0 if information about
|
|
the inode is not available. */
|
|
# define SAME_INODE(a, b) \
|
|
(!((a).st_ino == 0 && (a).st_dev == 0) \
|
|
&& (a).st_ino == (b).st_ino && (a).st_dev == (b).st_dev)
|
|
# else
|
|
/* stat() and fstat() set st_ino to 0 always. */
|
|
# define SAME_INODE(a, b) 0
|
|
# endif
|
|
# else
|
|
# define SAME_INODE(a, b) \
|
|
((a).st_ino == (b).st_ino \
|
|
&& (a).st_dev == (b).st_dev)
|
|
# endif
|
|
|
|
#endif
|