diff options
| author | Yuri Pankov <yuri.pankov@nexenta.com> | 2018-07-22 14:29:51 +0300 |
|---|---|---|
| committer | Dan McDonald <danmcd@joyent.com> | 2018-07-30 15:28:50 -0400 |
| commit | 8a7aa2a592747bd90d85645126d80688e024a0e2 (patch) | |
| tree | 7a6c84d942a965d07c6eb294f47cae56848fa273 /usr/src/lib/libc/port/llib-lc | |
| parent | 7e3488dc6cdcb0c04e1ce167a1a3bfef83b5f2e0 (diff) | |
| download | illumos-joyent-8a7aa2a592747bd90d85645126d80688e024a0e2.tar.gz | |
9673 move internet address manipulation functions to libc
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libc/port/llib-lc')
| -rw-r--r-- | usr/src/lib/libc/port/llib-lc | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/usr/src/lib/libc/port/llib-lc b/usr/src/lib/libc/port/llib-lc index a63267fc54..b7521a2f86 100644 --- a/usr/src/lib/libc/port/llib-lc +++ b/usr/src/lib/libc/port/llib-lc @@ -21,7 +21,7 @@ /* * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright 2017 Nexenta Systems, Inc. + * Copyright 2018 Nexenta Systems, Inc. * Copyright 2013 OmniTI Computer Consulting, Inc. All rights reserved. * Copyright (c) 2013 Gary Mills * Copyright 2014 Garrett D'Amore <garrett@damore.org> @@ -171,6 +171,8 @@ #include <stack_unwind.h> #endif #include <xlocale.h> +#include <netinet/in.h> +#include <arpa/inet.h> /* * This really comes from the crt*.s startup modules. @@ -1429,7 +1431,6 @@ int pset_assign_forced(psetid_t pset, processorid_t cpu, psetid_t *opset); int pset_info(psetid_t pset, int *type, u_int *numcpus, processorid_t *cpulist); int pset_bind(psetid_t pset, idtype_t idtype, id_t id, psetid_t *opset); int pset_bind_lwp(psetid_t pset, id_t id, pid_t, psetid_t *opset); - /* rctlsys.c */ int getrctl(const char *name, rctlblk_t *old_rblk, rctlblk_t *new_rblk, @@ -1441,7 +1442,6 @@ int setprojrctl(const char *name, rctlblk_t *new_rblk, size_t size, int flags); int rctlctl(const char *, rctlblk_t *, int); size_t rctllist(char *, size_t); - /* semsys.c */ int semctl(int semid, int semnum, int cmd, ...); int semget(key_t key, int nsems, int semflg); @@ -1532,7 +1532,7 @@ size_t wcsxfrm(wchar_t *_RESTRICT_KYWD s1, const wchar_t *_RESTRICT_KYWD s2, int wcscoll(const wchar_t *s1, const wchar_t *s2); /* wcsftime.c */ -#if !defined(__amd64) /* XX64 - fix me */ +#if !defined(__amd64) /* XX64 - fix me */ size_t wcsftime(wchar_t *wcs, size_t maxsize, const char *format, const struct tm *timeptr); #endif /* __amd64 */ @@ -1631,7 +1631,7 @@ long double wcstold(const wchar_t *_RESTRICT_KYWD cp, double wstod(const wchar_t *cp, wchar_t **ptr); /* wstok.c */ -#if !defined(__amd64) /* XX64 - fix me */ +#if !defined(__amd64) /* XX64 - fix me */ wchar_t *wcstok(wchar_t *string, const wchar_t *sepset); wchar_t *wstok(wchar_t *string, const wchar_t *sepset); #endif /* __amd64 */ @@ -1848,3 +1848,15 @@ extern size_t u8_textprep_str(char *, size_t *, char *, size_t *, int, size_t, /* private locale interfaces */ wint_t __nextwctype(wint_t, wctype_t); int __iswrune(wint_t); + +/* inet_ntop.c */ +const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); + +/* inet_pton.c */ +int inet_pton(int af, const char *src, void *dst); + +/* inet_ntoa.c */ +char *inet_ntoa_r(struct in_addr in, char b[]); +char *inet_ntoa(struct in_addr in); +in_addr_t inet_addr(const char *cp); +in_addr_t inet_netof(struct in_addr in); |
