Add declarations to eliminate -Wmissing-prototypes warnings
This commit is contained in:
parent
97f3e1c2a2
commit
e0b54d0140
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -38,6 +38,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "libc_private.h"
|
||||
|
||||
int __pause(void);
|
||||
|
||||
/*
|
||||
* Backwards compatible pause.
|
||||
*/
|
||||
|
@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
__weak_reference(__raise, raise);
|
||||
__weak_reference(__raise, _raise);
|
||||
int __raise(int s);
|
||||
|
||||
int
|
||||
__raise(int s)
|
||||
|
@ -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, ...)
|
||||
|
@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "libc_private.h"
|
||||
|
||||
unsigned int __sleep(unsigned int seconds);
|
||||
|
||||
unsigned int
|
||||
__sleep(unsigned int seconds)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include <errno.h>
|
||||
#undef uname
|
||||
|
||||
int uname(struct utsname *name);
|
||||
|
||||
int
|
||||
uname(struct utsname *name)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "libc_private.h"
|
||||
|
||||
int __usleep(useconds_t useconds);
|
||||
|
||||
int
|
||||
__usleep(useconds_t useconds)
|
||||
{
|
||||
|
@ -42,6 +42,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include "libc_private.h"
|
||||
|
||||
pid_t __wait(int *istat);
|
||||
|
||||
pid_t
|
||||
__wait(int *istat)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user