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{ 22u32 ownerId; 23u16 groupId; 24u8 attribute; 25u8 permission; 26} NANDStatus; 27</code></pre> 28</dd></dl> 29 30<H2>Description</H2> 31<p> 32NANDStatus structure is used to store the ownerID, groupID, 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 if the application has the same group ID (the application belongs to the same company).</TD> 49 </TR> 50 <TR> 51<TD width="150"><CODE>NAND_PERM_GROUP_WRITE</CODE></TD> 52<TD>Writable if the application has the same group ID (the application belongs to the same company).</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> 722007/05/M Clarified that the concept of a "group" corresponds to a "company."<br>2006/06/16 Initial version.<br> 73</p> 74 75</body> 76</html> 77