1998-10-11  Ulrich Drepper  <drepper@cygnus.com>

	* Rules [posix in sysdirs]: Set L_tmpnam to 20.
	Patch by Zack Weinberg <zack@rabi.columbia.edu>.

	* string/bits/string2.h [!_STRING_ARCH_unaligned]
	(__mempcpy_small): Add parameter for 1 byte copy and use it.
	Reported by Geoff Keating <geoffk@ozemail.com.au>.
This commit is contained in:
Ulrich Drepper 1998-10-11 08:57:42 +00:00
parent 7ccc548bd7
commit 431f91ba3a
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,12 @@
1998-10-11 Ulrich Drepper <drepper@cygnus.com>
* Rules [posix in sysdirs]: Set L_tmpnam to 20.
Patch by Zack Weinberg <zack@rabi.columbia.edu>.
* string/bits/string2.h [!_STRING_ARCH_unaligned]
(__mempcpy_small): Add parameter for 1 byte copy and use it.
Reported by Geoff Keating <geoffk@ozemail.com.au>.
1998-10-09 Mark Kettenis <kettenis@phys.uva.nl> 1998-10-09 Mark Kettenis <kettenis@phys.uva.nl>
* sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove, * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,

2
Rules
View File

@ -209,7 +209,7 @@ TMP_MAX = 0
L_ctermid = 1 L_ctermid = 1
L_cuserid = 1 L_cuserid = 1
else else
L_tmpnam = 19 L_tmpnam = 20
TMP_MAX = 238328 TMP_MAX = 238328
L_ctermid = 9 L_ctermid = 9
L_cuserid = 9 L_cuserid = 9

View File

@ -173,6 +173,7 @@ __mempcpy_small (void *__dest1,
} }
# else # else
# define __mempcpy_args(src) \ # define __mempcpy_args(src) \
((__const char *) (src))[0], \
__extension__ ((__STRING2_COPY_ARR2) \ __extension__ ((__STRING2_COPY_ARR2) \
{ { ((__const char *) (src))[0], ((__const char *) (src))[1] } }), \ { { ((__const char *) (src))[0], ((__const char *) (src))[1] } }), \
__extension__ ((__STRING2_COPY_ARR3) \ __extension__ ((__STRING2_COPY_ARR3) \
@ -200,7 +201,7 @@ __mempcpy_small (void *__dest1,
((__const char *) (src))[4], ((__const char *) (src))[5], \ ((__const char *) (src))[4], ((__const char *) (src))[5], \
((__const char *) (src))[6], ((__const char *) (src))[7] } }) ((__const char *) (src))[6], ((__const char *) (src))[7] } })
__STRING_INLINE void * __STRING_INLINE void *
__mempcpy_small (void *__dest1, __mempcpy_small (void *__dest1, char __src1,
__STRING2_COPY_ARR2 __src2, __STRING2_COPY_ARR3 __src3, __STRING2_COPY_ARR2 __src2, __STRING2_COPY_ARR3 __src3,
__STRING2_COPY_ARR4 __src4, __STRING2_COPY_ARR5 __src5, __STRING2_COPY_ARR4 __src4, __STRING2_COPY_ARR5 __src5,
__STRING2_COPY_ARR6 __src6, __STRING2_COPY_ARR7 __src7, __STRING2_COPY_ARR6 __src6, __STRING2_COPY_ARR7 __src7,
@ -210,7 +211,7 @@ __mempcpy_small (void *__dest1,
switch (__srclen) switch (__srclen)
{ {
case 1: case 1:
*__dest = '\0'; *__dest = __src1;
break; break;
case 2: case 2:
__extension__ *((__STRING2_COPY_ARR2 *) __dest) = __src2; __extension__ *((__STRING2_COPY_ARR2 *) __dest) = __src2;