# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2024-03-01 17:06+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "rtime" msgstr "" #. type: TH #: archlinux fedora-40 fedora-rawhide mageia-cauldron #, no-wrap msgid "2023-10-31" msgstr "" #. type: TH #: archlinux fedora-40 fedora-rawhide mageia-cauldron #, no-wrap msgid "Linux man-pages 6.06" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "rtime - get time from a remote machine" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "Standard C library (I, I<-lc>)" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B<#include Erpc/auth_des.hE>\n" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, struct rpc_timeval *>IB<,>\n" "B< struct rpc_timeval *>IB<);>\n" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "This function uses the Time Server Protocol as described in RFC\\ 868 to " "obtain the time from a remote machine." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "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)." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "When I is non-NULL, the udp/time socket (port 37) is used. " "Otherwise, the tcp/time socket (port 37) is used." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "On success, 0 is returned, and the obtained 32-bit time value is stored in " "Itv_sec>. In case of error -1 is returned, and I is set " "to indicate the error." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "All errors for underlying functions (B(2), B(2), " "B(2), B(2), B(2)) can occur. Moreover:" msgstr "" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "The number of returned bytes is not 4." msgstr "" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "The waiting time as defined in timeout has expired." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "" #. type: tbl table #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr "" #. type: tbl table #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr "" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "MT-Safe" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "Only IPv4 is supported." msgstr "" #. #-#-#-#-# archlinux: rtime.3.pot (PACKAGE VERSION) #-#-#-#-# #. .P #. Libc5 uses the prototype #. .P #. .nf #. int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); #. .fi #. .P #. and requires #. .I #. instead of #. .IR . #. type: Plain text #. #-#-#-#-# debian-bookworm: rtime.3.pot (PACKAGE VERSION) #-#-#-#-# #. .PP #. Libc5 uses the prototype #. .PP #. .nf #. int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); #. .fi #. .PP #. and requires #. .I #. instead of #. .IR . #. type: Plain text #. #-#-#-#-# debian-unstable: rtime.3.pot (PACKAGE VERSION) #-#-#-#-# #. .PP #. Libc5 uses the prototype #. .PP #. .nf #. int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); #. .fi #. .PP #. and requires #. .I #. instead of #. .IR . #. type: Plain text #. #-#-#-#-# fedora-40: rtime.3.pot (PACKAGE VERSION) #-#-#-#-# #. .P #. Libc5 uses the prototype #. .P #. .nf #. int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); #. .fi #. .P #. and requires #. .I #. instead of #. .IR . #. type: Plain text #. #-#-#-#-# fedora-rawhide: rtime.3.pot (PACKAGE VERSION) #-#-#-#-# #. .P #. Libc5 uses the prototype #. .P #. .nf #. int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); #. .fi #. .P #. and requires #. .I #. instead of #. .IR . #. type: Plain text #. #-#-#-#-# mageia-cauldron: rtime.3.pot (PACKAGE VERSION) #-#-#-#-# #. .P #. Libc5 uses the prototype #. .P #. .nf #. int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); #. .fi #. .P #. and requires #. .I #. instead of #. .IR . #. type: Plain text #. #-#-#-#-# opensuse-leap-15-6: rtime.3.pot (PACKAGE VERSION) #-#-#-#-# #. .PP #. Libc5 uses the prototype #. .PP #. .nf #. int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); #. .fi #. .PP #. and requires #. .I #. instead of #. .IR . #. type: Plain text #. #-#-#-#-# opensuse-tumbleweed: rtime.3.pot (PACKAGE VERSION) #-#-#-#-# #. .PP #. Libc5 uses the prototype #. .PP #. .nf #. int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); #. .fi #. .PP #. and requires #. .I #. instead of #. .IR . #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "Some I versions support only TCP. Try the example program with " "I set to 1." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "B() in glibc 2.2.5 and earlier does not work properly on 64-bit " "machines." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "This example requires that port 37 is up and open. You may check that the " "time entry within I is not commented out." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The program connects to a computer called \"linux\". Using \"localhost\" " "does not work. The result is the localtime of the computer \"linux\"." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid "" "#include Eerrno.hE\n" "#include Enetdb.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Etime.hE\n" "\\&\n" "#include Erpc/auth_des.hE\n" "\\&\n" "static int use_tcp = 0;\n" "static const char servername[] = \"linux\";\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int ret;\n" " time_t t;\n" " struct hostent *hent;\n" " struct rpc_timeval time1 = {0, 0};\n" " struct rpc_timeval timeout = {1, 0};\n" " struct sockaddr_in name;\n" "\\&\n" " memset(&name, 0, sizeof(name));\n" " sethostent(1);\n" " hent = gethostbyname(servername);\n" " memcpy(&name.sin_addr, hent-Eh_addr, hent-Eh_length);\n" "\\&\n" " ret = rtime(&name, &time1, use_tcp ? NULL : &timeout);\n" " if (ret E 0)\n" " perror(\"rtime error\");\n" " else {\n" " t = time1.tv_sec;\n" " printf(\"%s\\en\", ctime(&t));\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" #. SRC END #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "" #. .BR netdate (1), #. .BR rdate (1), #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "B(1), B(8)" msgstr "" #. type: TH #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "2022-12-15" msgstr "" #. type: TH #: debian-bookworm #, no-wrap msgid "Linux man-pages 6.03" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "#include Eerrno.hE\n" "#include Enetdb.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Etime.hE\n" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "#include Erpc/auth_des.hE\n" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "static int use_tcp = 0;\n" "static const char servername[] = \"linux\";\n" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "int\n" "main(void)\n" "{\n" " int ret;\n" " time_t t;\n" " struct hostent *hent;\n" " struct rpc_timeval time1 = {0, 0};\n" " struct rpc_timeval timeout = {1, 0};\n" " struct sockaddr_in name;\n" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " memset(&name, 0, sizeof(name));\n" " sethostent(1);\n" " hent = gethostbyname(servername);\n" " memcpy(&name.sin_addr, hent-Eh_addr, hent-Eh_length);\n" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " ret = rtime(&name, &time1, use_tcp ? NULL : &timeout);\n" " if (ret E 0)\n" " perror(\"rtime error\");\n" " else {\n" " t = time1.tv_sec;\n" " printf(\"%s\\en\", ctime(&t));\n" " }\n" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" #. type: TH #: debian-unstable opensuse-tumbleweed #, no-wrap msgid "2023-07-20" msgstr "" #. type: TH #: debian-unstable opensuse-tumbleweed #, no-wrap msgid "Linux man-pages 6.05.01" msgstr "" #. type: TH #: opensuse-leap-15-6 #, no-wrap msgid "Linux man-pages 6.04" msgstr ""