Check the directory and parent directory access mode, and mount options for the flash (just run mount). Linux will remount the filesystem read-only if there are problems writing to it; if that has...
Type: Posts; User: Nominal Animal
Check the directory and parent directory access mode, and mount options for the flash (just run mount). Linux will remount the filesystem read-only if there are problems writing to it; if that has...
Here are the three POSIX.1-2008 C functions I would use for something like this:
error = verify_directory(parent, directory);
This function verifies that directory exists, relative to parent.
...
Just realized that this:
creates a directory with access mode d------rwx, which denies access to both the user and the group. Please use
mkdir(mStoredFreqIntervalDetails, 0777);
The 0777 means...
If you modify your code to
#define FREQINTDIR "/htvclnsvc/"
static Bool mWritetoFlashFreqInt(void)
{
FILE *fptr;
memset(mStoredFreqIntervalDetails, '\0', MAX_URISIZE);