diff options
author | Andreas Jaeger <aj@suse.de> | 2000-12-27 19:58:36 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-12-27 19:58:36 +0000 |
commit | ed073f0e6249dc1bcecb3f72fa941d01b516be3f (patch) | |
tree | 8dfe5133dfe2d1516103f7f46cca1ff44bdb4f01 /include | |
parent | 27ee0a559513db0d0e650761b6f4268b39199c74 (diff) | |
download | glibc-ed073f0e6249dc1bcecb3f72fa941d01b516be3f.tar.gz glibc-ed073f0e6249dc1bcecb3f72fa941d01b516be3f.tar.xz glibc-ed073f0e6249dc1bcecb3f72fa941d01b516be3f.zip |
Add prototype for foo.
Diffstat (limited to 'include')
-rw-r--r-- | include/fenv.h | 13 | ||||
-rw-r--r-- | include/grp.h | 13 | ||||
-rw-r--r-- | include/netinet/ether.h | 29 | ||||
-rw-r--r-- | include/pwd.h | 14 | ||||
-rw-r--r-- | include/shadow.h | 10 | ||||
-rw-r--r-- | include/stdio.h | 5 |
6 files changed, 72 insertions, 12 deletions
diff --git a/include/fenv.h b/include/fenv.h index b2da08406c..b7db444a39 100644 --- a/include/fenv.h +++ b/include/fenv.h @@ -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 diff --git a/include/grp.h b/include/grp.h index bb5a0408b5..6b13ea1b3d 100644 --- a/include/grp.h +++ b/include/grp.h @@ -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); \ diff --git a/include/netinet/ether.h b/include/netinet/ether.h index fc3460df8e..98947aaec7 100644 --- a/include/netinet/ether.h +++ b/include/netinet/ether.h @@ -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) diff --git a/include/pwd.h b/include/pwd.h index 25656ef281..341c6cee16 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -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); \ diff --git a/include/shadow.h b/include/shadow.h index 5bbaac3543..0ae6b2111a 100644 --- a/include/shadow.h +++ b/include/shadow.h @@ -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); \ diff --git a/include/stdio.h b/include/stdio.h index ce06a41842..e4ae35333d 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -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 |