<< Previous | Next >>

fat_SetAttr

int fat_SetAttr( FATfile *file, int attr );

Description

This function sets the given attributes to the file. Use defined attribute flags to create the set values.

Parameters

file
Handle to the open file.

attr
Attributes to set in file. For attribute description see fat_GetAttr. May be one or more of the following:

· FATATTR_READ_ONLY
· FATATTR_HIDDEN
· FATATTR_SYSTEM
· FATATTR_VOLUME_ID
· FATATTR_DIRECTORY
· FATATTR_ARCHIVE
· FATATTR_LONG_NAME

Return Value

0: Success
-EIO: on device IO error
-EINVAL: invalid open file handle
-EPERM: if the file is locked or write not permitted
-EBUSY: if the device is busy. (Only if non-blocking)

Library

FAT.LIB

See Also

fat_Open, fat_Status


Dynamic C Functions << Previous | Next >> rabbit.com