From owner-svn-src-head@freebsd.org Sun Sep 20 03:58:33 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 101409CDC90; Sun, 20 Sep 2015 03:58:33 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F35991643; Sun, 20 Sep 2015 03:58:32 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8K3wWBx068348; Sun, 20 Sep 2015 03:58:32 GMT (envelope-from rodrigc@FreeBSD.org) Received: (from rodrigc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8K3wRsd068328; Sun, 20 Sep 2015 03:58:27 GMT (envelope-from rodrigc@FreeBSD.org) Message-Id: <201509200358.t8K3wRsd068328@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rodrigc set sender to rodrigc@FreeBSD.org using -f From: Craig Rodrigues Date: Sun, 20 Sep 2015 03:58:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288008 - head/lib/libc/gen X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2015 03:58:33 -0000 Author: rodrigc Date: Sun Sep 20 03:58:27 2015 New Revision: 288008 URL: https://svnweb.freebsd.org/changeset/base/288008 Log: Add declarations to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/gen/dlfcn.c head/lib/libc/gen/dup3.c head/lib/libc/gen/elf_utils.c head/lib/libc/gen/fmtcheck.c head/lib/libc/gen/getgrent.c head/lib/libc/gen/nlist.c head/lib/libc/gen/pause.c head/lib/libc/gen/raise.c head/lib/libc/gen/semctl.c head/lib/libc/gen/sleep.c head/lib/libc/gen/ttyslot.c head/lib/libc/gen/uname.c head/lib/libc/gen/unvis-compat.c head/lib/libc/gen/usleep.c head/lib/libc/gen/wait.c head/lib/libc/gen/wait3.c head/lib/libc/gen/waitid.c head/lib/libc/gen/waitpid.c Modified: head/lib/libc/gen/dlfcn.c ============================================================================== --- head/lib/libc/gen/dlfcn.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/dlfcn.c Sun Sep 20 03:58:27 2015 (r288008) @@ -41,6 +41,10 @@ __FBSDID("$FreeBSD$"); static char sorry[] = "Service unavailable"; +void _rtld_thread_init(void * li); +void _rtld_atfork_pre(int *locks); +void _rtld_atfork_post(int *locks); + /* * For ELF, the dynamic linker directly resolves references to its * services to functions inside the dynamic linker itself. These Modified: head/lib/libc/gen/dup3.c ============================================================================== --- head/lib/libc/gen/dup3.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/dup3.c Sun Sep 20 03:58:27 2015 (r288008) @@ -35,6 +35,8 @@ __FBSDID("$FreeBSD$"); #include #include "un-namespace.h" +int __dup3(int oldfd, int newfd, int flags); + int __dup3(int oldfd, int newfd, int flags) { Modified: head/lib/libc/gen/elf_utils.c ============================================================================== --- head/lib/libc/gen/elf_utils.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/elf_utils.c Sun Sep 20 03:58:27 2015 (r288008) @@ -33,6 +33,9 @@ #include #include +int __elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr); +void __pthread_map_stacks_exec(void); + int __elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr) { Modified: head/lib/libc/gen/fmtcheck.c ============================================================================== --- head/lib/libc/gen/fmtcheck.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/fmtcheck.c Sun Sep 20 03:58:27 2015 (r288008) @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include __weak_reference(__fmtcheck, fmtcheck); +const char * __fmtcheck(const char *f1, const char *f2); enum __e_fmtcheck_types { FMTCHECK_START, Modified: head/lib/libc/gen/getgrent.c ============================================================================== --- head/lib/libc/gen/getgrent.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/getgrent.c Sun Sep 20 03:58:27 2015 (r288008) @@ -75,6 +75,8 @@ static const ns_src defaultsrc[] = { { NULL, 0 } }; +int __getgroupmembership(const char *uname, gid_t agroup, gid_t *groups, + int maxgrp, int *grpcnt); int __gr_match_entry(const char *, size_t, enum nss_lookup_type, const char *, gid_t); int __gr_parse_entry(char *, size_t, struct group *, char *, size_t, Modified: head/lib/libc/gen/nlist.c ============================================================================== --- head/lib/libc/gen/nlist.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/nlist.c Sun Sep 20 03:58:27 2015 (r288008) @@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$"); int __fdnlist(int, struct nlist *); int __aout_fdnlist(int, struct nlist *); int __elf_fdnlist(int, struct nlist *); +int __elf_is_okay__(Elf_Ehdr *ehdr); int nlist(const char *name, struct nlist *list) Modified: head/lib/libc/gen/pause.c ============================================================================== --- head/lib/libc/gen/pause.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/pause.c Sun Sep 20 03:58:27 2015 (r288008) @@ -38,6 +38,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" +int __pause(void); + /* * Backwards compatible pause. */ Modified: head/lib/libc/gen/raise.c ============================================================================== --- head/lib/libc/gen/raise.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/raise.c Sun Sep 20 03:58:27 2015 (r288008) @@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$"); __weak_reference(__raise, raise); __weak_reference(__raise, _raise); +int __raise(int s); int __raise(int s) Modified: head/lib/libc/gen/semctl.c ============================================================================== --- head/lib/libc/gen/semctl.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/semctl.c Sun Sep 20 03:58:27 2015 (r288008) @@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$"); int __semctl(int semid, int semnum, int cmd, union semun *arg); int freebsd7___semctl(int semid, int semnum, int cmd, union semun_old *arg); +int freebsd7_semctl(int semid, int semnum, int cmd, ...); int semctl(int semid, int semnum, int cmd, ...) Modified: head/lib/libc/gen/sleep.c ============================================================================== --- head/lib/libc/gen/sleep.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/sleep.c Sun Sep 20 03:58:27 2015 (r288008) @@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" +unsigned int __sleep(unsigned int seconds); + unsigned int __sleep(unsigned int seconds) { Modified: head/lib/libc/gen/ttyslot.c ============================================================================== --- head/lib/libc/gen/ttyslot.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/ttyslot.c Sun Sep 20 03:58:27 2015 (r288008) @@ -33,6 +33,8 @@ static char sccsid[] = "@(#)ttyslot.c 8. #include __FBSDID("$FreeBSD$"); +int __ttyslot(void); + int __ttyslot(void) { Modified: head/lib/libc/gen/uname.c ============================================================================== --- head/lib/libc/gen/uname.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/uname.c Sun Sep 20 03:58:27 2015 (r288008) @@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$"); #include #undef uname +int uname(struct utsname *name); + int uname(struct utsname *name) { Modified: head/lib/libc/gen/unvis-compat.c ============================================================================== --- head/lib/libc/gen/unvis-compat.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/unvis-compat.c Sun Sep 20 03:58:27 2015 (r288008) @@ -34,6 +34,8 @@ #define _UNVIS_END 1 +int __unvis_44bsd(char *cp, int c, int *astate, int flag); + int __unvis_44bsd(char *cp, int c, int *astate, int flag) { Modified: head/lib/libc/gen/usleep.c ============================================================================== --- head/lib/libc/gen/usleep.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/usleep.c Sun Sep 20 03:58:27 2015 (r288008) @@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" +int __usleep(useconds_t useconds); + int __usleep(useconds_t useconds) { Modified: head/lib/libc/gen/wait.c ============================================================================== --- head/lib/libc/gen/wait.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/wait.c Sun Sep 20 03:58:27 2015 (r288008) @@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" +pid_t __wait(int *istat); + pid_t __wait(int *istat) { Modified: head/lib/libc/gen/wait3.c ============================================================================== --- head/lib/libc/gen/wait3.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/wait3.c Sun Sep 20 03:58:27 2015 (r288008) @@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" +pid_t __wait3(int *istat, int options, struct rusage *rup); + pid_t __wait3(int *istat, int options, struct rusage *rup) { Modified: head/lib/libc/gen/waitid.c ============================================================================== --- head/lib/libc/gen/waitid.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/waitid.c Sun Sep 20 03:58:27 2015 (r288008) @@ -39,6 +39,8 @@ __FBSDID("$FreeBSD$"); #include "un-namespace.h" #include "libc_private.h" +int __waitid(idtype_t idtype, id_t id, siginfo_t *info, int flags); + int __waitid(idtype_t idtype, id_t id, siginfo_t *info, int flags) { Modified: head/lib/libc/gen/waitpid.c ============================================================================== --- head/lib/libc/gen/waitpid.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/waitpid.c Sun Sep 20 03:58:27 2015 (r288008) @@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" +pid_t __waitpid(pid_t pid, int *istat, int options); + pid_t __waitpid(pid_t pid, int *istat, int options) {