mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-29 08:11:08 +00:00
Update.
2001-07-08 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/aix/sendmsg.c (sendmsg): Fix return type. * sysdeps/unix/sysv/aix/recvmsg.c (recvmsg): Likewise. * sysdeps/unix/sysv/aix/recv.c: New file. * sysdeps/unix/sysv/aix/recvfrom.c: Fix various types. * sysdeps/generic/recv.c: Fix return type. * sysdeps/unix/sysv/aix/dl-libc.c (__libc_dlclose): Fix typo. * sysdeps/unix/sysv/aix/gettimeofday.c (__gettimeofday): Add declarations for asm functions.
This commit is contained in:
parent
a2a89dd6ce
commit
73c342ebcc
16
ChangeLog
16
ChangeLog
@ -1,5 +1,21 @@
|
||||
2001-07-08 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/aix/sendmsg.c (sendmsg): Fix return type.
|
||||
* sysdeps/unix/sysv/aix/recvmsg.c (recvmsg): Likewise.
|
||||
|
||||
* sysdeps/unix/sysv/aix/recv.c: New file.
|
||||
|
||||
* sysdeps/unix/sysv/aix/recvfrom.c: Fix various types.
|
||||
|
||||
2001-07-07 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/generic/recv.c: Fix return type.
|
||||
|
||||
* sysdeps/unix/sysv/aix/dl-libc.c (__libc_dlclose): Fix typo.
|
||||
|
||||
* sysdeps/unix/sysv/aix/gettimeofday.c (__gettimeofday): Add
|
||||
declarations for asm functions.
|
||||
|
||||
* include/libc-symbols.h: Provide more dummy definitions for the
|
||||
case if GNU ld isn't used.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
/* Read N bytes into BUF from socket FD.
|
||||
Returns the number read or -1 for errors. */
|
||||
int
|
||||
ssize_t
|
||||
recv (fd, buf, n, flags)
|
||||
int fd;
|
||||
void *buf;
|
||||
|
@ -36,6 +36,6 @@ __libc_dlsym (void *map, const char *name)
|
||||
int
|
||||
__libc_dlclose (void *map)
|
||||
{
|
||||
_dl_close (__map);
|
||||
_dl_close (map);
|
||||
return 0;
|
||||
}
|
||||
|
@ -21,11 +21,14 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifndef HAVE_GNU_LD
|
||||
#define __daylight daylight
|
||||
#define __timezone timezone
|
||||
#define __tzname tzname
|
||||
# define __daylight daylight
|
||||
# define __timezone timezone
|
||||
# define __tzname tzname
|
||||
#endif
|
||||
|
||||
extern int rtc_upper (void);
|
||||
extern int rtc_lower (void);
|
||||
|
||||
/* Assembler Routines to access the timer registers */
|
||||
asm("
|
||||
.rtc_upper: mfspr 3,4 # copy RTCU to return register
|
||||
@ -51,14 +54,14 @@ __gettimeofday (tv, tz)
|
||||
return -1;
|
||||
}
|
||||
|
||||
ts = rtc_upper(); /* seconds */
|
||||
tl = rtc_lower(); /* nanoseconds */
|
||||
tu = rtc_upper(); /* Check for a carry from */
|
||||
if (ts != tu) /* the lower reg to the upper */
|
||||
tl = rtc_lower(); /* Recover from the race condition */
|
||||
ts = rtc_upper (); /* Seconds. */
|
||||
tl = rtc_lower (); /* Nanoseconds. */
|
||||
tu = rtc_upper (); /* Check for a carry from. */
|
||||
if (ts != tu) /* The lower reg to the upper. */
|
||||
tl = rtc_lower (); /* Recover from the race condition. */
|
||||
|
||||
tv->tv_sec = (long int) (tu + (double)tl/1000000000);
|
||||
tv->tv_usec = (long int) ((double)tl/1000);
|
||||
tv->tv_sec = (long int) (tu + (double) tl / 1000000000);
|
||||
tv->tv_usec = (long int) ((double) tl / 1000);
|
||||
|
||||
if (tz != NULL)
|
||||
{
|
||||
|
28
sysdeps/unix/sysv/aix/recv.c
Normal file
28
sysdeps/unix/sysv/aix/recv.c
Normal file
@ -0,0 +1,28 @@
|
||||
/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
extern ssize_t recv (int fd, void *buf, size_t n, int flags);
|
||||
|
||||
|
||||
ssize_t
|
||||
__recv (int fd, void *buf, size_t n, int flags)
|
||||
{
|
||||
return recv (fd, buf, n, flags);
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -18,10 +18,10 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
extern int nrecvfrom (int s, void *uap_buf, int len, int flags,
|
||||
void *uap_from, int *uap_fromlenaddr);
|
||||
extern ssize_t nrecvfrom (int s, void *uap_buf, size_t len, int flags,
|
||||
void *uap_from, socklen_t *uap_fromlenaddr);
|
||||
|
||||
int
|
||||
ssize_t
|
||||
recvfrom (int fd, void *buf, size_t n, int flags, __SOCKADDR_ARG addr,
|
||||
socklen_t *addr_len)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -18,9 +18,9 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
extern int nrecvmsg (int s, struct msghdr *uap_msg, int flags);
|
||||
extern ssize_t nrecvmsg (int s, struct msghdr *uap_msg, int flags);
|
||||
|
||||
int
|
||||
ssize_t
|
||||
recvmsg (int fd, struct msghdr *message, int flags)
|
||||
{
|
||||
return nrecvmsg (fd, message, flags);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -18,9 +18,9 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
extern int nsendmsg (int s, void *uap_msg, int flags);
|
||||
extern int nsendmsg (int s, const void *uap_msg, int flags);
|
||||
|
||||
int
|
||||
ssize_t
|
||||
sendmsg (int fd, const struct msghdr *message, int flags)
|
||||
{
|
||||
return nsendmsg (fd, message, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user