summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/getservbyport.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/libc/getservbyport.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpukit/libnetworking/libc/getservbyport.c b/cpukit/libnetworking/libc/getservbyport.c
index cdc9557b9c..884d600590 100644
--- a/cpukit/libnetworking/libc/getservbyport.c
+++ b/cpukit/libnetworking/libc/getservbyport.c
@@ -42,6 +42,24 @@
extern int _serv_stayopen;
+int getservbyport_r(
+ int port,
+ const char *proto,
+ struct servent *result_buf,
+ char *buf,
+ size_t buflen,
+ struct servent **result
+)
+{
+ #warning "implement a proper getservbyport_r"
+
+ *result = getservbyport(port, proto);
+ if ( *result )
+ return 0;
+
+ return -1;
+}
+
struct servent *
getservbyport(port, proto)
int port;