UMASK

Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Þ´º¾ó (2)
Updated: 1998³â 8¿ù 9ÀÏ
Index
Return to Main Contents
 

À̸§

umask - ÆÄÀÏ »ý¼º ¸¶½ºÅ©(mask)À» ¼³Á¤ÇÑ´Ù.  

»ç¿ë¹ý

#include <sys/types.h>
#include <sys/stat.h>

mode_t umask(mode_t mask);  

¼³¸í

umask ´Â umask¸¦ mask & 0777 À¸·Î ¼³Á¤ÇÑ´Ù.

umask´Â »õ·Î »ý¼ºµÈ ÆÄÀÏÀÇ Ãʱâ Çã°¡±ÇÀ» ¼³Á¤Çϱâ À§ÇØ open(2)¿¡ ÀÇÇØ »ç¿ëµÈ´Ù. ƯÈ÷, umaskÀÇ Çã°¡±ÇÀº open(2)ÀÇ mode ÀÎÀÚ¸¦ÀÇ Çã°¡±ÇÀ» ¸·´Â´Ù. (¿¹¸¦ µé¾î, ÀϹÝÀûÀÎ umask ±âº»°ªÀÌ 022ÀÎ °æ¿ì mode°¡ 0666À¸·Î ÁöÁ¤µÇ¾î ÀÖÀ¸¸é 0666 & ~022 = 0644 = rw-r--r-- Çã°¡±ÇÀ¸·Î ÆÄÀÏÀ» ¸¸µç´Ù.)  

¹Ýȯ°ª

ÀÌ ½Ã½ºÅÛ ÄÝÀº Ç×»ó ¼º°øÇÏ¸ç ¸¶½ºÅ©ÀÇ ÀÌÀü°ªÀ» ¸®ÅÏÇÑ´Ù.  

ȣȯ

SVr4, SVID, POSIX, X/OPEN, BSD 4.3  

°ü·Ã Ç׸ñ

creat(2), open(2)  

¿ªÀÚ

Á¤°­ÈÆ <skyeyes@soback.kornet.net>, 2000³â 5¿ù 1ÀÏ


 

Index

À̸§
»ç¿ë¹ý
¼³¸í
¹Ýȯ°ª
ȣȯ
°ü·Ã Ç׸ñ
¿ªÀÚ

This document was created by man2html, using the manual pages.
Time: 08:07:00 GMT, March 25, 2004