OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / release / man3 / getfsent.3
1 .\" Copyright (C) 2002 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Inspired by a page written by Walter Harms.
24 .\"
25 .\" Japanese Version Copyright (c) 2002 NAKANO Takeo all rights reserved.
26 .\" Translated Wed 7 Aug 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
27 .\"
28 .TH GETFSENT 3 2002-02-28 "Linux" "Linux Programmer's Manual"
29 .SH Ì¾Á°
30 getfsent, getfsspec, getfsfile, setfsent, endfsent \- fstab ¥¨¥ó¥È¥ê¤Î½èÍý
31 .SH ½ñ¼°
32 .B #include <fstab.h>
33 .sp
34 .B "void endfsent(void);"
35 .sp
36 .B "struct fstab *getfsent(void);"
37 .sp
38 .BI "struct fstab *getfsfile(const char *" mount_point );
39 .sp
40 .BI "struct fstab *getfsspec(const char *" special_file );
41 .sp
42 .B "int setfsent(void);"
43 .SH ÀâÌÀ
44 ¤³¤ì¤é¤Î´Ø¿ô¤Ï
45 .I /etc/fstab
46 ¥Õ¥¡¥¤¥ë¤«¤é¾ðÊó¤òÆɤ߹þ¤à¡£\fIfstab\fP ¹½Â¤ÂΤϼ¡¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
47 .LP
48 .in +4n
49 .nf
50 struct fstab {
51     char       *fs_spec;       /* block device name */
52     char       *fs_file;       /* mount point */
53     char       *fs_vfstype;    /* file-system type */
54     char       *fs_mntops;     /* mount options */
55     const char *fs_type;       /* rw/rq/ro/sw/xx option */
56     int         fs_freq;       /* dump frequency, in days */
57     int         fs_passno;     /* pass number on parallel dump */
58 };
59 .fi
60 .in
61 .PP
62 *BSD ¥·¥¹¥Æ¥à¤Î¾ì¹ç¡¢
63 .I fs_type
64 ¥Õ¥£¡¼¥ë¥É¤Ë¤Ï¡¢5 ¤Ä¤Îʸ»úÎó
65 "rw", "rq", "ro", "sw", "xx"
66 ¤Î¤¤¤º¤ì¤«¤¬Æþ¤ë
67 (¤½¤ì¤¾¤ì read-write, quota ÉÕ¤­ read-write, read-only, swap, ignore)¡£
68
69 ´Ø¿ô
70 .BR setfsent ()
71 ¤Ï¸Æ¤Ó½Ð¤µ¤ì¤ë¤È fstab ¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·¡¢
72 ºÇ½é¤Î¹Ô¤Ë°ÜÆ°¤¹¤ë¡£
73 .LP
74 ´Ø¿ô
75 .BR getfsent ()
76 ¤Ï fstab ¥Õ¥¡¥¤¥ë¤«¤é¼¡¤Î¹Ô¤ò¥Ñ¡¼¥¹¤¹¤ë
77 (ɬÍפʾì¹ç¤Ï¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤¹¤ë)¡£
78 .LP
79 ´Ø¿ô
80 .BR endfsent ()
81 ¤Ï¸Æ¤Ó½Ð¤µ¤ì¤ë¤È fstab ¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
82 .LP
83 ´Ø¿ô
84 .BR getfsspec ()
85 ¤Ï fstab ¥Õ¥¡¥¤¥ë¤òÀèƬ¤«¤é¸¡º÷¤·¡¢
86 .I fs_spec
87 ¥Õ¥£¡¼¥ë¥É¤¬
88 .I special_file
89 °ú¿ô¤Ë¥Þ¥Ã¥Á¤¹¤ë¥¨¥ó¥È¥ê¤¬¸«¤Ä¤«¤Ã¤¿¤é¡¢¤½¤ÎºÇ½é¤Î¤â¤Î¤òÊÖ¤¹¡£
90 .LP
91 ´Ø¿ô
92 .BR getfsfile ()
93 ¤Ï fstab ¥Õ¥¡¥¤¥ë¤òÀèƬ¤«¤é¸¡º÷¤·¡¢
94 .I fs_file
95 ¥Õ¥£¡¼¥ë¥É¤¬
96 .I mount_point
97 °ú¿ô¤Ë¥Þ¥Ã¥Á¤¹¤ë¥¨¥ó¥È¥ê¤¬¸«¤Ä¤«¤Ã¤¿¤é¡¢¤½¤ÎºÇ½é¤Î¤â¤Î¤òÊÖ¤¹¡£
98 .SH ÊÖ¤êÃÍ
99 À®¸ù¤¹¤ë¤È¡¢
100 .BR getfsent (),
101 .BR getfsfile (),
102 .BR getfsspec ()
103 ¤Î³Æ´Ø¿ô¤Ï \fIfstab\fP ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤·¡¢
104 .BR setfsent ()
105 ´Ø¿ô¤Ï 1 ¤òÊÖ¤¹¡£
106 ¼ºÇÔ¤¹¤ë¤È¤³¤ì¤é¤Î´Ø¿ô¤Ï NULL ¤òÊÖ¤·¡¢
107 end-of-file ¤Ë¤Ê¤Ã¤¿¤é 0 ¤òÊÖ¤¹¡£
108 .\" .SH ÍúÎò
109 .\" .BR getfsent ()
110 .\" ´Ø¿ô¤Ï 4.0BSD ¤ÇÅо줷¤¿¡£
111 .\" Â¾¤Î 4 ¤Ä¤Î´Ø¿ô¤Ï 4.3BSD ¤ÇÅо줷¤¿¡£
112 .SH ½àµò
113 POSIX.1-2001 ¤Ë¤Ï¤³¤ì¤é¤Î´Ø¿ô¤Ï¸ºß¤·¤Ê¤¤¡£
114 ¤³¤ì¤é¤Î´Ø¿ô¤ò¤â¤Ä OS ¤Ï¤¤¤¯¤Ä¤«¤¢¤ê¡¢
115 *BSD, SunOS, Digital UNIX, AIX Åù¤Ç¤¢¤ë
116 (AIX ¤Ë¤Ï
117 .BR getfstype ()
118 ¤â¤¢¤ë)¡£
119 HP-UX ¤Ë¤âƱ̾¤Î´Ø¿ô·²¤¬¤¢¤ë¤¬¡¢
120 HP-UX ¤Î¤â¤Î¤Ï \fIfstab\fP ¹½Â¤ÂΤǤϤʤ¯ \fIchecklist\fP ¹½Â¤ÂΤòÍѤ¤¤ë¡£
121 ¤Þ¤¿¤³¤ì¤é¤Î´Ø¿ô¤Î¸Æ¤Ó½Ð¤·¤Ï obsolete ¤Ç¡¢
122 .BR getmntent (3)
123 ¤Ë¼è¤Ã¤ÆÂå¤ï¤é¤ì¤Æ¤¤¤ë¡£
124 .SH Ãí°Õ
125 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¥¹¥ì¥Ã¥É¥»¡¼¥Õ¤Ç¤Ï¤Ê¤¤¡£
126 .LP
127 Linux ¤Ç¤Ï¥Ö¥í¥Ã¥¯¥¹¥Ú¥·¥ã¥ë¥Ç¥Ð¥¤¥¹¤òÊ£¿ô¤Î¾ì½ê¤Ë¥Þ¥¦¥ó¥È¤Ç¤­¡¢
128 ¤Þ¤¿Ê£¿ô¤Î¥Ç¥Ð¥¤¥¹¤¬Æ±¤¸¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤ò¶¦Í­¤Ç¤­¤ë
129 (¤³¤Î¾ì¹ç¤Ï¤½¤Î¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤ËºÇ¸å¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤¬°ÕÌ£¤ò»ý¤Ä)
130 ¤¬¡¢
131 .BR getfsfile ()
132 ¤È
133 .BR getfsspec ()
134 ¤Ï¥Þ¥Ã¥Á¤·¤¿ºÇ½é¤Î¥¨¥ó¥È¥ê¤·¤«ÊÖ¤µ¤Ê¤¤¤Î¤Ç¡¢
135 ¤³¤ì¤é¤Î 2 ¤Ä¤Î´Ø¿ô¤Ï Linux ¤Ç¤ÎÍøÍѤˤÏŬ¤·¤Æ¤¤¤Ê¤¤¡£
136 .SH ´ØÏ¢¹àÌÜ
137 .BR getmntent (3),
138 .BR fstab (5)