Skip to content

Tip: Managing File Descriptors

Sue Moon edited this page Apr 1, 2021 · 4 revisions

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.