Add prototype for foo.

This commit is contained in:
Andreas Jaeger 2000-12-27 19:58:36 +00:00
parent 27ee0a5595
commit ed073f0e62
18 changed files with 99 additions and 28 deletions

View File

@ -52,6 +52,8 @@ main (void)
}
extern void foo (void);
void
foo (void)
{

View File

@ -35,6 +35,8 @@ load (const char *name)
#define TEST_FUNCTION do_test ()
extern int do_test (void);
int
do_test (void)
{

View File

@ -26,6 +26,7 @@
#define TEST_FUNCTION do_test ()
extern int do_test (void);
int
do_test (void)

View File

@ -538,5 +538,7 @@ _dl_mcount (ElfW(Addr) frompc, ElfW(Addr) selfpc)
#if 0
/* XXX See above, Shouldn't be necessary anymore. */
state = GMON_PROF_ON;
#else
;
#endif
}

View File

@ -1 +1,14 @@
#ifndef _FENV_H
#include <math/fenv.h>
/* Now define the internal interfaces. */
extern int __feclearexcept (int __excepts);
extern int __fegetexceptflag (fexcept_t *__flagp, int __excepts);
extern int __feraiseexcept (int __excepts);
extern int __fesetexceptflag (__const fexcept_t *__flagp, int __excepts);
extern int __fegetenv (fenv_t *__envp);
extern int __fesetenv (__const fenv_t *__envp);
extern int __feupdateenv (__const fenv_t *__envp);
#endif

View File

@ -4,6 +4,8 @@
/* Now define the internal interfaces. */
extern int __getgrent_r (struct group *__resultbuf, char *buffer,
size_t __buflen, struct group **__result);
extern int __old_getgrent_r (struct group *__resultbuf, char *buffer,
size_t __buflen, struct group **__result);
extern int __fgetgrent_r (FILE * __stream, struct group *__resultbuf,
char *buffer, size_t __buflen,
struct group **__result);
@ -12,11 +14,22 @@ extern int __fgetgrent_r (FILE * __stream, struct group *__resultbuf,
extern int __getgrgid_r (__gid_t __gid, struct group *__resultbuf,
char *__buffer, size_t __buflen,
struct group **__result);
extern int __old_getgrgid_r (__gid_t __gid, struct group *__resultbuf,
char *__buffer, size_t __buflen,
struct group **__result);
/* Search for an entry with a matching group name. */
extern int __getgrnam_r (__const char *__name, struct group *__resultbuf,
char *__buffer, size_t __buflen,
struct group **__result);
extern int __old_getgrnam_r (__const char *__name, struct group *__resultbuf,
char *__buffer, size_t __buflen,
struct group **__result);
struct parser_data;
extern int _nss_files_parse_grent (char *line, struct group *result,
struct parser_data *data,
size_t datalen, int *errnop);
#define DECLARE_NSS_PROTOTYPES(service) \
extern enum nss_status _nss_ ## service ## _setgrent (int); \

View File

@ -10,8 +10,13 @@ struct etherent
struct ether_addr e_addr;
};
struct parser_data;
extern int _nss_files_parse_etherent (char *line, struct etherent *result,
struct parser_data *data,
size_t datalen, int *errnop);
#define DECLARE_NSS_PROTOTYPES(service) \
extern enum nss_status _nss_ ## service ## _setetherent (void); \
extern enum nss_status _nss_ ## service ## _setetherent (int __stayopen); \
extern enum nss_status _nss_ ## service ## _endetherent (void); \
extern enum nss_status _nss_ ## service ## _getetherent_r \
(struct etherent *result, char *buffer, \

View File

@ -4,17 +4,31 @@
/* Now define the internal interfaces. */
extern int __getpwent_r (struct passwd *__resultbuf, char *__buffer,
size_t __buflen, struct passwd **__result);
extern int __old_getpwent_r (struct passwd *__resultbuf, char *__buffer,
size_t __buflen, struct passwd **__result);
extern int __getpwuid_r (__uid_t __uid, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result);
extern int __old_getpwuid_r (__uid_t __uid, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result);
extern int __getpwnam_r (__const char *__name, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result);
extern int __old_getpwnam_r (__const char *__name, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result);
extern int __fgetpwent_r (FILE * __stream, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result);
#include <nss/nss.h>
struct parser_data;
extern int _nss_files_parse_pwent (char *line, struct passwd *result,
struct parser_data *data,
size_t datalen, int *errnop);
#define DECLARE_NSS_PROTOTYPES(service) \
extern enum nss_status _nss_ ## service ## _setpwent (int); \
extern enum nss_status _nss_ ## service ## _endpwent (void); \

View File

@ -4,9 +4,14 @@
/* Now define the internal interfaces. */
extern int __getspent_r (struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result);
extern int __old_getspent_r (struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result);
extern int __getspnam_r (__const char *__name, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result);
extern int __old_getspnam_r (__const char *__name, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result);
extern int __sgetspent_r (__const char *__string,
struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result);
@ -16,6 +21,11 @@ extern int __fgetspent_r (FILE *__stream, struct spwd *__result_buf,
extern int __lckpwdf (void);
extern int __ulckpwdf (void);
struct parser_data;
extern int _nss_files_parse_spent (char *line, struct spwd *result,
struct parser_data *data,
size_t datalen, int *errnop);
#define DECLARE_NSS_PROTOTYPES(service) \
extern enum nss_status _nss_ ## service ## _setspent (int); \
extern enum nss_status _nss_ ## service ## _endspent (void); \

View File

@ -28,6 +28,11 @@ extern int __vsscanf (__const char *__restrict __s,
_G_va_list __arg)
__attribute__ ((__format__ (__scanf__, 2, 0)));
/* Prototypes for compatibility functions. */
extern FILE *__new_tmpfile (void);
extern FILE *__old_tmpfile (void);
# else
# include <stdio/stdio.h>
# endif

View File

@ -51,6 +51,9 @@ extern nis_error __do_niscall3 (dir_binding *dbp, u_long prog,
xdrproc_t xres, caddr_t resp,
unsigned int flags, nis_cb *cb);
extern u_short __pmap_getnisport (struct sockaddr_in *address, u_long program,
u_long version, u_int protocol);
/* NIS+ callback */
extern nis_error __nis_do_callback (struct dir_binding *bptr,
netobj *cookie, struct nis_cb *cb);

View File

@ -109,7 +109,7 @@ internal_nis_setetherent (void)
}
enum nss_status
_nss_nis_setetherent (void)
_nss_nis_setetherent (int stayopen)
{
enum nss_status result;

View File

@ -1,6 +1,6 @@
/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@ -98,7 +98,7 @@ _nss_create_tablename (int *errnop)
enum nss_status
_nss_nisplus_setetherent (void)
_nss_nisplus_setetherent (int stayopen)
{
enum nss_status status;
int err;

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
/* Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@ -55,6 +55,8 @@
service_user *DATABASE_NAME_SYMBOL;
extern int DB_LOOKUP_FCT (service_user **ni, const char *fct_name, void **fctp);
int
DB_LOOKUP_FCT (service_user **ni, const char *fct_name, void **fctp)
{

View File

@ -17,16 +17,9 @@
Boston, MA 02111-1307, USA. */
#include <string.h>
#include <netinet/ether.h>
#include <netinet/if_ether.h>
/* Because the `ethers' lookup does not fit so well in the scheme so
we define a dummy struct here which helps us to use the available
functions. */
struct etherent
{
const char *e_name;
struct ether_addr e_addr;
};
struct etherent_data {};
#define ENTNAME etherent
@ -72,4 +65,4 @@ DB_LOOKUP (ntohost, 18, ("=%x:%x:%x:%x:%x:%x",
if (memcmp (&result->e_addr, addr,
sizeof (struct ether_addr)) == 0)
break;
}, struct ether_addr *addr)
}, const struct ether_addr *addr)

View File

@ -82,9 +82,10 @@ struct __res_state _res
#endif
/* Proto. */
#ifndef _LIBC
int res_ourserver_p(const res_state, const struct sockaddr_in *);
void res_pquery(const res_state, const u_char *, int, FILE *);
#endif
#ifndef _LIBC
/* Moved to res_libc.c since res_init() should go into libc.so but the

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
/* Copyright (C) 1994, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
On-Line Applications Research Corporation.
@ -27,6 +27,9 @@ main (void)
{
int failures = 0;
int i;
auto void try (int value, int expected);
void try (int value, int expected)
{
if (ffs (value) != expected)

View File

@ -29,6 +29,8 @@ static char sccsid[] = "@(#)des_soft.c 2.2 88/08/10 4.0 RPCSRC; from 1.13 88/02/
* 2550 Garcia Avenue
* Mountain View, California 94043
*/
#include <rpc/des_crypt.h>
/*
* Table giving odd parity in the low bit for ASCII characters
*/