OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / release / man3 / ftok.3
1 .\" Copyright 1993 Giorgio Ciucci (giorgio@crcc.it)
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 .\" Modified 2001-11-28, by Michael Kerrisk, <mtk.manpages@gmail.com>
24 .\"     Changed data type of proj_id; minor fixes
25 .\"     aeb: further fixes; added notes.
26 .\"
27 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
28 .\" Translated Tue Apr 28 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
29 .\" Updated Sun 6 Jan 2002 by NAKANO Takeo
30 .\"
31 .TH FTOK 3 2001-11-28 "Linux" "Linux Programmer's Manual"
32 .SH Ì¾Á°
33 ftok \- ¥Ñ¥¹Ì¾¤È¥×¥í¥¸¥§¥¯¥È¼±Ê̻Ҥò System V IPC ¥­¡¼¤ËÊÑ´¹¤¹¤ë
34 .SH ½ñ¼°
35 .nf
36 .B #include <sys/types.h>
37 .B #include <sys/ipc.h>
38 .fi
39 .sp
40 .BI "key_t ftok(const char *" pathname ", int " proj_id );
41 .SH ÀâÌÀ
42 .BR ftok ()
43 ´Ø¿ô¤Ï
44 .I pathname
45 ¤ÇÍ¿¤¨¤é¤ì¤¿¥Õ¥¡¥¤¥ë (¸ºß¤·¡¢¥¢¥¯¥»¥¹²Äǽ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤)
46 ¤Î¥Õ¥¡¥¤¥ë̾¤Î¼±Ê̾ðÊó (identity) ¤È¡¢
47 .I proj_id
48 (0 ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤) ¤ÎÄã°Ì 8 ¥Ó¥Ã¥È¤È¤òÍѤ¤¤Æ¡¢
49 .I key_t
50 ·¿¤Î System V IPC ¥­¡¼¤òÀ¸À®¤¹¤ë¡£
51 ¤³¤Î¥­¡¼¤Ï
52 .BR msgget (2),
53 .BR semget (2),
54 .BR shmget (2)
55 ¤Ê¤É¤Ç¤ÎÍøÍѤËŬ¤·¤Æ¤¤¤ë¡£
56 .LP
57 Ʊ¤¸¥Õ¥¡¥¤¥ë¤ò¼¨¤¹¤¢¤é¤æ¤ë¥Ñ¥¹Ì¾¤È¡¢Æ±¤¸
58 .I proj_id
59 ¤ËÂФ·¤Æ¤Ï¡¢·ë²Ì¤ÎÃͤÏÅù¤·¤¯¤Ê¤ë¡£
60 ¥Õ¥¡¥¤¥ë¤¬°ã¤Ã¤¿¤ê (¤³¤Î¾ì¹çξ¼Ô¤ÏƱ»þ¤Ë¸ºß¤·¤Æ¤¤¤ë¤Ï¤º)¡¢
61 .I proj_id
62 ¤¬°Û¤Ê¤ë¤È¡¢ÊÖ¤êÃͤâ°Û¤Ê¤ë¡£
63 .SH ÊÖ¤êÃÍ
64 À®¸ù¤·¤¿¾ì¹ç¤ÏÀ¸À®¤µ¤ì¤¿
65 .I key_t
66 ¤ÎÃͤ¬ÊÖ¤µ¤ì¤ë¡£
67 ¼ºÇÔ¤¹¤ë¤È \-1 ¤¬ÊÖ¤µ¤ì¡¢¥¨¥é¡¼¤ÎÆâÍƤ¬
68 .B errno
69 ¤Ë½ñ¤­¹þ¤Þ¤ì¤ë¡£¤³¤ÎÆâÍƤϥ·¥¹¥Æ¥à¥³¡¼¥ë
70 .BR stat (2)
71 ¤Î¤â¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
72 .SH ½àµò
73 POSIX.1-2001.
74 .SH Ãí°Õ
75 libc4 ¤È libc5 (¤ª¤è¤Ó SunOS 4.x) ¤Ç¤Ï¡¢
76 ¥×¥í¥È¥¿¥¤¥×¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
77 .sp
78 .RS
79 .BI "key_t ftok(char *" pathname ", char " proj_id );
80 .RE
81 .PP
82 ¸½ºß¤Ç¤Ï
83 .I proj_id
84 ¤Ï
85 .I int
86 ¤À¤¬¡¢°ÍÁ³¤È¤·¤Æ 8 ¥Ó¥Ã¥È¤·¤«ÍѤ¤¤é¤ì¤Ê¤¤¡£
87 Ä̾ï¤Ï ASCII ¥­¥ã¥é¥¯¥¿¤¬
88 .I proj_id
89 ¤ËÍѤ¤¤é¤ì¤ë¡£
90 .I proj_id
91 ¤¬ 0 ¤Î¤È¤­¤Î¿¶¤ëÉñ¤¤¤¬Ì¤ÄêµÁ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ï¡¢¤³¤ì¤¬Íýͳ¤Ç¤¢¤ë¡£
92 .LP
93 ¤â¤Á¤í¤ó
94 .I key_t
95 ¤¬Â¾¤È½Å¤Ê¤é¤Ê¤¤¤â¤Î¤Ç¤¢¤ë¤«¤É¤¦¤«¤ÏÊݾڤµ¤ì¤Ê¤¤¡£
96 ºÇÁ±¤Î¾ì¹ç¤ÎÁȤ߹ç¤ï¤»¤ò¹Í¤¨¤Æ¤â¡¢
97 .I proj_id
98 ¤Î 1 ¥Ð¥¤¥È¡¢i ¥Î¡¼¥ÉÈÖ¹æ¤ÎÄã°Ì 16 ¥Ó¥Ã¥È¡¢¤ª¤è¤Ó
99 ¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤ÎÄã°Ì 8 ¥Ó¥Ã¥È¤Ê¤Î¤Ç¡¢·ë²Ì¤Ï 32 ¥Ó¥Ã¥È¤Ë²á¤®¤Ê¤¤¡£
100 Î㤨¤Ð
101 .I /dev/hda1
102 ¤È
103 .I /dev/sda1
104 ¤½¤ì¤¾¤ì¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¡¢¾×ÆͤÏÍưפ˵¯¤³¤ê¤¦¤ë¡£
105 .SH ´ØÏ¢¹àÌÜ
106 .BR msgget (2),
107 .BR semget (2),
108 .BR shmget (2),
109 .BR stat (2),
110 .BR svipc (7)