]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Add declarations to eliminate -Wmissing-prototypes warnings
authorrodrigc <rodrigc@FreeBSD.org>
Sun, 20 Sep 2015 03:58:27 +0000 (03:58 +0000)
committerrodrigc <rodrigc@FreeBSD.org>
Sun, 20 Sep 2015 03:58:27 +0000 (03:58 +0000)
18 files changed:
lib/libc/gen/dlfcn.c
lib/libc/gen/dup3.c
lib/libc/gen/elf_utils.c
lib/libc/gen/fmtcheck.c
lib/libc/gen/getgrent.c
lib/libc/gen/nlist.c
lib/libc/gen/pause.c
lib/libc/gen/raise.c
lib/libc/gen/semctl.c
lib/libc/gen/sleep.c
lib/libc/gen/ttyslot.c
lib/libc/gen/uname.c
lib/libc/gen/unvis-compat.c
lib/libc/gen/usleep.c
lib/libc/gen/wait.c
lib/libc/gen/wait3.c
lib/libc/gen/waitid.c
lib/libc/gen/waitpid.c

index 7d287974fa25f9e7797bfcc7e976fe6ee78f4ac2..f65776e8e9682c85164dc09f6e538ee5744e4b06 100644 (file)
@@ -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
index ac8877cdc8a62b497844d8c1999a89111b76687b..b7fd9bfe9244c054bc2f69962b90844a662ea4b2 100644 (file)
@@ -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)
 {
index 7bd75116c3869e5518465958d1fda5f09662f291..264d953a494ee604c3c7ce3ddb4b9e97d09f3a89 100644 (file)
@@ -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)
 {
index 5b3f2c4cd75fc5ede674165329f111e800d38358..0c29f94219cd13edaae7fcfcb5171504b93dfbd7 100644 (file)
@@ -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,
index 93a82c2db324c4c676b46aa0582423f9bcf9ea81..dc9cabdae753e0d2c9c6e9b174709eec2a7e4bce 100644 (file)
@@ -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,
index 88254cd99c3025b8ccc1795bd0a15e126f692830..1f5769388cd910a741a6804612a508f1d81a0341 100644 (file)
@@ -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)
index ef48c1cd4518fc9737e92874d60b11fc75eca4e9..8e7a638783f4515acb13edf80a9a828aa8069c9b 100644 (file)
@@ -38,6 +38,8 @@ __FBSDID("$FreeBSD$");
 
 #include "libc_private.h"
 
+int __pause(void);
+
 /*
  * Backwards compatible pause.
  */
index 994fea57911b6f6fca8e0f579e6dbf170dbe4cd3..46dffb17007c1969edf9171cedb4d3d0adb82f55 100644 (file)
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
 
 __weak_reference(__raise, raise);
 __weak_reference(__raise, _raise);
+int __raise(int s);
 
 int
 __raise(int s)
index 156d18cac70d441163857c6ac0f9b72afdb2c660..c68734d6318bbabf706ec7ec9ebccc476be64edb 100644 (file)
@@ -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, ...)
index 6bb4ecd8083843eef52eb331c5f8ec7698963906..bfa5232a799384d9ab46ccf184fbbb5f1cbadfe4 100644 (file)
@@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$");
 
 #include "libc_private.h"
 
+unsigned int __sleep(unsigned int seconds);
+
 unsigned int
 __sleep(unsigned int seconds)
 {
index 1de0837e937a73f08da54eae18aef9adb956ac08..397e3ad466c474dee695348bc47867d6e468a0dc 100644 (file)
@@ -33,6 +33,8 @@ static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
+int __ttyslot(void);
+
 int
 __ttyslot(void)
 {
index 5a7baf7c3210552252080234b738938188bf468f..29986a843ca51707650d056ab12cf2ff2a7e7430 100644 (file)
@@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$");
 #include <errno.h>
 #undef uname
 
+int uname(struct utsname *name);
+
 int
 uname(struct utsname *name)
 {
index 080143e39df8e97d17b6c7bb8f91c564a1ba2e16..e18fa723f7845b8c8fe75b8783cb27667b5a4665 100644 (file)
@@ -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)
 {
index 7c35f6c6fd9c3a41fe27b5bc74f4cc33728ce196..8156348b620c9a1a58d3e838ddcc6e141969a15f 100644 (file)
@@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$");
 
 #include "libc_private.h"
 
+int __usleep(useconds_t useconds);
+
 int
 __usleep(useconds_t useconds)
 {
index 46a3fdd0bf525738805ab49919e43e0c50e65bd9..782a459c57a76ae229c3354e56c9970a3ae2c860 100644 (file)
@@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$");
 
 #include "libc_private.h"
 
+pid_t __wait(int *istat);
+
 pid_t
 __wait(int *istat)
 {
index 965effe432622973d6925ec2f10b8c6476845755..a34085bec512d7ee68217829229acd7930d0b52a 100644 (file)
@@ -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)
 {
index 17a2dd6920b6d1eda7cfeb3e08b9623ab3154c0a..0ae4afdcccc8108d963930aa16b0bc6ab928377a 100644 (file)
@@ -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)
 {
index 5177591a67cb21d7e09cc4d84e42e40c56f8f96f..ed899bf49f749451d91a80ae55c87c80f091f50f 100644 (file)
@@ -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)
 {