OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / stime.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Modified by Michael Haardt <michael@moria.de>
26 .\" Modified 1993-07-24 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified 2001-03-16 by Andries Brouwer <aeb@cwi.nl>
28 .\" Modified 2004-05-27 by Michael Kerrisk <mtk.manpages@gmail.com>
29 .\"
30 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
31 .\"         all rights reserved.
32 .\" Translated 1997-03-03, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
33 .\" Updated 2001-04-10, Kentaro Shirakata <argrath@ub32.org>
34 .\" Updated 2003-09-08, Kentaro Shirakata <argrath@ub32.org>
35 .\" Updated 2005-02-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
36 .\"
37 .\"WORD:        GMT                     グリニッジ平均時(GMT)
38 .\"WORD:        superuser               スーパーユーザー
39 .\"
40 .TH STIME 2 2007-07-26 "Linux" "Linux Programmer's Manual"
41 .SH 名前
42 stime \- 時間を設定する
43 .SH 書式
44 .B #include <time.h>
45 .sp
46 .BI "int stime(time_t *" t );
47 .sp
48 .in -4n
49 .\"O Feature Test Macro Requirements for glibc (see
50 .\"O .BR feature_test_macros (7)):
51 glibc 向けの機能検査マクロの要件
52 .RB ( feature_test_macros (7)
53 参照):
54 .in
55 .sp
56 .BR stime ():
57 _SVID_SOURCE
58 .\"O .SH DESCRIPTION
59 .SH 説明
60 .\"O .BR stime ()
61 .\"O sets the system's idea of the time and date.
62 .\"O The time, pointed
63 .\"O to by \fIt\fP, is measured in seconds since the
64 .\"O Epoch, 1970-01-01 00:00:00 +0000 (UTC).
65 .BR stime ()
66 はシステムの時刻と日付を設定する。
67 \fIt\fP が指す時刻は、時刻紀元 (Epoch; 1970-01-01 00:00:00 +0000 (UTC))
68 からの秒数で指定する。
69 .\"O .BR stime ()
70 .\"O may only be executed by the superuser.
71 スーパーユーザーのみが
72 .BR stime ()
73 を実行できる。
74
75 (訳注: 正確にはグリニッジ平均時(GMT)ではなく協定世界時(UTC)が使用される)
76 .SH 返り値
77 成功した場合はゼロが返される。エラーの場合は \-1 が返され、
78 .I errno
79 が適切に設定される。
80 .SH エラー
81 .TP
82 .B EFAULT
83 .\"O Error in getting information from user space.
84 ユーザー空間から情報を得るときにエラーが発生した。
85 .TP
86 .B EPERM
87 .\"O The calling process has insufficient privilege.
88 .\"O Under Linux the
89 .\"O .B CAP_SYS_TIME
90 .\"O privilege is required.
91 呼び出し元のプロセスが十分な権限を持っていない。
92 Linux では
93 .B CAP_SYS_TIME
94 権限が必要である。
95 .SH 準拠
96 SVr4.
97 .SH 関連項目
98 .BR date (1),
99 .BR settimeofday (2),
100 .BR capabilities (7)