File:  [DVB] / dietlibc / libugly / getservent.c
Revision 1.9: download - view: text, annotated - select for diffs
Mon Oct 29 17:21:10 2001 UTC (22 years, 7 months ago) by fefe
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
save a few bytes here and there (and set result pointers to 0 if not
found)

#include <netdb.h>

extern struct servent __servent_pw;
extern char __servent_buf[1000];

struct servent *getservent(void) {
  struct servent* tmp;
  getservent_r(&__servent_pw,__servent_buf,sizeof(__servent_buf),&tmp);
  return tmp;
}

LinuxTV legacy CVS <linuxtv.org/cvs>