Skip to content

Commit

Permalink
[BZ #2182]
Browse files Browse the repository at this point in the history
	* 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.
  • Loading branch information
Ulrich Drepper committed Aug 3, 2006
1 parent f13bfdd commit fe71025
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions include/sys/msg.h
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
4 changes: 4 additions & 0 deletions math/s_cacosh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions math/s_cacoshf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions math/s_cacoshl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions sysvipc/msgrcv.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit fe71025

Please sign in to comment.