Problems with /etc/services & getservbyname() function

Sergey Okhapkin sos@prospect.com.ru
Tue Aug 31 23:49:00 GMT 1999


>I'm currently trying to use the function "getservbyname" and I have
problems
>with.  I do not find any hints on the mailing-list archive nor in the FAQ,
>but I saw the function is supported by Cygwin.
>
>The getservbyname() function returns a servent structure for the line from
>/etc/services that matches the service name using protocol proto. I
>installed the file /etc/services like it is on my Linux system.
>


getservbyname() function calls corresponding winsock function. Winsock
searches for services file in %SystemRoot%/system32/drivers/etc directory on
NT and in %WinDir% on Win9x.

Sergey Okhapkin, http://www.lexa.ru/sos
Piscataway, NJ



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list