Define F_DUPFD_CLOEXEC.
[glibc-ports.git] / sysdeps / hppa / bits / link.h
blob2c1c81de497b7d6b400a1a2392248a75f0a5e434
1 /* Copyright (C) 2005 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #ifndef _LINK_H
20 # error "Never include <bits/link.h> directly; use <link.h> instead."
21 #endif
23 /* Registers for entry into PLT on hppa. */
24 typedef struct La_hppa_regs
26 uint32_t lr_reg[4];
27 double lr_fpreg[4];
28 uint32_t lr_sp;
29 uint32_t lr_ra;
30 } La_hppa_regs;
32 /* Return values for calls from PLT on hppa. */
33 typedef struct La_hppa_retval
35 uint32_t lrv_r28;
36 uint32_t lrv_r29;
37 double lr_fr4;
38 } La_hppa_retval;
41 __BEGIN_DECLS
43 extern Elf32_Addr la_hppa_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
44 uintptr_t *__refcook,
45 uintptr_t *__defcook,
46 La_hppa_regs *__regs,
47 unsigned int *__flags,
48 const char *__symname,
49 long int *__framesizep);
50 extern unsigned int la_hppa_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
51 uintptr_t *__refcook,
52 uintptr_t *__defcook,
53 const La_hppa_regs *__inregs,
54 La_hppa_retval *__outregs,
55 const char *symname);
57 __END_DECLS