mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Update.
* misc/regexp.h: Say the functions have been withdrawn.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2004-05-19 Ulrich Drepper <drepper@redhat.com>
|
2004-05-19 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* misc/regexp.h: Say the functions have been withdrawn.
|
||||||
|
|
||||||
* wcsmbs/tst-wcpncpy.c: Add more tests.
|
* wcsmbs/tst-wcpncpy.c: Add more tests.
|
||||||
|
|
||||||
2004-05-18 Roland McGrath <roland@frob.com>
|
2004-05-18 Roland McGrath <roland@frob.com>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1998, 1999, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
|
||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
/* The contents of this header file was first standardized in X/Open
|
/* The contents of this header file was first standardized in X/Open
|
||||||
System Interface and Headers Issue 2, originally coming from SysV.
|
System Interface and Headers Issue 2, originally coming from SysV.
|
||||||
In issue 4, version 2, it is marked as TO BE WITDRAWN.
|
In issue 4, version 2, it is marked as TO BE WITDRAWN, and it has
|
||||||
|
been withdrawn in SUSv3.
|
||||||
|
|
||||||
This code shouldn't be used in any newly written code. It is
|
This code shouldn't be used in any newly written code. It is
|
||||||
included only for compatibility reasons. Use the POSIX definition
|
included only for compatibility reasons. Use the POSIX definition
|
||||||
|
@@ -27,7 +27,7 @@ main (void)
|
|||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
const wchar_t src[] = L"0";
|
const wchar_t src[] = L"0";
|
||||||
wchar_t dest[10];
|
wchar_t dest[21];
|
||||||
wmemset (dest, L'\0', 10);
|
wmemset (dest, L'\0', 10);
|
||||||
wchar_t *endp = wcpncpy (dest, src, 2);
|
wchar_t *endp = wcpncpy (dest, src, 2);
|
||||||
if (wcscmp (dest, src) != 0)
|
if (wcscmp (dest, src) != 0)
|
||||||
@@ -65,5 +65,13 @@ main (void)
|
|||||||
puts ("return value of long string call incorrect");
|
puts ("return value of long string call incorrect");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const wchar_t src5[] = L"ab";
|
||||||
|
endp = wcpncpy (dest, src5, 20);
|
||||||
|
if (endp != dest + 2)
|
||||||
|
{
|
||||||
|
result = 1;
|
||||||
|
puts ("return value of large limit call incorrect");
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user