+1998-06-15 Ulrich Drepper <drepper@cygnus.com>
+
+ * Makefile: Add more dependecies for running tests.
+ Reported by HJ Lu.
+
1998-06-14 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* locales/sk_SK: Add repertoiremap.
do-collate-test: sort-test.sh $(objpfx)collate-test $(objpfx)xfrm-test \
$(test-input:.ISO-8859-1=.in)
$(SHELL) -e $< $(common-objpfx) $(test-input)
-do-tst-fmon: tst-fmon.sh $(objpfx)tst-fmon tst-fmon.data
+do-tst-fmon: tst-fmon.sh $(objpfx)tst-fmon tst-fmon.data do-collate-test
$(SHELL) -e $< $(common-objpfx) tst-fmon.data
do-tst-locale: tst-locale.sh $(ld-test-srcs)
$(SHELL) -e $< $(common-objpfx)
-do-tst-rpmatch: tst-rpmatch.sh $(objpfx)tst-rpmatch do-collate-test
+do-tst-rpmatch: tst-rpmatch.sh $(objpfx)tst-rpmatch do-tst-fmon
$(SHELL) -e $< $(common-objpfx)
endif
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 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
/* Force all operations associated with file desriptor described by
`aio_fildes' member of AIOCBP. */
-extern int aio_fsync __P ((int __op, struct aiocb *__aiocbp));
+extern int aio_fsync __P ((int __operation, struct aiocb *__aiocbp));
#else
# ifdef __REDIRECT
extern int __REDIRECT (aio_read, __P ((struct aiocb *__aiocbp)), aio_read64);
int __nent, __const struct timespec *__timeout)),
aio_suspend64);
-extern int __REDIRECT (aio_fsync __P ((int __op, struct aiocb *__aiocbp)),
+extern int __REDIRECT (aio_fsync __P ((int __operation,
+ struct aiocb *__aiocbp)),
aio_fsync64);
# else
int __nent,
__const struct timespec *__timeout));
-extern int aio_fsync64 __P ((int __op, struct aiocb64 *__aiocbp));
+extern int aio_fsync64 __P ((int __operation, struct aiocb64 *__aiocbp));
#endif
__END_DECLS
-# Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
+# Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98 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
tests := tst-printf tstscanf test_rdwr test-popen tstgetln test-fseek \
temptest tst-fileno test-fwrite tst-ungetc tst-ferror \
xbug errnobug \
- bug1 bug2 bug3 bug4 bug5 bug6 bug7 bug8 bug9 bug10 bug11 \
+ bug1 bug2 bug3 bug4 bug5 bug6 bug7 bug8 bug9 bug10 bug11 bug12 \
tfformat tiformat tstdiomisc tst-printfsz tst-wc-printf \
scanf1 scanf2 scanf3 scanf4 scanf5 scanf7 scanf8 scanf9 scanf10
--- /dev/null
+#include <stdio.h>
+#include <string.h>
+
+char x[4096], z[4096], b[21], m[4096 * 4];
+
+int
+main (void)
+{
+ FILE *f = tmpfile ();
+ int i, failed = 0;
+
+ memset (x, 'x', 4096);
+ memset (z, 'z', 4096);
+ b[20] = 0;
+
+ for (i = 0; i <= 5; i++)
+ {
+ fwrite (x, 4096, 1, f);
+ fwrite (z, 4096, 1, f);
+ }
+ rewind (f);
+
+ fread (m, 4096 * 4 - 10, 1, f);
+ fread (b, 20, 1, f);
+ printf ("got %s (should be %s)\n", b, "zzzzzzzzzzxxxxxxxxxx");
+ if (strcmp (b, "zzzzzzzzzzxxxxxxxxxx"))
+ failed = 1;
+
+ fseek (f, -40, SEEK_CUR);
+ fread (b, 20, 1, f);
+ printf ("got %s (should be %s)\n", b, "zzzzzzzzzzzzzzzzzzzz");
+ if (strcmp (b, "zzzzzzzzzzzzzzzzzzzz"))
+ failed = 1;
+
+ fread (b, 20, 1, f);
+ printf ("got %s (should be %s)\n", b, "zzzzzzzzzzxxxxxxxxxx");
+ if (strcmp (b, "zzzzzzzzzzxxxxxxxxxx"))
+ failed = 1;
+
+ fread (b, 20, 1, f);
+ printf ("got %s (should be %s)\n", b, "xxxxxxxxxxxxxxxxxxxx");
+ if (strcmp (b, "xxxxxxxxxxxxxxxxxxxx"))
+ failed = 1;
+
+ return failed;
+}
make_siglist.c signame.c signame.h
det_endian.c
entry.h
+errno-loc.c.
getresgid.c
getresuid.c
#define globfree(pglob) \
__new_globfree (pglob)
+/* We need prototypes for these new names. */
+extern int __new_glob (const char *__pattern, int __flags,
+ int (*__errfunc) (const char *, int),
+ glob_t *__pglob);
+extern void __new_globfree (glob_t *__pglob);
+
#include <sysdeps/generic/glob.c>
#undef glob