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>Syntax</h2> 16<dl><dd><pre class="construction"> 17#include <revolution/nand.h> 18 19typedef struct NANDStatus 20{ 21 u32 ownerId; 22 u16 groupId; 23 u8 attribute; 24 u8 permission; 25} NANDStatus; 26</pre></dd></dl> 27 28<H2>Description</H2> 29<p> 30The <CODE>NANDStatus</CODE> structure is used to store the owner ID, group ID, attribute information and permissions for a file or directory. 31</p> 32<p> 33Refer to the following table for information on file and directory permissions. 34 35<TABLE class="arguments" border="1" > 36 <TR> 37<TH>NAND_PERM_OWNER_READ</TH> 38<TD>Readable only by the owner.</TD> 39 </TR> 40 <TR> 41<TH>NAND_PERM_OWNER_WRITE</TH> 42<TD>Writable only by the owner.</TD> 43 </TR> 44 <TR> 45<TH>NAND_PERM_GROUP_READ</TH> 46<TD>Readable when the application has the same group ID (belongs to the same company).</TD> 47 </TR> 48 <TR> 49<TH>NAND_PERM_GROUP_WRITE</TH> 50<TD>Writable when the application has the same group ID (belongs to the same company).</TD> 51 </TR> 52 <TR> 53<TH>NAND_PERM_OTHER_READ</TH> 54<TD>Readable by any application.</TD> 55 </TR> 56 <TR> 57<TH>NAND_PERM_OTHER_WRITE</TH> 58<TD>Writable by any application.</TD> 59 </TR> 60</TABLE> 61</p> 62 63<h2>See Also</h2> 64<p class="reference"> 65<a href="./NANDGetStatus.html">NANDGetStatus</a>, 66<a href="./NANDGetStatusAsync.html">NANDGetStatusAsync</a>, 67<a href="./NANDSetStatus.html">NANDSetStatus</a>, 68<a href="./NANDSetStatusAsync.html">NANDSetStatusAsync</a> 69</p> 70 71<H2>Revision History</H2> 72<p> 732007/05/xx Clarified that the concept of a <EM>group</EM> corresponds to a <EM>company</EM>.<br>2006/06/16 Initial version.<br> 74</p> 75 76<hr><p>CONFIDENTIAL</p></body> 77</html> 78