Autosave: 2024-07-20 11:00:04
This commit is contained in:
parent
deb477b935
commit
db306627dd
2 changed files with 9 additions and 6 deletions
BIN
.zk/notebook.db
BIN
.zk/notebook.db
Binary file not shown.
|
@ -6,10 +6,10 @@ created: Wednesday, July 17, 2024
|
||||||
|
|
||||||
# Operating system API
|
# Operating system API
|
||||||
|
|
||||||
A user can interact with the operating system either via the GUI or the shell.
|
A user can interact with the operating system either via the GUI or the
|
||||||
(The UI is in fact an abstraction for interfacing with the shell.) When
|
[shell](Intro_to_the_Unix_shell.md). Both ultimately access the OS via the shell
|
||||||
_programs_ interact with the operating system they use the operating system's
|
since the UI is an abstraction layer of the shell. When _programs_ interact with
|
||||||
API.
|
the operating system they use the **operating system's API**.
|
||||||
|
|
||||||
Every OS has an API. This specification details how a program should interact
|
Every OS has an API. This specification details how a program should interact
|
||||||
with the OS, exposing functions, properties and data types.
|
with the OS, exposing functions, properties and data types.
|
||||||
|
@ -22,8 +22,11 @@ perform the action.
|
||||||
|
|
||||||
## Example: opening a file
|
## Example: opening a file
|
||||||
|
|
||||||
A user can use a file explorer and the mouse to open a file. However a running
|
A user can use a file explorer and the mouse to open a file. Or they can open
|
||||||
application doesn't have to do this. Instead it can call the OS API.
|
the file by invoking it from the terminal.
|
||||||
|
|
||||||
|
A running application doesn't have to do this. If it's remit includes opening
|
||||||
|
files, it can do so by calling the OS API.
|
||||||
|
|
||||||
On a Unix-like system the applicaton would use the `open` API function to open
|
On a Unix-like system the applicaton would use the `open` API function to open
|
||||||
the file:
|
the file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue