Examples of Windows and Unix/Linux system calls

Thursday, March 5, 2020



                                                 Windows                                                             Unix/Linux


PROCESS CONTROL     CreateProcess()                                                        fork()
                                          ExitProcess()                                                            exit()
                                          WaitForSingleObject()                                             wait()


FILE MANAGEMENT   CreateFile()                                                             open()
                                         ReadFile()                                                                read()
                                         WriteFile()                                                               write()
                                         CloseHandle()                                                          close()

 DEVICE
 MANAGEMENT           SetConsoleMode()                                                   ioctl()
                                         ReadConsole()                                                          read()
                                         WriteConsole()                                                        write()


INFORMATION
MAINTENANCE            GetCurrentProcessID()                                          getpid()
                                         SetTimer()                                                              alarm()
                                         Sleep()                                                                   sleep()


COMMUNICATION     CreatePipe()                                                             pipe()
                                        CreateFileMapping()                                              shm_open()
                                        MapViewOfFile()                                                   mmap()

PROTECTION               SetFileSecurity()                                                     chmod()
                                       InitializeSecurityDescriptor()                                  umask()
                                       SetSecurityDescriptorGroup()                                 chown()         
                                        


0 comments :

Post a Comment