107 lines
3.7 KiB
Groff
107 lines
3.7 KiB
Groff
.\" Copyright (c) 1980, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)adjtime.2 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libc/sys/adjtime.2,v 1.13 2002/12/18 09:22:30 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd June 4, 1993
|
|
.Dt ADJTIME 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm adjtime
|
|
.Nd "¥·¥¹¥Æ¥à¥¯¥í¥Ã¥¯¤È¤ÎƱ´ü²½¤¬¤Ç¤¤ë¤è¤¦¤Ë»þ¹ï¤òÄûÀµ¤¹¤ë"
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In sys/time.h
|
|
.Ft int
|
|
.Fn adjtime "const struct timeval *delta" "struct timeval *olddelta"
|
|
.Sh ²òÀâ
|
|
.Fn adjtime
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢
|
|
.Xr gettimeofday 2
|
|
¤¬ÊÖ¤¹¤è¤¦¤Ê¥·¥¹¥Æ¥à»þ¹ï¤òÈùÄ´À°¤·¤Þ¤¹¡£
|
|
»þ´ÖÃÍ
|
|
.Fa delta
|
|
¤Ç»ØÄꤵ¤ì¤¿»þ´Ö¤À¤±¥·¥¹¥Æ¥à»þ¹ï¤ò¿Ê¤Þ¤»¤ë¡¢¤Þ¤¿¤ÏÃ٤餻¤Þ¤¹¡£
|
|
.Fa delta
|
|
¤¬Éé¤Î¾ì¹ç¡¢
|
|
ÄûÀµ¤¬´°Î»¤¹¤ë¤Þ¤Ç¥¯¥í¥Ã¥¯¤ò¤è¤ê¤æ¤Ã¤¯¤ê¤ÈÁý²Ã¤µ¤»¤ë¤³¤È¤Ë¤è¤Ã¤Æ
|
|
¥¯¥í¥Ã¥¯¤òÄ㮲½¤·¤Þ¤¹¡£
|
|
.Fa delta
|
|
¤¬Àµ¤Î¾ì¹ç¤ÏÄ̾ï¤è¤êÂ礤ÊÁýʬ¤ò»ÈÍѤ·¤Þ¤¹¡£
|
|
ÄûÀµ¤ò¼Â¹Ô¤¹¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë¤º¤ì¤Ï¡¢
|
|
°ìÈÌ¤Ë¤Ï 1 ¥Ñ¡¼¥»¥ó¥È¤Î³ä¹ç¤Ç¤¹¡£
|
|
¤³¤ì¤Ë¤è¤ê¡¢»þ¹ï¤Ï¾ï¤ËñĴÁý²Ã´Ø¿ô¤È¤Ê¤ê¤Þ¤¹¡£
|
|
°ÊÁ°¤Î
|
|
.Fn adjtime
|
|
¸Æ¤Ó½Ð¤·¤Ë¤è¤ë»þ¹ïÄûÀµ¤¬¡¢ºÆ¤Ó
|
|
.Fn adjtime
|
|
¤¬¸Æ¤Ó½Ð¤µ¤ì¤¿»þ¤Ë´°Î»¤·¤Æ¤¤¤Ê¤¤²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
|
|
.Fa olddelta
|
|
¤¬ nil ¤Ç¤Ê¤¤¾ì¹ç¡¢»Ø¤·¼¨¤µ¤ì¤Æ¤¤¤ë¹½Â¤ÂΤϡ¢
|
|
°ÊÁ°¤Î¸Æ¤Ó½Ð¤·¤«¤é¤Î¡¢°ÍÁ³¤È¤·¤Æ
|
|
ÄûÀµ¤¹¤ëɬÍפΤ¢¤ë¥Þ¥¤¥¯¥íÉÃñ°Ì¤Î¿ô¤¬Ìá¤ê»þ¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤ë¤Ç¤·¤ç¤¦¡£
|
|
.Pp
|
|
¤³¤Î¸Æ¤Ó½Ð¤·¤Ï¡¢¥í¡¼¥«¥ë¥¨¥ê¥¢¥Í¥Ã¥È¥ï¡¼¥¯Æâ¤Î¥³¥ó¥Ô¥å¡¼¥¿¤Î¥¯¥í¥Ã¥¯¤ò
|
|
Ʊ´ü¤¹¤ë¥¿¥¤¥à¥µ¡¼¥Ð¤¬»ÈÍѤ¹¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
|
|
¤³¤Î¤è¤¦¤Ê¥¿¥¤¥à¥µ¡¼¥Ð¤Ï¥Þ¥·¥ó¤Î¥¯¥í¥Ã¥¯¤òÄ㮲½¡¢¤Þ¤¿¤Ï
|
|
¹â®²½¤·¤Æ¡¢¤½¤ì¤é¤òÊ¿¶Ñ¥Í¥Ã¥È¥ï¡¼¥¯»þ¹ï¤Ë¤·¤Þ¤¹¡£
|
|
.Pp
|
|
.Fn adjtime
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ë¸ÂÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Rv -std adjtime
|
|
.Sh ¥¨¥é¡¼
|
|
.Fn adjtime
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¼¡¤Î¾ì¹ç¤Ë½èÍý¤ò¼ºÇÔ¤·¤Þ¤¹:
|
|
.Bl -tag -width Er
|
|
.It Bq Er EFAULT
|
|
°ú¿ô¤Ï¡¢¥×¥í¥»¥¹¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥¢¥É¥ì¥¹¶õ´Ö¤ÎÈϰϳ°¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er EPERM
|
|
¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶ ID ¤¬¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr date 1 ,
|
|
.Xr gettimeofday 2 ,
|
|
.Xr timed 8 ,
|
|
.Xr timedc 8
|
|
.Rs
|
|
.%T "TSP: The Time Synchronization Protocol for UNIX 4.3BSD"
|
|
.%A R. Gusella
|
|
.%A S. Zatti
|
|
.Re
|
|
.Sh Îò»Ë
|
|
.Fn adjtime
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï
|
|
.Bx 4.3
|
|
¤ÇÅо줷¤Þ¤·¤¿¡£
|