mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 05:50:14 +00:00
Add prototype for foo.
This commit is contained in:
parent
27ee0a5595
commit
ed073f0e62
@ -52,6 +52,8 @@ main (void)
|
||||
}
|
||||
|
||||
|
||||
extern void foo (void);
|
||||
|
||||
void
|
||||
foo (void)
|
||||
{
|
||||
|
@ -35,6 +35,8 @@ load (const char *name)
|
||||
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
extern int do_test (void);
|
||||
|
||||
int
|
||||
do_test (void)
|
||||
{
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
extern int do_test (void);
|
||||
|
||||
int
|
||||
do_test (void)
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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); \
|
||||
|
@ -10,18 +10,23 @@ struct etherent
|
||||
struct ether_addr e_addr;
|
||||
};
|
||||
|
||||
#define DECLARE_NSS_PROTOTYPES(service) \
|
||||
extern enum nss_status _nss_ ## service ## _setetherent (void); \
|
||||
extern enum nss_status _nss_ ## service ## _endetherent (void); \
|
||||
extern enum nss_status _nss_ ## service ## _getetherent_r \
|
||||
(struct etherent *result, char *buffer, \
|
||||
size_t buflen, int *errnop); \
|
||||
extern enum nss_status _nss_ ## service ## _gethostton_r \
|
||||
(const char *name, struct etherent *eth, \
|
||||
char *buffer, size_t buflen, int *errnop); \
|
||||
extern enum nss_status _nss_ ## service ## _getntohost_r \
|
||||
(const struct ether_addr *addr, \
|
||||
struct etherent *eth, \
|
||||
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 (int __stayopen); \
|
||||
extern enum nss_status _nss_ ## service ## _endetherent (void); \
|
||||
extern enum nss_status _nss_ ## service ## _getetherent_r \
|
||||
(struct etherent *result, char *buffer, \
|
||||
size_t buflen, int *errnop); \
|
||||
extern enum nss_status _nss_ ## service ## _gethostton_r \
|
||||
(const char *name, struct etherent *eth, \
|
||||
char *buffer, size_t buflen, int *errnop); \
|
||||
extern enum nss_status _nss_ ## service ## _getntohost_r \
|
||||
(const struct ether_addr *addr, \
|
||||
struct etherent *eth, \
|
||||
char *buffer, size_t buflen, int *errnop);
|
||||
|
||||
DECLARE_NSS_PROTOTYPES (files)
|
||||
|
@ -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); \
|
||||
|
@ -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); \
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -109,7 +109,7 @@ internal_nis_setetherent (void)
|
||||
}
|
||||
|
||||
enum nss_status
|
||||
_nss_nis_setetherent (void)
|
||||
_nss_nis_setetherent (int stayopen)
|
||||
{
|
||||
enum nss_status result;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user