Blame sysdeps/generic/dl-fileid.h

Packit Service 82fcde
/* File identity for the dynamic linker.  Stub version.
Packit Service 82fcde
   Copyright (C) 2015-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#include <stdbool.h>
Packit Service 82fcde
Packit Service 82fcde
/* This type stores whatever information is fetched by _dl_get_file_id
Packit Service 82fcde
   and compared by _dl_file_id_match_p.  */
Packit Service 82fcde
struct r_file_id
Packit Service 82fcde
  {
Packit Service 82fcde
    /* In the stub version, we don't record anything at all.  */
Packit Service 82fcde
  };
Packit Service 82fcde
Packit Service 82fcde
/* Sample FD to fill in *ID.  Returns true on success.
Packit Service 82fcde
   On error, returns false, with errno set.  */
Packit Service 82fcde
static inline bool
Packit Service 82fcde
_dl_get_file_id (int fd __attribute__ ((unused)),
Packit Service e72b07
		 struct r_file_id *id __attribute__ ((unused)),
Packit Service e72b07
		 struct stat64_t *st __attribute__((unused)))
Packit Service 82fcde
{
Packit Service 82fcde
  return true;
Packit Service 82fcde
}
Packit Service 82fcde
Packit Service 82fcde
/* Compare two results from _dl_get_file_id for equality.
Packit Service 82fcde
   It's crucial that this never return false-positive matches.
Packit Service 82fcde
   It's ideal that it never return false-negative mismatches either,
Packit Service 82fcde
   but lack of matches is survivable.  */
Packit Service 82fcde
static inline bool
Packit Service 82fcde
_dl_file_id_match_p (const struct r_file_id *a __attribute__ ((unused)),
Packit Service 82fcde
		     const struct r_file_id *b __attribute__ ((unused)))
Packit Service 82fcde
{
Packit Service 82fcde
  return false;
Packit Service 82fcde
}