What is the advantage of setting a file attribute to "S" i.e. system file? I just came across a document which describes what letter sets what attribute.
They are expected to be "don't touch". Bigger warning than just read-only and hidden. From the original MS-DOS, the system files normally had very specific requirements where they were allowed to be stored since the boot loader intended to read them didn't understand the full FAT functionality.
Though the fattrib function is defined in the rtl.h header, i m unable to find it in the rtl.h
i started checking after the compiler gave the error "declared implicitly"
look like i will have to implement the function. :|
That's true. fattrib function doesnt have any declaration in the rtl.h but the documentation says otherwise.
In the latest RTL.h fattrib is declared on line 423.
Name: RTL.H Rev.: V4.73 Line 423: extern int fattrib (const char *par, const char *path);
Mine is v4.53 and line 423 reads - #define TCP_TYPE_FLOW_CTRL 0x08 /* Socket Type Flow Control */