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

  1. /*
  2.  * daemon.c -- Different things that can parent a shell -- January 1988
  3.  *
  4.  * Copyright (C) 1988, 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. # ifndef lint
  16. static char *rcsid = "$Id: daemon.c,v 3.0 90/07/06 13:10:29 budd Rel $";
  17. # endif /* lint not defined */
  18.  
  19. # include "finger.h"
  20. # include "daemon.h"
  21.  
  22. struct daemon daemons [] = {
  23.     /* cmd        short        long */
  24.  
  25. # ifdef sun
  26. # if SunOS >= 400
  27.     {"cmdtool",        "cmdtool",    "SunView (cmdtool)" },
  28. # endif /* SunOS >= 400 */
  29.     {"suntools",    "suntools",    "SunView (suntools)" },
  30.     {"vt100tool",    "vt100tool",    "SunView (vt100tool)" },
  31.     {"othertools",    "othertools",    "SunView (othertools)" },
  32.     {"dbxtool",        "dbxtool",    "SunView (dbxtool)" }, /* use ptys? */
  33.     {"dnalogind",    "DNA",        "DNA login" },    /* Sun DECnet? */
  34.     {"dnaserver",    "DNI",        "Sunlink/DNI" }, /* ditto? */
  35.     {"psterm",        "NeWs",        "NeWs Window" },
  36. # endif /* sun defined */
  37.  
  38. # ifdef IN_DOT_DAEMON
  39.     {"in.rlogind",    "rlogin",    "Remote Login" },
  40.     {"in.telnetd",    "telnet",    "Telnet" },
  41.     {"in.supdupd",    "supdup",    "Supdup" },
  42.     {"in.rshd",        "rsh",        "Remote Shell" },
  43. # else  /* IN_DOT_DAEMON not defined */
  44.     {"rlogind",        "rlogin",    "Remote Login"},
  45.     {"telnetd",        "telnet",    "Telnet" },
  46.     {"supdupd",        "supdup",    "Supdup" },
  47.     {"rshd",        "rsh",        "Remote Shell" },
  48. # endif /* IN_DOT_DAEMON not defined */
  49.  
  50. # ifdef ultrix
  51.     {"dlogin",        "dlogin",    "DECnet Login" },
  52.     {"dlogind",        "dlogin",    "DECnet Login" },
  53.     {"dtermd",        "dterm",    "DECnet Terminal" }, /* cterm? */
  54.     {"dnet_spawner",    "decnet",    "DECnet" },    /* SNH? */
  55.     {"telnet.gw",    "telnet",    "Telnet GW" },    /* SNH? */
  56.     {"dxterm",        "dxterm",    "X window" },
  57. # endif /* ultrix defined */
  58.  
  59. # ifdef sgi
  60.     {"wsh",        "wsh",        "NeWs Window"},
  61.     {"grcond",        "grcond",    "Graphics Console"},
  62. # endif /* sgi defined */
  63.  
  64. # if defined(AIX_RT) || defined(AIX_PS2) || defined(AIX3)
  65.     {"aixterm",        "aixterm",    "X Window" },    /* no host in utmp */
  66. # endif /* defined(AIX_RT) || defined(AIX_PS2) || defined(AIX3) */
  67.  
  68.     {"xterm",        "xterm",    "X Window" },    /* no host in utmp */
  69.  
  70.  
  71.     {"inetd",        "inet",        "Internet" },    /* SNH */
  72.  
  73.     /* **************** put under ifdefs? **************** */
  74.  
  75.     /* 4.3 XNS */
  76.     {"GAP3d",        "GAP3",        "XNS GAP3" },
  77.     {"xnscourierd",    "XNS",        "XNS Courier" }, /* snh */
  78.  
  79.     /* MIT Chaosnet */
  80.     {"TELNET",        "chtn",        "Chaos Telnet" },
  81.     {"SUPDUP",        "chsupdup",    "Chaos" },    /* ever get this? */
  82.     {"chserver",    "chaos",    "Chaosnet" },    /* snh */
  83.  
  84.     /* Stanford PUP - Bill Nowicki and Jeff Mogul */
  85.     {"telser",        "pup",        "PUP" },
  86.  
  87. # ifdef LOCAL_DAEMONS
  88.     LOCAL_DAEMONS,
  89. # endif /* LOCAL_DAEMONS defined */
  90.  
  91.     {0, 0, 0}
  92. }; /* daemons[] */
  93.  
  94. /*
  95.  * Local variables:
  96.  * comment-column: 56
  97.  * End:
  98.  */
  99.