Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 03:58:27 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288008 - head/lib/libc/gen
Message-ID:  <201509200358.t8K3wRsd068328@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <errno.h>
 #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 <link.h>
 #include <stddef.h>
 
+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 <ctype.h>
 
 __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 <sys/cdefs.h>
 __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 <errno.h>
 #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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509200358.t8K3wRsd068328>