Changeset 9d647dfc in rtems


Ignore:
Timestamp:
Jan 27, 2003, 4:20:14 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 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.
Location:
cpukit/libnetworking
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/ChangeLog

    rf6c2c30 r9d647dfc  
     12003-01-27      Till Straumann <strauman@SLAC.Stanford.edu>
     2
     3        * libc/getproto.c, libc/getprotoname.c: modification to call
     4        getprotoent_static() if fopen() on /etc/protocols fails.
     5
    162003-01-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • cpukit/libnetworking/libc/getproto.c

    rf6c2c30 r9d647dfc  
    4242extern int _proto_stayopen;
    4343
     44extern struct protoent * getprotobynumber_static(int);
     45
    4446struct protoent *
    4547getprotobynumber(proto)
     
    5456        if (!_proto_stayopen)
    5557                endprotoent();
     58
     59        if ( !p )
     60                p = getprotobynumber_static(proto);
    5661        return (p);
    5762}
  • 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.