__tcdrain.
* posix/glob.c (glob): Use prototype in getlogin decl.
* db/ndbm.h: Declare dbm_error, dbm_clearerr.
* db/db/db.c (__dberr): Define with prototype.
(__dbpanic): Use prototypes in casts.
* db/hash/hash_log2.c: Add prototype decl.
* sysdeps/generic/_strerror.c (_strerror_internal): Define with
prototype.
Fri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
+ * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
+ __tcdrain.
+
+ * posix/glob.c (glob): Use prototype in getlogin decl.
+
+ * db/ndbm.h: Declare dbm_error, dbm_clearerr.
+ * db/db/db.c (__dberr): Define with prototype.
+ (__dbpanic): Use prototypes in casts.
+ * db/hash/hash_log2.c: Add prototype decl.
+
+ * sysdeps/generic/_strerror.c (_strerror_internal): Define with
+ prototype.
+
* sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
They will be overridden with syscalls if extant by unix/syscalls.list.
}
static int
-__dberr()
+__dberr __P((void))
{
return (RET_ERROR);
}
DB *dbp;
{
/* The only thing that can succeed is a close. */
- dbp->del = (int (*)())__dberr;
- dbp->fd = (int (*)())__dberr;
- dbp->get = (int (*)())__dberr;
- dbp->put = (int (*)())__dberr;
- dbp->seq = (int (*)())__dberr;
- dbp->sync = (int (*)())__dberr;
+ dbp->del = (int (*)__P((const struct __db *,
+ const DBT *, u_int))) __dberr;
+ dbp->get = (int (*)__P((const struct __db *,
+ const DBT *, DBT *, u_int))) __dberr;
+ dbp->put = (int (*)__P((const struct __db *,
+ DBT *, const DBT *, u_int))) __dberr;
+ dbp->seq = (int (*)__P((const struct __db *,
+ DBT *, DBT *, u_int))) __dberr;
+ dbp->sync = (int (*)__P((const struct __db *, u_int))) __dberr;
+ dbp->fd = (int (*)__P((const struct __db *))) __dberr;
}
#include <db.h>
+u_int32_t __log2 __P((u_int32_t));
+
u_int32_t
__log2(num)
u_int32_t num;
DBM *dbm_open __P((const char *, int, int));
int dbm_store __P((DBM *, datum, datum, int));
int dbm_dirfno __P((DBM *));
+int dbm_error __P((DBM *));
+int dbm_clearerr __P((DBM *));
__END_DECLS
#endif /* !_NDBM_H_ */
`first_nonopt' and `last_nonopt' are relocated so that they describe
the new indices of the non-options in ARGV after they are moved. */
+#if defined (__STDC__) && __STDC__
+static void exchange (char **);
+#endif
+
static void
exchange (argv)
char **argv;
/* Initialize the internal data when the first call is made. */
+#if defined (__STDC__) && __STDC__
+static const char *_getopt_initialize (const char *);
+#endif
static const char *
_getopt_initialize (optstring)
const char *optstring;
dirname = getenv ("HOME");
if (dirname == NULL || dirname[0] == '\0')
{
- extern char *getlogin ();
+ extern char *getlogin __P ((void));
char *name = getlogin ();
if (name != NULL)
{
-/* Copyright (C) 1991, 1993, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993, 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
/* Return a string describing the errno code in ERRNUM. */
char *
-_strerror_internal (errnum, buf, buflen)
- int errnum;
- char *buf;
- size_t buflen;
+_strerror_internal (int errnum,
+ char *buf,
+ size_t buflen)
{
if (errnum < 0 || errnum >= _sys_nerr)
{
-/* Copyright (C) 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
/* Wait for pending output to be written on FD. */
int
-__tcdrain (fd)
+tcdrain (fd)
int fd;
{
/* With an argument of 1, TCSBRK for output to be drain. */
return __ioctl (fd, TCSBRK, 1);
}
-
-weak_alias (__tcdrain, tcdrain)