Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <006501bee346$59a9f900$02af6080@sokhapki-2.cc.bellcore.com> From: "Sergey Okhapkin" To: "Philippe Noel" , "Cygwin-List" Subject: Re: Problems with /etc/services & getservbyname() function Date: Tue, 10 Aug 1999 11:38:10 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 >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 AT sourceware DOT cygnus DOT com