|
Packit |
6c4009 |
/* System-specific call to open a shared object by name. Stub version.
|
|
Packit |
6c4009 |
Copyright (C) 2015-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _DL_SYSDEP_OPEN_H
|
|
Packit |
6c4009 |
#define _DL_SYSDEP_OPEN_H 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <assert.h>
|
|
Packit |
6c4009 |
#include <stddef.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* NAME is a name without slashes, as it appears in a DT_NEEDED entry
|
|
Packit |
6c4009 |
or a dlopen call's argument or suchlike. NAMELEN is (strlen (NAME) + 1).
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
Find NAME in an OS-dependent fashion, and return its "real" name.
|
|
Packit |
6c4009 |
Optionally fill in *FD with a file descriptor open on that file (or
|
|
Packit |
6c4009 |
else leave its initial value of -1). The return value is a new
|
|
Packit |
6c4009 |
malloc'd string, which will be free'd by the caller. If NAME is
|
|
Packit |
6c4009 |
resolved to an actual file that can be opened, then the return
|
|
Packit |
6c4009 |
value should name that file (and if *FD was not set, then a normal
|
|
Packit |
6c4009 |
__open call on that string will be made). If *FD was set by some
|
|
Packit |
6c4009 |
other means than a normal open and there is no "real" name to use,
|
|
Packit |
6c4009 |
then __strdup (NAME) is fine (modulo error checking). */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
static inline char *
|
|
Packit |
6c4009 |
_dl_sysdep_open_object (const char *name, size_t namelen, int *fd)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
assert (*fd == -1);
|
|
Packit |
6c4009 |
return NULL;
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif /* dl-sysdep-open.h */
|