dl-procinfo.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Data for s390 version of processor capability information.
  2. Copyright (C) 2006-2026 Free Software Foundation, Inc.
  3. 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.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <https://www.gnu.org/licenses/>. */
  15. /* Needed by sysdeps/unix/sysv/linux/dl-vdso-setup.c (as included from
  16. sysdeps/generic/ldsodefs.h). */
  17. /* All the #ifdefs in the definitions are quite irritating but
  18. necessary if we want to avoid duplicating the information. There
  19. are three different modes:
  20. - PROCINFO_DECL is defined. This means we are only interested in
  21. declarations.
  22. - PROCINFO_DECL is not defined:
  23. + if SHARED is defined the file is included in an array
  24. initializer. The .element = { ... } syntax is needed.
  25. + if SHARED is not defined a normal array initialization is
  26. needed.
  27. */
  28. #ifndef PROCINFO_CLASS
  29. # define PROCINFO_CLASS
  30. #endif
  31. #if !IS_IN (ldconfig)
  32. # if !defined PROCINFO_DECL && defined SHARED
  33. ._dl_s390_cpu_features
  34. # else
  35. PROCINFO_CLASS struct cpu_features _dl_s390_cpu_features
  36. # endif
  37. # ifndef PROCINFO_DECL
  38. = { }
  39. # endif
  40. # if !defined SHARED || defined PROCINFO_DECL
  41. ;
  42. # else
  43. ,
  44. # endif
  45. #endif
  46. #undef PROCINFO_DECL
  47. #undef PROCINFO_CLASS