home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / finger / part02 / syms.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-03  |  2.2 KB  |  80 lines

  1. /*
  2.  * syms.h -- names to lookup via nlist
  3.  *
  4.  * Copyright (C) 1986, 1990  Philip L. Budne
  5.  *
  6.  * This file is part of "Phil's Finger Program".
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 1, or (at your option)
  11.  * any later version.
  12.  *
  13.  */
  14.  
  15. # define SYMS_RCSID "$Id: syms.h,v 3.0 90/07/06 13:11:53 budd Rel $"
  16.  
  17. # ifndef _FINGER_H_
  18. # include "finger.h"
  19. # endif /* _FINGER_H_ not defined */
  20.  
  21. # ifndef _SYMS_H_
  22. # define _SYMS_H_
  23. # ifdef sgi
  24. # define HAVE_KERNEL_MAGIC
  25. # endif /* sgi defined */
  26. # ifndef USG
  27. # define HAVE_VERSION
  28. # endif /* USG not defined */
  29. # endif /* _SYMS_H_ not defined */
  30.  
  31. /*
  32.  *    First argument is string for nlist.
  33.  *    Second argument is string for nlist on COFF systems
  34.  *    Third is member name for Info struct
  35.  */
  36.  
  37.     SYM("_proc","proc",proc)        /* process table (or pointer) */
  38. # if SunOS < 410
  39.     SYM("_u","u",u)            /* u struct (for pause sleep addr) */
  40. # else  /* not SunOS < 410 */
  41.     SYM("_kernelmap","u",u)            /* u struct (for pause sleep addr) */
  42. # endif /* not SunOS < 410 */
  43.  
  44. # ifdef USG
  45.     SYM("_v","v",v)            /* sys/var.h var struct */
  46. # ifdef STREAMS
  47.     SYM("_pollwait","pollwait",pollwait) /* poll(2) sleep address */
  48. # endif /* STREAMS defined */
  49. # else  /* USG not defined */
  50.     SYM("_nproc","nproc",nproc)        /* size of process table */
  51.     SYM("_version","version",version)    /* version/build id string */
  52.     SYM("_selwait","selwait",selwait)    /* select(2) sleep address */
  53. # endif /* USG not defined */
  54.  
  55. # ifdef sun
  56.     SYM("_consdev","consdev",consdev)    /* console device */
  57.     SYM("_rconsdev","rconsdev",rconsdev) /* redirected console? */
  58. # endif /* sun defined */
  59.  
  60. # ifdef sgi
  61.     SYM("_end","end",end)        /* label at end of bss */
  62.     SYM("_kernel_magic","kernel_magic",kernel_magic) /* value of _end */
  63. # endif /* sgi defined */
  64.  
  65. # ifdef NEED_USRPT
  66.     SYM("_usrpt","usrpt",usrpt)
  67.     SYM("_Usrptmap","Usrptmap",Usrptmap)
  68. # endif /* NEED_USRPT defined */
  69.  
  70. # ifdef ibm032                /* RT/AOS4.3 */
  71.     SYM("_procSIZE","procSIZE",procSIZE)
  72.     SYM("_userSIZE","userSIZE",userSIZE)
  73. # endif /* ibm032 defined */
  74.  
  75. /*
  76.  * Local variables:
  77.  * comment-column: 40
  78.  * End:
  79.  */
  80.