mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
1998-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/unix/sysv/linux/bits/sockunion.h: Fix error message. * manual/socket.texi (Interface Naming): Fix typo. 1998-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/examples/filesrv.c (main): Remove filename first. * manual/socket.texi (Address Formats): Change ?F_LOCAL, ?F_FILE, ?F_UNIX. * manual/examples/mkfsock.c (make_named_socket): Use PF_LOCAL instead of PF_UNIX. * manual/examples/filecli.c (main): Use AF_LOCAL instead of AF_UNIX. 1998-04-09 Ulrich Drepper <drepper@cygnus.com> * sysdeps/libm-ieee754/s_signgam.c: Define __signgam and make signgam weak alias. * sysdeps/libm-ieee754/w_lgamma.c: Use __signgam not signgam. * sysdeps/libm-ieee754/w_lgammaf.c: Likewise. * sysdeps/libm-ieee754/w_lgammal.c: Likewise. * sysdeps/libm-ieee754/w_gamma.c: Likewise. * sysdeps/libm-ieee754/w_gammaf.c: Likewise. * sysdeps/libm-ieee754/w_gammal.c: Likewise. * login/utmp_daemon.c (open_socket): Use __connect not connect. * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (SA_LEN): New macro. * Makerules: Re-add missing rule for $(objpfx)stamp.oS.
This commit is contained in:
36
ChangeLog
36
ChangeLog
@ -1,3 +1,35 @@
|
|||||||
|
1998-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/bits/sockunion.h: Fix error message.
|
||||||
|
|
||||||
|
* manual/socket.texi (Interface Naming): Fix typo.
|
||||||
|
|
||||||
|
1998-04-07 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||||
|
|
||||||
|
* manual/examples/filesrv.c (main): Remove filename first.
|
||||||
|
|
||||||
|
* manual/socket.texi (Address Formats): Change ?F_LOCAL, ?F_FILE,
|
||||||
|
?F_UNIX.
|
||||||
|
|
||||||
|
* manual/examples/mkfsock.c (make_named_socket): Use PF_LOCAL
|
||||||
|
instead of PF_UNIX.
|
||||||
|
|
||||||
|
* manual/examples/filecli.c (main): Use AF_LOCAL
|
||||||
|
instead of AF_UNIX.
|
||||||
|
|
||||||
|
1998-04-09 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* sysdeps/libm-ieee754/s_signgam.c: Define __signgam and make
|
||||||
|
signgam weak alias.
|
||||||
|
* sysdeps/libm-ieee754/w_lgamma.c: Use __signgam not signgam.
|
||||||
|
* sysdeps/libm-ieee754/w_lgammaf.c: Likewise.
|
||||||
|
* sysdeps/libm-ieee754/w_lgammal.c: Likewise.
|
||||||
|
* sysdeps/libm-ieee754/w_gamma.c: Likewise.
|
||||||
|
* sysdeps/libm-ieee754/w_gammaf.c: Likewise.
|
||||||
|
* sysdeps/libm-ieee754/w_gammal.c: Likewise.
|
||||||
|
|
||||||
|
* login/utmp_daemon.c (open_socket): Use __connect not connect.
|
||||||
|
|
||||||
1998-04-08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
1998-04-08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||||
|
|
||||||
* configure.in: Add new option --enable-force-install. Substitute
|
* configure.in: Add new option --enable-force-install. Substitute
|
||||||
@ -266,7 +298,7 @@
|
|||||||
(getnodebyname): New prototype.
|
(getnodebyname): New prototype.
|
||||||
(AI_V4MAPPED, et al.): New constants.
|
(AI_V4MAPPED, et al.): New constants.
|
||||||
|
|
||||||
* sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (SA_LEN): New macro.<
|
* sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (SA_LEN): New macro.
|
||||||
* sysdeps/generic/bits/sockaddr.h (SA_LEN): Likewise.
|
* sysdeps/generic/bits/sockaddr.h (SA_LEN): Likewise.
|
||||||
* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add sa_len
|
* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add sa_len
|
||||||
for socket.
|
for socket.
|
||||||
@ -342,7 +374,7 @@
|
|||||||
|
|
||||||
* Makeconfig (libtypes): Redo H.J. Lu's change of 1998-03-27.
|
* Makeconfig (libtypes): Redo H.J. Lu's change of 1998-03-27.
|
||||||
|
|
||||||
* Makerules: Readd missing rule for $(objpfx)stamp.oS.
|
* Makerules: Re-add missing rule for $(objpfx)stamp.oS.
|
||||||
|
|
||||||
1998-04-06 Thorsten Kukuk <kukuk@vt.uni-paderborn.de>
|
1998-04-06 Thorsten Kukuk <kukuk@vt.uni-paderborn.de>
|
||||||
|
|
||||||
|
@ -415,7 +415,7 @@ open_socket (const char *name)
|
|||||||
|
|
||||||
addr.sun_family = AF_UNIX;
|
addr.sun_family = AF_UNIX;
|
||||||
strcpy (addr.sun_path, name);
|
strcpy (addr.sun_path, name);
|
||||||
if (connect (sock, (struct sockaddr *) &addr, sizeof (addr)) < 0)
|
if (__connect (sock, (struct sockaddr *) &addr, sizeof (addr)) < 0)
|
||||||
{
|
{
|
||||||
close (sock);
|
close (sock);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -24,7 +24,7 @@ main (void)
|
|||||||
sock = make_named_socket (CLIENT);
|
sock = make_named_socket (CLIENT);
|
||||||
|
|
||||||
/* Initialize the server socket address. */
|
/* Initialize the server socket address. */
|
||||||
name.sun_family = AF_UNIX;
|
name.sun_family = AF_LOCAL;
|
||||||
strcpy (name.sun_path, SERVER);
|
strcpy (name.sun_path, SERVER);
|
||||||
size = strlen (name.sun_path) + sizeof (name.sun_family);
|
size = strlen (name.sun_path) + sizeof (name.sun_family);
|
||||||
|
|
||||||
|
@ -16,8 +16,10 @@ main (void)
|
|||||||
size_t size;
|
size_t size;
|
||||||
int nbytes;
|
int nbytes;
|
||||||
|
|
||||||
/* Make the socket, then loop endlessly. */
|
/* Remove the filename first, it's ok if the call fails */
|
||||||
|
unlink (SERVER);
|
||||||
|
|
||||||
|
/* Make the socket, then loop endlessly. */
|
||||||
sock = make_named_socket (SERVER);
|
sock = make_named_socket (SERVER);
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ make_named_socket (const char *filename)
|
|||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
/* Create the socket. */
|
/* Create the socket. */
|
||||||
sock = socket (PF_UNIX, SOCK_DGRAM, 0);
|
sock = socket (PF_LOCAL, SOCK_DGRAM, 0);
|
||||||
if (sock < 0)
|
if (sock < 0)
|
||||||
{
|
{
|
||||||
perror ("socket");
|
perror ("socket");
|
||||||
|
@ -328,27 +328,26 @@ corresponding namespace. Here is a list of address format names:
|
|||||||
|
|
||||||
@table @code
|
@table @code
|
||||||
@comment sys/socket.h
|
@comment sys/socket.h
|
||||||
@comment GNU
|
@comment POSIX
|
||||||
@item AF_FILE
|
@item AF_LOCAL
|
||||||
@vindex AF_FILE
|
@vindex AF_LOCAL
|
||||||
This designates the address format that goes with the file namespace.
|
This designates the address format that goes with the local namespace.
|
||||||
(@code{PF_FILE} is the name of that namespace.) @xref{Local Namespace
|
(@code{PF_LOCAL} is the name of that namespace.) @xref{Local Namespace
|
||||||
Details}, for information about this address format.
|
Details}, for information about this address format.
|
||||||
|
|
||||||
@comment sys/socket.h
|
@comment sys/socket.h
|
||||||
@comment BSD
|
@comment BSD
|
||||||
@item AF_UNIX
|
@item AF_UNIX
|
||||||
@vindex AF_UNIX
|
@vindex AF_UNIX
|
||||||
This is a synonym for @code{AF_FILE}, for compatibility.
|
This is a synonym for @code{AF_LOCAL}, for compatibility.
|
||||||
(@code{PF_UNIX} is likewise a synonym for @code{PF_FILE}.)
|
(@code{PF_UNIX} is likewise a synonym for @code{PF_LOCAL}.)
|
||||||
|
|
||||||
@comment sys/socket.h
|
@comment sys/socket.h
|
||||||
@comment BSD
|
@comment GNU
|
||||||
@item AF_UNIX
|
@item AF_FILE
|
||||||
@vindex AF_LOCAL
|
@vindex AF_FILE
|
||||||
This is another synonym for @code{AF_FILE}, for compatibility.
|
This is another synonym for @code{AF_LOCAL}, for compatibility.
|
||||||
(@code{PF_LOCAL} is likewise a synonym for @code{PF_FILE}.)
|
(@code{PF_FILE} is likewise a synonym for @code{PF_LOCAL}.)
|
||||||
@strong{POSIX? XXX}
|
|
||||||
|
|
||||||
@comment sys/socket.h
|
@comment sys/socket.h
|
||||||
@comment BSD
|
@comment BSD
|
||||||
@ -483,7 +482,7 @@ might be @code{lo} (the loopback interface) and @code{eth0} (the first
|
|||||||
Ethernet interface).
|
Ethernet interface).
|
||||||
|
|
||||||
Although such names are convenient for humans, it would be clumsy to
|
Although such names are convenient for humans, it would be clumsy to
|
||||||
have to use them whenever a program needed to refer to an interface. In
|
have to use them whenever a program needs to refer to an interface. In
|
||||||
such situations an interface is referred to by its @dfn{index}, which is
|
such situations an interface is referred to by its @dfn{index}, which is
|
||||||
an arbitrarily-assigned small positive integer.
|
an arbitrarily-assigned small positive integer.
|
||||||
|
|
||||||
@ -1953,7 +1952,7 @@ connection in progress (see @code{EINPROGRESS} above).
|
|||||||
This function is defined as a cancelation point in multi-threaded
|
This function is defined as a cancelation point in multi-threaded
|
||||||
programs. So one has to be prepared for this and make sure that
|
programs. So one has to be prepared for this and make sure that
|
||||||
possibly allocated resources (like memory, files descriptors,
|
possibly allocated resources (like memory, files descriptors,
|
||||||
semaphores or whatever) are freed even if the thread is cancel.
|
semaphores or whatever) are freed even if the thread is canceled.
|
||||||
@c @xref{pthread_cleanup_push}, for a method how to do this.
|
@c @xref{pthread_cleanup_push}, for a method how to do this.
|
||||||
@end deftypefun
|
@end deftypefun
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
int signgam = 0;
|
int __signgam = 0;
|
||||||
|
weak_alias (__signgam, signgam)
|
||||||
|
@ -22,6 +22,8 @@ static char rcsid[] = "$NetBSD: w_gamma.c,v 1.7 1995/11/20 22:06:43 jtc Exp $";
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
|
|
||||||
|
extern int __signgam;
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
double __gamma(double x)
|
double __gamma(double x)
|
||||||
#else
|
#else
|
||||||
@ -32,7 +34,7 @@ static char rcsid[] = "$NetBSD: w_gamma.c,v 1.7 1995/11/20 22:06:43 jtc Exp $";
|
|||||||
double y;
|
double y;
|
||||||
#ifndef _IEEE_LIBM
|
#ifndef _IEEE_LIBM
|
||||||
if (_LIB_VERSION == _SVID_)
|
if (_LIB_VERSION == _SVID_)
|
||||||
y = __ieee754_lgamma_r(x,&signgam);
|
y = __ieee754_lgamma_r(x,&__signgam);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,6 +20,8 @@ static char rcsid[] = "$NetBSD: w_gammaf.c,v 1.4 1995/11/20 22:06:48 jtc Exp $";
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
|
|
||||||
|
extern int __signgam;
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
float __gammaf(float x)
|
float __gammaf(float x)
|
||||||
#else
|
#else
|
||||||
@ -30,7 +32,7 @@ static char rcsid[] = "$NetBSD: w_gammaf.c,v 1.4 1995/11/20 22:06:48 jtc Exp $";
|
|||||||
float y;
|
float y;
|
||||||
#ifndef _IEEE_LIBM
|
#ifndef _IEEE_LIBM
|
||||||
if (_LIB_VERSION == _SVID_)
|
if (_LIB_VERSION == _SVID_)
|
||||||
y = __ieee754_lgammaf_r(x,&signgam);
|
y = __ieee754_lgammaf_r(x,&__signgam);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,6 +25,8 @@ static char rcsid[] = "$NetBSD: $";
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
|
|
||||||
|
extern int __signgam;
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
long double __gammal(long double x)
|
long double __gammal(long double x)
|
||||||
#else
|
#else
|
||||||
@ -35,7 +37,7 @@ static char rcsid[] = "$NetBSD: $";
|
|||||||
long double y;
|
long double y;
|
||||||
#ifndef _IEEE_LIBM
|
#ifndef _IEEE_LIBM
|
||||||
if (_LIB_VERSION == _SVID_)
|
if (_LIB_VERSION == _SVID_)
|
||||||
y = __ieee754_lgammal_r(x,&signgam);
|
y = __ieee754_lgammal_r(x,&__signgam);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,7 +23,7 @@ static char rcsid[] = "$NetBSD: w_lgamma.c,v 1.6 1995/05/10 20:49:24 jtc Exp $";
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
|
|
||||||
extern int signgam;
|
extern int __signgam;
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
double __lgamma(double x)
|
double __lgamma(double x)
|
||||||
@ -33,10 +33,10 @@ extern int signgam;
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef _IEEE_LIBM
|
#ifdef _IEEE_LIBM
|
||||||
return __ieee754_lgamma_r(x,&signgam);
|
return __ieee754_lgamma_r(x,&__signgam);
|
||||||
#else
|
#else
|
||||||
double y;
|
double y;
|
||||||
y = __ieee754_lgamma_r(x,&signgam);
|
y = __ieee754_lgamma_r(x,&__signgam);
|
||||||
if(_LIB_VERSION == _IEEE_) return y;
|
if(_LIB_VERSION == _IEEE_) return y;
|
||||||
if(!__finite(y)&&__finite(x)) {
|
if(!__finite(y)&&__finite(x)) {
|
||||||
if(__floor(x)==x&&x<=0.0)
|
if(__floor(x)==x&&x<=0.0)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* Developed at SunPro, a Sun Microsystems, Inc. business.
|
* Developed at SunPro, a Sun Microsystems, Inc. business.
|
||||||
* Permission to use, copy, modify, and distribute this
|
* Permission to use, copy, modify, and distribute this
|
||||||
* software is freely granted, provided that this notice
|
* software is freely granted, provided that this notice
|
||||||
* is preserved.
|
* is preserved.
|
||||||
* ====================================================
|
* ====================================================
|
||||||
*/
|
*/
|
||||||
@ -20,7 +20,7 @@ static char rcsid[] = "$NetBSD: w_lgammaf.c,v 1.3 1995/05/10 20:49:30 jtc Exp $"
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
|
|
||||||
extern int signgam;
|
extern int __signgam;
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
float __lgammaf(float x)
|
float __lgammaf(float x)
|
||||||
@ -30,10 +30,10 @@ extern int signgam;
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef _IEEE_LIBM
|
#ifdef _IEEE_LIBM
|
||||||
return __ieee754_lgammaf_r(x,&signgam);
|
return __ieee754_lgammaf_r(x,&__signgam);
|
||||||
#else
|
#else
|
||||||
float y;
|
float y;
|
||||||
y = __ieee754_lgammaf_r(x,&signgam);
|
y = __ieee754_lgammaf_r(x,&__signgam);
|
||||||
if(_LIB_VERSION == _IEEE_) return y;
|
if(_LIB_VERSION == _IEEE_) return y;
|
||||||
if(!__finitef(y)&&__finitef(x)) {
|
if(!__finitef(y)&&__finitef(x)) {
|
||||||
if(__floorf(x)==x&&x<=(float)0.0)
|
if(__floorf(x)==x&&x<=(float)0.0)
|
||||||
@ -45,5 +45,5 @@ extern int signgam;
|
|||||||
} else
|
} else
|
||||||
return y;
|
return y;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
weak_alias (__lgammaf, lgammaf)
|
weak_alias (__lgammaf, lgammaf)
|
||||||
|
@ -27,7 +27,7 @@ static char rcsid[] = "$NetBSD: $";
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
|
|
||||||
extern int signgam;
|
extern int __signgam;
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
long double __lgammal(long double x)
|
long double __lgammal(long double x)
|
||||||
@ -37,10 +37,10 @@ extern int signgam;
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef _IEEE_LIBM
|
#ifdef _IEEE_LIBM
|
||||||
return __ieee754_lgammal_r(x,&signgam);
|
return __ieee754_lgammal_r(x,&__signgam);
|
||||||
#else
|
#else
|
||||||
long double y;
|
long double y;
|
||||||
y = __ieee754_lgammal_r(x,&signgam);
|
y = __ieee754_lgammal_r(x,&__signgam);
|
||||||
if(_LIB_VERSION == _IEEE_) return y;
|
if(_LIB_VERSION == _IEEE_) return y;
|
||||||
if(!__finitel(y)&&__finitel(x)) {
|
if(!__finitel(y)&&__finitel(x)) {
|
||||||
if(__floorl(x)==x&&x<=0.0)
|
if(__floorl(x)==x&&x<=0.0)
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#ifndef _SYS_SOCKET_H
|
#ifndef _SYS_SOCKET_H
|
||||||
# error "Never include <bits/socket.h> directly; use <sys/socket.h> instead."
|
# error "Never include <bits/sockunion.h> directly; use <sys/socket.h> instead."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <netash/ash.h>
|
#include <netash/ash.h>
|
||||||
|
Reference in New Issue
Block a user