NAND Function List

Initialization

NANDInit Initializes the NAND library.

File Access

NANDCreate Creates a file.
NANDCreateAsync Asynchronously creates a file.
NANDOpen Opens a file.
NANDOpenAsync Asynchronously opens a file.
NANDClose Closes a file.
NANDCloseAsync Asynchronously closes a file.
NANDRead Reads data from a file.
NANDReadAsync Asynchronously reads data from a file.
NANDWrite Writes data to a file.
NANDWriteAsync Asynchronously writes data to a file.
NANDSeek Performs a file seek.
NANDSeekAsync Performs a file seek asynchronously.
NANDTell Returns the current position of the file.
NANDTellAsync Asynchronously returns the current position of a file.
NANDGetLength Gets the file size.
NANDGetLengthAsync Asynchronously gets the file size.
NANDSimpleSafeOpen Opens a file while guaranteeing the atomicity of file updates.
NANDSimpleSafeOpenAsync Asynchronously opens a file while guaranteeing the atomicity of file updates.
NANDSimpleSafeClose Closes a file while guaranteeing the atomicity of file updates.
NANDSimpleSafeCloseAsync Asynchronously closes a file while guaranteeing the atomicity of file updates.
NANDSimpleSafeCancel If a NANDSimpleSafe function ends in an error, releases the resource that is being used.
NANDSimpleSafeCloseAsync If a NANDSimpleSafe type function ends in an error, asynchronously releases the resource being used.
NANDSafeOpen Opens a file while guaranteeing the atomicity of file updates (not recommended).
NANDSafeOpenAsync Asynchronously opens a file while guaranteeing the atomicity of file updates (not recommended).
NANDSafeClose Closes a file while guaranteeing the atomicity of file updates (not recommended).
NANDSafeCloseAsync Asynchronously closes a file while guaranteeing the atomicity of file updates (not recommended).

Directory Access

NANDReadDir Gets a list of file or directory names stored in the directory.
NANDReadDirAsync Asynchronously gets a list of file or directory names stored in the directory.
NANDCreateDir Creates a directory.
NANDCreateDirAsync Asynchronously creates a directory.
NANDChangeDir Changes the current directory.
NANDChangeDirAsync Asynchronously changes the current directory.
NANDGetCurrentDir Gets the current directory.
NANDGetHomeDir Gets the home directory.

File or Directory Access

NANDDelete Deletes a file or directory.
NANDDeleteAsync Asynchronously deletes a file or directory.
NANDMove Moves a file or directory.
NANDMoveAsync Asynchronously moves a file or directory.
NANDSetStatus Configures the status information of a file or directory.
NANDSetStatusAsync Configures the status information of a file or directory asynchronously.
NANDGetStatus Gets the status information of a file or directory.
NANDGetStatusAsync Gets the status information of a file or directory asynchronously.
NANDGetType Checks whether the specified path name is for a file or a directory.
NANDGetTypeAsync Asynchronously checks whether the specified path name is for a file or a directory.

File System Access

NANDFreeBlocks Gets the amount of available space in the file system and the number of empty inodes.
NANDFreeBlocksAsync Gets the the amount of available space in the file system and the number of empty inodes asynchronously.
NANDCheck Checks whether new files or directories can be created.
NANDCheckAsync Asynchronously checks whether new files or directories can be created.
NANDGetAvailableArea Get the number of FS blocks and i-nodes available for use by the application.
NANDGetAvailableAreaAsync Asynchronously get the number of FS blocks and i-nodes available for use by the application.
NANDGetTmpDirUsage Gets the number of FS blocks and i-nodes being consumed under /tmp.
NANDGetTmpDirUsageAsync Asynchronously gets the number of FS blocks and i-nodes being consumed under /tmp.
NANDGetHomeDirUsage Gets the number of FS blocks and i-nodes being consumed under the home directory.
NANDGetHomeDirUsageAsync Asynchronously gets the number of FS blocks and i-nodes being consumed under the home directory.

User Data Access

NANDSetUserData Sets user data to a command block.
NANDGetUserData Gets user data from a command block.

Banner Files

NANDInitBanner Initializes the banner structure.
NANDGetIconSpeed Gets the amount of time that the icon in the banner is displayed.
NANDSetIconSpeed Sets the amount of time that the icon in the banner is displayed.

Types and Structures

NANDFileInfo File structure in the NAND library.
NANDStatus Status structure that stores ownerID, groupID, attributes, and permissions.
NANDCommandBlock Command block structure used inside the library to process asynchronous function requests.