| Browse in : |
All
> Documents
> Man Pages
> Subroutines
(8513)
|
#include <netdb.h> struct servent *getservent(void); struct servent *getservbyname(const char *name, const char *proto); struct servent *getservbyport(int port, const char *proto); void setservent(int stayopen); void endservent(void);
The getservbyname() function returns a servent structure for the line from /etc/services that matches the service name using protocol proto. If proto is NULL, any protocol will be matched.
The getservbyport() function returns a servent structure for the line that matches the port port given in network byte order using protocol proto. If proto is NULL, any protocol will be matched.
The setservent() function opens and rewinds the /etc/services file. If stayopen is true (1), then the file will not be closed between calls to getservbyname() and getservbyport().
The endservent() function closes /etc/services.
The servent structure is defined in <netdb.h> as follows:
struct servent { char *s_name; /* official service name */ char **s_aliases; /* alias list */ int s_port; /* port number */ char *s_proto; /* protocol to use */ }
The members of the servent structure are:
I'd love to see viable alternatives to the current mainstream operating systems.
Remember Terra Soft and its Yellow Dog Linux for Power processors? Well, Yellow Dog is no longer the darling Linux for Apple machines since the latter company switched to Intel Core and Xeon processors for its PCs and servers a few years back.
Microsoft Windows Mobile operating systems have always been compatible with various handsets or personal digital assistants, even with those that did not feature enough performance for them, which essentially ruined user experience.
Virtual Network Computing allows you to log into a full desktop on a remote server .
WHERE THE HECK ARE ALL THE TECH DEALS? A widespread prediction heading into 2010 was that tech was set for major consolidation.
O Data customers will receive patent covenants for their use of devices running Linux and related open source software.
ArchiveExplorer Autozone Bilski BK Timeline Cast: Lawyers Comes v. MS Contracts Courts DRM Gordon v MS GPL Grokdoc HTML How To IBM Timeline Legal Docs MS Litigation Novell Appeal Novell Timeline Novell v. MS Novell-MS Deal ODF/OOXML OOXML Appeals Patents ProjectMonterey Psystar Quote Database Red Hat Salus Book SCO SCO Financials SCO:Soup2Nuts ...
Yesterday's surprise $1 billion buyout offer for Novell from the New York-based private investment group Elliott Management came with a letter, made public yesterday, spelling out the investors' goal for the company.
Google's Android code will assume its rightful place in the Linux kernel - in good time, the company's top open source guru says.