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>NANDStatus</title> 9</head> 10 11<body> 12 13<h1>NANDStatus</h1> 14 15<h2>C Specification</h2> 16<dl><dd> 17<pre><code> 18#include <revolution/nand.h> 19 20typedef struct NANDStatus 21{ 22 u32 ownerId; 23 u16 groupId; 24 u8 attribute; 25 u8 permission; 26} NANDStatus; 27</code></pre> 28</dd></dl> 29 30<H2>Description</H2> 31<p> 32NANDStatus structure is used to store the owner ID, group ID, attribute information, and permissions for a file or directory. 33</p> 34<p> 35Refer to the following table for information on file and directory permissions. 36 37<TABLE border="1"> 38 <TR> 39<TD width="150"><CODE>NAND_PERM_OWNER_READ</CODE></TD> 40<TD>readable only by the owner</TD> 41 </TR> 42 <TR> 43<TD width="150"><CODE>NAND_PERM_OWNER_WRITE</CODE></TD> 44<TD>writable only by the owner</TD> 45 </TR> 46 <TR> 47<TD width="150"><CODE>NAND_PERM_GROUP_READ</CODE></TD> 48<TD>readable when the application has the same group ID</TD> 49 </TR> 50 <TR> 51<TD width="150"><CODE>NAND_PERM_GROUP_WRITE</CODE></TD> 52<TD>writable when the application has the same group ID</TD> 53 </TR> 54 <TR> 55<TD width="150"><CODE>NAND_PERM_OTHER_READ</CODE></TD> 56<TD>readable by any application</TD> 57 </TR> 58 <TR> 59<TD width="150"><CODE>NAND_PERM_OTHER_WRITE</CODE></TD> 60<TD>writable by any application</TD> 61 </TR> 62</TABLE> 63 </p> 64 65<h2>See Also</h2> 66<p> 67<code><a href="./NANDGetStatus.html">NANDGetStatus</a></code>, <code><a href="./NANDGetStatusAsync.html">NANDGetStatusAsync</a></code>, <code><a href="./NANDSetStatus.html">NANDSetStatus</a></code>, <code><a href="./NANDSetStatusAsync.html">NANDSetStatusAsync</a></code> 68</p> 69 70<H2>Revision History</H2> 71<p>06/16/2006 Initial version.</p> 72 73</body> 74</html> 75