From: deraadt Date: Sun, 18 Oct 2015 00:36:20 +0000 (+0000) Subject: create libc stubs for dnssocket() and dnsconnect() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7ce8eabaa67c4198b2bad6bbd9a0439483e6c0b5;p=openbsd create libc stubs for dnssocket() and dnsconnect() --- diff --git a/lib/libc/hidden/arpa/nameser.h b/lib/libc/hidden/arpa/nameser.h index a7155a21a7e..9aaa7783366 100644 --- a/lib/libc/hidden/arpa/nameser.h +++ b/lib/libc/hidden/arpa/nameser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nameser.h,v 1.1 2015/09/13 21:36:08 guenther Exp $ */ +/* $OpenBSD: nameser.h,v 1.2 2015/10/18 00:36:22 deraadt Exp $ */ /* * Copyright (c) 2015 Philip Guenther * @@ -20,7 +20,13 @@ #include_next +int dnssocket(int, int, int); +int dnsconnect(int, const struct sockaddr *, socklen_t); + PROTO_NORMAL(_getshort); PROTO_NORMAL(_getlong); +PROTO_HIDDEN(dnssocket); +PROTO_HIDDEN(dnsconnect); + #endif /* !_LIBC_NAMESER_H_ */ diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 50413efb932..98f7f4062f3 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.131 2015/10/09 01:24:57 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.132 2015/10/18 00:36:20 deraadt Exp $ # $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 @@ -29,7 +29,7 @@ ASM= __get_tcb.o __getcwd.o __semctl.o __set_tcb.o __syscall.o \ __thrwakeup.o accept.o accept4.o access.o acct.o adjfreq.o adjtime.o \ bind.o chdir.o chflags.o chflagsat.o chmod.o chown.o chroot.o \ clock_getres.o clock_gettime.o clock_settime.o close.o \ - closefrom.o connect.o dup.o dup2.o dup3.o execve.o faccessat.o \ + closefrom.o dnsconnect.o connect.o dup.o dup2.o dup3.o execve.o faccessat.o \ fchdir.o fchflags.o fchmod.o fchmodat.o fchown.o \ fchownat.o fcntl.o fhopen.o fhstat.o fhstatfs.o \ flock.o fpathconf.o fstat.o fstatat.o fstatfs.o \ @@ -54,7 +54,7 @@ ASM= __get_tcb.o __getcwd.o __semctl.o __set_tcb.o __syscall.o \ setpgid.o setpriority.o setregid.o setresgid.o setresuid.o \ setreuid.o setrlimit.o setrtable.o setsid.o setsockopt.o \ settimeofday.o setuid.o shmat.o shmctl.o shmdt.o \ - shmget.o shutdown.o sigaction.o sigaltstack.o socket.o \ + shmget.o shutdown.o sigaction.o sigaltstack.o dnssocket.o socket.o \ socketpair.o stat.o statfs.o swapctl.o symlink.o symlinkat.o \ sync.o sysarch.o sysctl.o umask.o unlink.o unlinkat.o \ unmount.o utimensat.o utimes.o utrace.o wait4.o write.o writev.o