mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 21:40:12 +00:00
[BZ #2182]
* math/s_cacosh.c: Return values from positive branch. * math/s_cacoshf.c: Likewise. * math/s_cacoshl.c: Likewise. * sysvipc/msgrcv.c: Likewise. * include/sys/msg.h: Likewise.
This commit is contained in:
parent
f13bfdd0bd
commit
fe71025050
@ -1,8 +1,15 @@
|
||||
2006-08-03 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #2182]
|
||||
* math/s_cacosh.c: Return values from positive branch.
|
||||
* math/s_cacoshf.c: Likewise.
|
||||
* math/s_cacoshl.c: Likewise.
|
||||
|
||||
[BZ #2883]
|
||||
* sysvipc/sys/msg.h: Change return value to ssize_t.
|
||||
* sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
|
||||
* sysvipc/msgrcv.c: Likewise.
|
||||
* include/sys/msg.h: Likewise.
|
||||
|
||||
* grp/initgroups.c (internal_getgrouplist): Remove unnecessary
|
||||
test introduced in patch for bz #661.
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef _SYS_MSG_H
|
||||
#include <sysvipc/sys/msg.h>
|
||||
|
||||
extern int __libc_msgrcv (int msqid, void *msgp, size_t msgsz, long int msgtyp,
|
||||
int msgflg);
|
||||
extern ssize_t __libc_msgrcv (int msqid, void *msgp, size_t msgsz,
|
||||
long int msgtyp, int msgflg);
|
||||
extern int __libc_msgsnd (int msqid, const void *msgp, size_t msgsz,
|
||||
int msgflg);
|
||||
|
||||
|
@ -80,6 +80,10 @@ __cacosh (__complex__ double x)
|
||||
__imag__ y += __imag__ x;
|
||||
|
||||
res = __clog (y);
|
||||
|
||||
/* We have to use the positive branch. */
|
||||
if (__real__ res < 0.0)
|
||||
res = -res;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
@ -95,6 +95,10 @@ __cacoshf (__complex__ float x)
|
||||
+ ro);
|
||||
__imag__ res = __ieee754_atan2f (__imag__ x + b, __real__ x + a);
|
||||
#endif
|
||||
|
||||
/* We have to use the positive branch. */
|
||||
if (__real__ res < 0.0)
|
||||
res = -res;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
@ -80,6 +80,10 @@ __cacoshl (__complex__ long double x)
|
||||
__imag__ y += __imag__ x;
|
||||
|
||||
res = __clogl (y);
|
||||
|
||||
/* We have to use the positive branch. */
|
||||
if (__real__ res < 0.0)
|
||||
res = -res;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1996, 1997, 2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
describes which message is returned in MSGFLG describes the behaviour
|
||||
in buffer overflow or queue underflow. */
|
||||
|
||||
int
|
||||
ssize_t
|
||||
msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
|
||||
int msqid;
|
||||
void *msgp;
|
||||
|
Loading…
Reference in New Issue
Block a user