summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/auth_time.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2000-01-12 09:23:48 +0000
committerjasone <jasone@FreeBSD.org>2000-01-12 09:23:48 +0000
commit75903038bc52105bc7479fe5f2b75f22f10c1c50 (patch)
treec9e28eda650bbd7eaa3eb22c8d7c75d00a96a451 /lib/libc/rpc/auth_time.c
parent688bb99b3f790aad607b949661d0361486bbe346 (diff)
downloadFreeBSD-src-75903038bc52105bc7479fe5f2b75f22f10c1c50.zip
FreeBSD-src-75903038bc52105bc7479fe5f2b75f22f10c1c50.tar.gz
Add three-tier symbol naming in support of POSIX thread cancellation
points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
Diffstat (limited to 'lib/libc/rpc/auth_time.c')
-rw-r--r--lib/libc/rpc/auth_time.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/rpc/auth_time.c b/lib/libc/rpc/auth_time.c
index 3128e6d..47f5212 100644
--- a/lib/libc/rpc/auth_time.c
+++ b/lib/libc/rpc/auth_time.c
@@ -28,6 +28,8 @@
*
* NOTE: This code has had the crap beaten out it in order to convert
* it from TI-RPC back to TD-RPC for use on FreeBSD.
+ *
+ * $FreeBSD$
*/
#include <stdio.h>
#include <syslog.h>
@@ -435,7 +437,7 @@ __rpc_get_time_offset(td, srv, thost, uaddr, netid)
msg("alarm caught it, must be unreachable.");
goto error;
}
- res = read(s, (char *)&thetime, sizeof(thetime));
+ res = _libc_read(s, (char *)&thetime, sizeof(thetime));
if (res != sizeof(thetime)) {
if (saw_alarm)
msg("timed out TCP call.");
@@ -447,7 +449,7 @@ __rpc_get_time_offset(td, srv, thost, uaddr, netid)
time_valid = 1;
}
save = errno;
- (void) close(s);
+ (void)_libc_close(s);
errno = save;
s = RPC_ANYSOCK;
@@ -466,7 +468,7 @@ error:
*/
if (s != RPC_ANYSOCK)
- (void) close(s);
+ (void)_libc_close(s);
if (clnt != NULL)
clnt_destroy(clnt);
OpenPOWER on IntegriCloud