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