1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
* stdlib/canonicalize.c (canonicalize): Rename to __realpath and
	don't define static.  Remove old __realpath function.  TC1 of
	POSIX 2001 will allow the second parameter to be NULL.
	* stdlib/test-canon.c: Comment out test for NULL as second
	parameter of realpath.

	* time/offtime.c (__offtime): Set errno if overflow is detected.
This commit is contained in:
Ulrich Drepper
2002-05-16 06:14:36 +00:00
parent 4e960bbf4e
commit f7501ae6f1
4 changed files with 23 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
/* Test program for returning the canonical absolute name of a given file.
Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Mosberger <davidm@azstarnet.com>.
@@ -132,6 +132,8 @@ do_test (int argc, char ** argv)
++errors;
}
#if 0
/* This is now allowed. The test is invalid. */
errno = 0;
if (realpath ("/", NULL) != NULL || errno != EINVAL)
{
@@ -139,6 +141,7 @@ do_test (int argc, char ** argv)
" for realpath(...,NULL)\n", argv[0]);
++errors;
}
#endif
errno = 0;
if (realpath ("", buf) != NULL || errno != ENOENT)