1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>NANDCreateDir</title> 9</head> 10 11<body> 12 13<h1>NANDCreateDir</h1> 14 15<h2>C Specification</h2> 16<dl><dd><pre><code> 17#include <revolution/nand.h> 18 19#define NAND_PERM_OTHER_READ 0x01 20#define NAND_PERM_OTHER_WRITE 0x02 21#define NAND_PERM_GROUP_READ 0x04 22#define NAND_PERM_GROUP_WRITE 0x08 23#define NAND_PERM_OWNER_READ 0x10 24#define NAND_PERM_OWNER_WRITE 0x20 25 26s32 NANDCreateDir( const char *path, u8 perm, u8 attr ); 27</code></pre></dd></dl> 28 29<h2>Arguments</h2> 30<p> 31<TABLE border="1" > 32 <tr> 33<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><STRONG><EM><CODE>path</CODE></EM></STRONG></EM></STRONG></CODE></TD> 34<TD width="520">Specifies the directory name. </TD> 35 </tr> 36 <tr> 37<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><STRONG><EM><CODE>perm</CODE></EM></STRONG></EM></STRONG></CODE></TD> 38<TD width="520">Directory permissions. Specify by taking the logical sum of <code>NAND_PERM_*</code>.</TD> 39 </tr> 40 <tr> 41<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><STRONG><EM><CODE>attr</CODE></EM></STRONG></EM></STRONG></CODE></TD> 42<TD width="520">Specifies the directory attributes.</TD> 43 </tr> 44</TABLE> 45</p> 46 47<h2>Return Values</h2> 48<p> 49Returns one of the following codes: 50<p> 51<code>NAND_RESULT_OK<br> NAND_RESULT_ACCESS<br> NAND_RESULT_CORRUPT<br> NAND_RESULT_EXISTS<br> NAND_RESULT_INVALID<br> NAND_RESULT_MAXFILES<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code> 52</p> 53</p> 54 55<H2>Description</H2> 56<p> 57Creates a new directory. The created directory is assigned the specified permissions and attributes. 58</p> 59 60<h2>See Also</h2> 61<p> 62<code><a href="./NANDCreateDirAsync.html">NANDCreateDirAsync</a></code>, <code><a href="./NANDDelete.html">NANDDelete</a></code>, <code><a href="./NANDDeleteAsync.html">NANDDeleteAsync</a></code> 63</p> 64 65<H2>Revision History</H2> 66<p>06/16/2006 Initial version.</p> 67 68 69</body> 70</html> 71