2. FIle management
-
create file,delete
-
open ,close
-
read, write, reposition [move the file pointers]
-
get_gile_attributes, set_file_Attributes
windows | Linux |
---|---|
CreateFile() | open() |
ReadFile() | read() |
WriteFile() | write() |
CloseHandle() | close() |
Device management
-
request device , release device to check if the device is free
-
read, write, reposition
-
get device attributes, set device attributes
-
logically attach or detach devices
windows | Linux |
---|---|
SetConsoleMode() | ioctl() |
ReadConsole() | read() |
WriteConsole() | write() |
ioctl InputOutputControl - sets the mode of the console
read read input
write write output to output devices
4. Information maintenance
-
get time or date, set time or date
-
get system data, set system data
-
get process, dile, or device attributes
-set process, file or device attributes
windows | Linux |
---|---|
GetCurrentProcessID() | getpid() |
SetTimer() | alarm() |
Sleep() | sleep() |
getpid - get process id
alarm - signal the process continuously after a particular time interval
sleep - suspend the process after a particular time interval