Ignore:
Timestamp:
Jan 27, 2003, 4:20:14 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
180a2ebd
Parents:
f6c2c30
Message:

2003-01-27 Till Straumann <strauman@…>

  • libc/getproto.c, libc/getprotoname.c: modification to call getprotoent_static() if fopen() on /etc/protocols fails.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/libc/getprotoname.c

    rf6c2c30 r9d647dfc  
    4343extern int _proto_stayopen;
    4444
     45extern struct protoent *getprotobyname_static(const char *);
     46
    4547struct protoent *
    4648getprotobyname(name)
     
    6163        if (!_proto_stayopen)
    6264                endprotoent();
     65
     66        if ( !p )
     67                p = getprotobyname_static(name);
    6368        return (p);
    6469}
Note: See TracChangeset for help on using the changeset viewer.