forked from lattera/glibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1999-04-01 Thorsten Kukuk <[email protected]>
* sunrpc/Versions: Add new xdr functions to GLIBC_2.1.1 * sunrpc/xdr.c: Add xdr_hyper, xdr_u_hyper, xdr_longlong_t and xdr_u_longlong_t. Based on patch from Dan Shechter <[email protected]>. * sunrpc/xdr_intXX_t.c: Implement xdr_int64_t, xdr_uint64_t * sunrpc/rpc/xdr.h: Add prototypes for new xdr functions. * nis/nis_lookup.c (nis_lookup): Don't overwrite RPC error code.
- Loading branch information
1 parent
516d718
commit 50f301a
Showing
7 changed files
with
169 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
1999-04-01 Thorsten Kukuk <[email protected]> | ||
|
||
* sunrpc/Versions: Add new xdr functions to GLIBC_2.1.1 | ||
* sunrpc/xdr.c: Add xdr_hyper, xdr_u_hyper, xdr_longlong_t and | ||
xdr_u_longlong_t. Based on patch from Dan Shechter | ||
<[email protected]>. | ||
* sunrpc/xdr_intXX_t.c: Implement xdr_int64_t, xdr_uint64_t | ||
* sunrpc/rpc/xdr.h: Add prototypes for new xdr functions. | ||
|
||
* nis/nis_lookup.c (nis_lookup): Don't overwrite RPC error code. | ||
|
||
1999-04-07 Andreas Jaeger <[email protected]> | ||
|
||
* sysdeps/unix/sysv/linux/getdents.c (__getdirentries): Return | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -641,7 +641,7 @@ copy a NIS_COLD_START file from a Solaris client (the NIS_COLD_START file is | |
byte order independent) or generate it with nisinit from the nis-tools | ||
package; available at | ||
|
||
http://www-vt.uni-paderborn.de/~kukuk/linux/nisplus.html | ||
http://www.suse.de/~kukuk/linux/nisplus.html | ||
|
||
?? I have killed ypbind to stop using NIS, but glibc | ||
continues using NIS. | ||
|
@@ -1422,7 +1422,7 @@ Answers were given by: | |
{PB} Phil Blundell, <[email protected]> | ||
{MK} Mark Kettenis, <[email protected]> | ||
{ZW} Zack Weinberg, <[email protected]> | ||
{TK} Thorsten Kukuk, <kukuk@vt.uni-paderborn.de> | ||
{TK} Thorsten Kukuk, <kukuk@suse.de> | ||
{GK} Geoffrey Keating, <[email protected]> | ||
{HJ} H.J. Lu, <[email protected]> | ||
{CG} Cristian Gafton, <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. | ||
/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
Contributed by Thorsten Kukuk <[email protected]>, 1997. | ||
|
@@ -103,6 +103,8 @@ nis_lookup (const_nis_name name, const unsigned int flags) | |
status = NIS_RPCERROR; | ||
else | ||
{ | ||
status = NIS_SUCCESS; | ||
|
||
if (NIS_RES_STATUS (res) == NIS_SUCCESS) | ||
{ | ||
if (__type_of(NIS_RES_OBJECT (res)) == NIS_LINK_OBJ && | ||
|
@@ -171,7 +173,6 @@ nis_lookup (const_nis_name name, const unsigned int flags) | |
break; | ||
} | ||
link_first_try = 0; /* Set it back */ | ||
status= NIS_SUCCESS; | ||
} | ||
while ((flags & HARD_LOOKUP) && status == NIS_RPCERROR); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* Copyright (c) 1998 Free Software Foundation, Inc. | ||
/* Copyright (c) 1998, 1999 Free Software Foundation, Inc. | ||
This file is part of the GNU C Library. | ||
Contributed by Thorsten Kukuk <[email protected]>, 1998. | ||
|
@@ -20,6 +20,60 @@ | |
#include <rpc/types.h> | ||
#include <rpc/xdr.h> | ||
|
||
/* XDR 64bit integers */ | ||
bool_t | ||
xdr_int64_t (XDR *xdrs, int64_t *ip) | ||
{ | ||
int32_t t1; | ||
int32_t t2; | ||
|
||
switch (xdrs->x_op) | ||
{ | ||
case XDR_ENCODE: | ||
t1 = (int32_t) ((*ip) >> 32); | ||
t2 = (int32_t) (*ip); | ||
return (XDR_PUTINT32(xdrs, &t1) && XDR_PUTINT32(xdrs, &t2)); | ||
case XDR_DECODE: | ||
if (!XDR_GETINT32(xdrs, &t1) || !XDR_GETINT32(xdrs, &t2)) | ||
return FALSE; | ||
*ip = ((int64_t) t1) << 32; | ||
*ip |= t2; | ||
return TRUE; | ||
case XDR_FREE: | ||
return TRUE; | ||
default: | ||
return FALSE; | ||
} | ||
} | ||
|
||
/* XDR 64bit unsigned integers */ | ||
bool_t | ||
xdr_uint64_t (XDR *xdrs, uint64_t *uip) | ||
{ | ||
uint32_t t1; | ||
uint32_t t2; | ||
|
||
switch (xdrs->x_op) | ||
{ | ||
case XDR_ENCODE: | ||
t1 = (uint32_t) ((*uip) >> 32); | ||
t2 = (uint32_t) (*uip); | ||
return (XDR_PUTINT32 (xdrs, (int32_t *) &t1) && | ||
XDR_PUTINT32(xdrs, (int32_t *) &t2)); | ||
case XDR_DECODE: | ||
if (!XDR_GETINT32(xdrs, (int32_t *) &t1) || | ||
!XDR_GETINT32(xdrs, (int32_t *) &t2)) | ||
return FALSE; | ||
*uip = ((uint64_t) t1) << 32; | ||
*uip |= t2; | ||
return TRUE; | ||
case XDR_FREE: | ||
return TRUE; | ||
default: | ||
return FALSE; | ||
} | ||
} | ||
|
||
/* XDR 32bit integers */ | ||
bool_t | ||
xdr_int32_t (XDR *xdrs, int32_t *lp) | ||
|
@@ -43,10 +97,10 @@ xdr_uint32_t (XDR *xdrs, uint32_t *ulp) | |
{ | ||
switch (xdrs->x_op) | ||
{ | ||
case XDR_DECODE: | ||
return XDR_GETINT32 (xdrs, (int32_t *) ulp); | ||
case XDR_ENCODE: | ||
return XDR_PUTINT32 (xdrs, (int32_t *) ulp); | ||
case XDR_DECODE: | ||
return XDR_GETINT32 (xdrs, (int32_t *) ulp); | ||
case XDR_FREE: | ||
return TRUE; | ||
default: | ||
|