This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with /etc/services & getservbyname() function


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]