This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Problems with /etc/services & getservbyname() function
- To: "Philippe Noel" <pnoel@socoint.com>, "Cygwin-List" <cygwin@sourceware.cygnus.com>
- Subject: Re: Problems with /etc/services & getservbyname() function
- From: "Sergey Okhapkin" <sos@prospect.com.ru>
- Date: Tue, 10 Aug 1999 11:38:10 -0400
>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