OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / getumask.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 .\" This replaces an earlier man page written by Walter Harms
24 .\" <walter.harms@informatik.uni-oldenburg.de>.
25 .\"
26 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI all rights reserved.
27 .\" Translated Thu 05 Dec 2002 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\"
29 .TH GETUMASK 3 2009-01-20 "GNU" "Linux Programmer's Manual"
30 .\"O .SH NAME
31 .SH Ì¾Á°
32 .\"O getumask \- get file creation mask
33 getumask \- ¥Õ¥¡¥¤¥ëºîÀ®¥Þ¥¹¥¯¤ò¼èÆÀ¤¹¤ë
34 .\"O .SH SYNOPSIS
35 .SH ½ñ¼°
36 .B #define _GNU_SOURCE
37 .br
38 .B "#include <sys/types.h>"
39 .br
40 .B "#include <sys/stat.h>"
41 .sp
42 .B "mode_t getumask(void);"
43 .\"O .SH DESCRIPTION
44 .SH ÀâÌÀ
45 .\"O This function returns the current file creation mask.
46 ¤³¤Î´Ø¿ô¤Ï¸½ºß¤Î¥Õ¥¡¥¤¥ëºîÀ®¥Þ¥¹¥¯¤òÊÖ¤¹¡£
47 .\"O It is equivalent to
48 ´ðËÜŪ¤Ë¤Ï°Ê²¼¤ÈÅù²Á¤Ç¤¢¤ë¡£
49 .in +4n
50 .nf
51
52 mode_t getumask(void)
53 {
54     mode_t mask = umask( 0 );
55     umask(mask);
56     return mask;
57 }
58
59 .fi
60 .in
61 .\"O except that it is documented to be thread-safe (that is, shares
62 .\"O a lock with the
63 .\"O .BR umask (2)
64 .\"O library call).
65 ¥É¥­¥å¥á¥ó¥È¤Ë¤è¤ë¤È¡¢¤³¤Î´Ø¿ô¤Ï
66 ¥¹¥ì¥Ã¥É¡¦¥»¡¼¥Õ¤Ç¤¢¤ë
67 .RB ( umask (2)
68 ¥é¥¤¥Ö¥é¥ê¡¦¥³¡¼¥ë¤È¥í¥Ã¥¯¤ò¶¦Í­¤¹¤ë)
69 ÅÀ¤¬°Û¤Ê¤ë¡£
70 .\"O .SH "CONFORMING TO"
71 .SH ½àµò
72 .\"O This is a vaporware GNU extension.
73 ¥É¥­¥å¥á¥ó¥È¤Ë½ñ¤¤¤Æ¤¢¤ë¤À¤±¤Î GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
74 .\"O .SH NOTES
75 .SH Ãí°Õ
76 .\"O This function is documented but not implemented yet in glibc,
77 .\"O as at version 2.9.
78 ¥Ð¡¼¥¸¥ç¥ó 2.9 »þÅÀ¤Î glibc ¤Ç¤Ï¡¢
79 ¤³¤Î´Ø¿ô¤Ë¤Ä¤¤¤Æ¤Îµ­ºÜ¤Ï¤¢¤ë¤¬¡¢¤Þ¤À¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
80 .\"O .SH "SEE ALSO"
81 .SH ´ØÏ¢¹àÌÜ
82 .BR umask (2)