summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man3/rtime.3
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/opensuse-tumbleweed/man3/rtime.3')
-rw-r--r--upstream/opensuse-tumbleweed/man3/rtime.321
1 files changed, 10 insertions, 11 deletions
diff --git a/upstream/opensuse-tumbleweed/man3/rtime.3 b/upstream/opensuse-tumbleweed/man3/rtime.3
index a866d0b8..f1168310 100644
--- a/upstream/opensuse-tumbleweed/man3/rtime.3
+++ b/upstream/opensuse-tumbleweed/man3/rtime.3
@@ -8,7 +8,7 @@
.\"
.\" Slightly polished, aeb, 2003-04-06
.\"
-.TH rtime 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH rtime 3 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
rtime \- get time from a remote machine
.SH LIBRARY
@@ -17,20 +17,20 @@ Standard C library
.SH SYNOPSIS
.nf
.B "#include <rpc/auth_des.h>"
-.PP
+.P
.BI "int rtime(struct sockaddr_in *" addrp ", struct rpc_timeval *" timep ,
.BI " struct rpc_timeval *" timeout );
.fi
.SH DESCRIPTION
This function uses the Time Server Protocol as described in
RFC\ 868 to obtain the time from a remote machine.
-.PP
+.P
The Time Server Protocol gives the time in seconds since
00:00:00 UTC, 1 Jan 1900,
and this function subtracts the appropriate constant in order to
convert the result to seconds since the
Epoch, 1970-01-01 00:00:00 +0000 (UTC).
-.PP
+.P
When
.I timeout
is non-NULL, the udp/time socket (port 37) is used.
@@ -70,23 +70,22 @@ T{
.BR rtime ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH NOTES
Only IPv4 is supported.
-.PP
+.P
Some
.I in.timed
versions support only TCP.
Try the example program with
.I use_tcp
set to 1.
-.\" .PP
+.\" .P
.\" Libc5 uses the prototype
-.\" .PP
+.\" .P
.\" .nf
.\" int rtime(struct sockaddr_in *, struct timeval *, struct timeval *);
.\" .fi
-.\" .PP
+.\" .P
.\" and requires
.\" .I <sys/time.h>
.\" instead of
@@ -100,11 +99,11 @@ You may check
that the time entry within
.I /etc/inetd.conf
is not commented out.
-.PP
+.P
The program connects to a computer called "linux".
Using "localhost" does not work.
The result is the localtime of the computer "linux".
-.PP
+.P
.\" SRC BEGIN (rtime.c)
.EX
#include <errno.h>