BSD 4_4 development
[unix-history] / usr / share / man / cat3 / getmode.0
index 7565e35..bb699dc 100644 (file)
@@ -1,66 +1,39 @@
-
-
-
-SETMODE(3)                   1990                     SETMODE(3)
-
-
+SETMODE(3)                  BSD Programmer's Manual                 SETMODE(3)
 
 N\bNA\bAM\bME\bE
 
 N\bNA\bAM\bME\bE
-     getmode, setmode - modify mode bits
+     g\bge\bet\btm\bmo\bod\bde\be, s\bse\bet\btm\bmo\bod\bde\be - modify mode bits
 
 S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
 
 S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
-     g\bge\bet\btm\bmo\bod\bde\be(\b(s\bse\bet\bt,\b, m\bmo\bod\bde\be)\b)
-     m\bmo\bod\bde\be_\b_t\bt *\b*s\bse\bet\bt,\b, m\bmo\bod\bde\be;\b;
+     _\bm_\bo_\bd_\be_\b__\bt
+     g\bge\bet\btm\bmo\bod\bde\be(_\bc_\bo_\bn_\bs_\bt _\bv_\bo_\bi_\bd _\b*_\bs_\be_\bt, _\bm_\bo_\bd_\be_\b__\bt _\bm_\bo_\bd_\be);
 
 
-     s\bse\bet\bt =\b= s\bse\bet\btm\bmo\bod\bde\be(\b(m\bmo\bod\bde\be_\b_s\bst\btr\br)\b)
-     m\bmo\bod\bde\be_\b_t\bt *\b*s\bse\bet\bt;\b;
-     c\bch\bha\bar\br *\b*m\bmo\bod\bde\be_\b_s\bst\btr\br;\b;
+     _\bv_\bo_\bi_\bd
+     s\bse\bet\btm\bmo\bod\bde\be(_\bc_\bo_\bn_\bs_\bt _\bc_\bh_\ba_\br _\b*_\bm_\bo_\bd_\be_\b__\bs_\bt_\br);
 
 D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
 
 D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
-     _\bG_\be_\bt_\bm_\bo_\bd_\be returns a copy of the file permission bits _\bm_\bo_\bd_\be as
-     altered by the values pointed to by _\bs_\be_\bt.  While only the
-     mode bits are altered, other parts of the file mode may be
-     examined.
+     The g\bge\bet\btm\bmo\bod\bde\be() function returns a copy of the file permission bits _\bm_\bo_\bd_\be as
+     altered by the values pointed to by _\bs_\be_\bt. While only the mode bits are al-
+     tered, other parts of the file mode may be examined.
 
 
-     _\bS_\be_\bt_\bm_\bo_\bd_\be takes an absolute (octal) or symbolic value, as
-     described in _\bc_\bh_\bm_\bo_\bd(1), as an argument and returns a pointer
-     to mode values to be supplied to _\bg_\be_\bt_\bm_\bo_\bd_\be.   Because some of
-     the symbolic values are relative to the file creation mask,
-     _\bs_\be_\bt_\bm_\bo_\bd_\be may call _\bu_\bm_\ba_\bs_\bk(2).  If this occurs, the file crea-
-     tion mask will be restored before _\bs_\be_\bt_\bm_\bo_\bd_\be returns.  If the
-     calling program changes the value of its file creation mask
-     after calling _\bs_\be_\bt_\bm_\bo_\bd_\be, _\bs_\be_\bt_\bm_\bo_\bd_\be must be called again if _\bg_\be_\bt_\b-
-     _\bm_\bo_\bd_\be is to modify future file modes correctly.
+     The s\bse\bet\btm\bmo\bod\bde\be() function takes an absolute (octal) or symbolic value, as
+     described in chmod(1),  as an argument and returns a pointer to mode val-
+     ues to be supplied to g\bge\bet\btm\bmo\bod\bde\be().  Because some of the symbolic values are
+     relative to the file creation mask, s\bse\bet\btm\bmo\bod\bde\be() may call umask(2).  If this
+     occurs, the file creation mask will be restored before s\bse\bet\btm\bmo\bod\bde\be() returns.
+     If the calling program changes the value of its file creation mask after
+     calling s\bse\bet\btm\bmo\bod\bde\be(), s\bse\bet\btm\bmo\bod\bde\be() must be called again if g\bge\bet\btm\bmo\bod\bde\be() is to mod-
+     ify future file modes correctly.
 
 
-     If the mode passed to _\bs_\be_\bt_\bm_\bo_\bd_\be is invalid, _\bs_\be_\bt_\bm_\bo_\bd_\be returns
-     NULL.
+     If the mode passed to s\bse\bet\btm\bmo\bod\bde\be() is invalid, s\bse\bet\btm\bmo\bod\bde\be() returns NULL.
 
 E\bER\bRR\bRO\bOR\bRS\bS
 
 E\bER\bRR\bRO\bOR\bRS\bS
-     _\bS_\be_\bt_\bm_\bo_\bd_\be may fail and set errno for any of the errors speci-
-     fied for the library routine _\bm_\ba_\bl_\bl_\bo_\bc(3).
+     The s\bse\bet\btm\bmo\bod\bde\be() function may fail and set errno for any of the errors spec-
+     ified for the library routine malloc(3).
 
 S\bSE\bEE\bE A\bAL\bLS\bSO\bO
 
 S\bSE\bEE\bE A\bAL\bLS\bSO\bO
-     chmod(1), stat(2), umask(2), malloc(3)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Printed 7/27/90               June                             1
-
+     chmod(1),  stat(2),  umask(2),  malloc(3)
 
 
+H\bHI\bIS\bST\bTO\bOR\bRY\bY
+     The g\bge\bet\btm\bmo\bod\bde\be() and s\bse\bet\btm\bmo\bod\bde\be() functions first appeared in 4.4BSD.
 
 
+4.4BSD                           June 9, 1993                                1