Tip: Managing File Descriptors - ANLAB-KAIST/KENSv3 GitHub Wiki
In KENS, you have to manage file descriptors per process. KENS provides the file descriptor management methods in class SystemCallInterface
. The parameter processID
to createFileDescriptor
specifies the process associated with the file descriptor.
You can create a new file descriptor using createFileDescriptor
.
This method allocates a new file descriptor in a POSIX-compliant way and returns it.
Also, you can remove a specific file descriptor using removeFileDescriptor
.