nlist.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * nlist.h - public header file for nlist(3).
  3. * Copyright (C) 1995 - 2006 Michael Riepe
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Library General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Library General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Library General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  18. */
  19. /* @(#) $Id: nlist.h,v 1.10 2008/05/23 08:15:35 michael Exp $ */
  20. #ifndef _NLIST_H
  21. #define _NLIST_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif /* __cplusplus */
  25. struct nlist {
  26. char* n_name;
  27. long n_value;
  28. short n_scnum;
  29. unsigned short n_type;
  30. char n_sclass;
  31. char n_numaux;
  32. };
  33. #if (__STDC__ + 0) || defined(__cplusplus) || defined(_WIN32)
  34. extern int nlist(const char *__filename, struct nlist *__nl);
  35. #else /* __STDC__ || defined(__cplusplus) */
  36. extern int nlist();
  37. #endif /* __STDC__ || defined(__cplusplus) */
  38. #ifdef __cplusplus
  39. }
  40. #endif /* __cplusplus */
  41. #endif /* _NLIST_H */