Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!sol.ctr.columbia.edu!emory!emcard!dekalb!john From: john@dekalb.UUCP (John Cothran) Newsgroups: comp.unix.ultrix Subject: How do I get lat info from C? Message-ID: <1226@dekalb.UUCP> Date: 5 Mar 91 03:24:31 GMT Distribution: na Organization: DeKalb College, Clarkston, Ga. Lines: 26 The lat.h include file has several structures defined with lots of goodies. In particular: /* * LAT parameters data structure for LAT_SERVPORT. */ struct lat_servport { u_char lsp_name[17]; /* LAT server name */ u_char lsp_port[17]; /* LAT server port name */ u_char lsp_serv[17]; /* LAT destination */ u_char lsp_flags; /* LAT flags */ #define LSP_DEFAULT_SERVICE 1 /* serve the default service */ #define LSP_HIC 2 /* terminal is for HIC */ #define LSP_APPL_SERVICE 3 /* terminal is for appl service */ dev_t lsp_dev; /* LAT tty number */ }; My question is what functions can I call to get this info? I want to write a program that will list all users and the server/port they are coming in on. I assume it can be done since "w" now shows the server name. Thanks in advance. John. -- John Cothran - DeKalb College - gatech!dekalb!john - john@dekalb