简体   繁体   中英

System Calls | Read | Write | Open | Close | Linux

In my university we should install the virtualbox and Debian to use Linux. This is done and works yet. But for the first task we should use the systemcalls open(2), read(2), write(2) and close(2). Everytime i open the Terminal and enter this functions, it doesent works.

I know this is a really stupid question, but I can't do anything with these functions.

这就是我试图使用的开放功能

We should use the Read | Write | Open | Close that /proc/interrupts reads and outputs to standard output. How does it works?

open(2) , read(2) , write(2) and close(2) are not commands or shell builtins, they're syscalls - a part of Linux API. You can read more about syscalls by running man syscalls in the terminal on your machine and get help about each of them by running man 2 open , man 2 read etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM