Re: Q: 4GL: fgl_gethostname()
Posted in 1999
On Thu, 11 Feb 1999, Andreas Bettin wrote: > Does anyone know, in which way fgl_gethostname works? No. When I compile the following code with plain C4GL, or when I try to run it with the p-code runner, I get fgl_gethostname() as an undefined function. MAIN DEFINE x CHAR(60) LET x = fgl_gethostname() DISPLAY x END MAIN > If I use fgl_gethostname under Linux, I get a hostname without domainname, > if I use fgl_gethostname under Digital-Unix, I get a hostname with > domainname. So, the problem comes down to: how did you implement it? And why does it vary from system to system? The answer is probably related to the particular system call you use, and whether things like DNS are running on your host. Does it matter to you? Obviously 'yes, a bit', but does one of the versions prevent your code from working? Yours, Jonathan Leffler (jleffler@informix.com) #include <wish/I/was/skiing.h> Guardian of DBD::Informix v0.60 (v0.61_02) -- http://www.perl.com/CPAN Informix IDN for D4GL & Linux -- http://www.informix.com/idn