Changes between Version 6 and Version 7 of FilesystemAPITutorial
- Timestamp:
- 2017-04-09T08:39:40Z (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FilesystemAPITutorial
v6 v7 2 2 [[PageOutline(2-3)]] 3 3 4 This tutorial will guide you through the steps that are necessary to work with files on the standard HelenOS API level in an idiomatic way. 4 This tutorial will guide you through the steps that are necessary to work with files on the standard HelenOS API level in an idiomatic way. Besides of the native APIs illustrated in this tutorial, HelenOS also provides a limited set of legacy APIs that are built on top of the native ones. These include the directory browsing functions declared in `dirent.h` and the I/O stream functions declared `stdio.h`. We will not cover those here. 5 5 6 6 == Preparing to use the API == … … 15 15 16 16 The API is designed to use file handles as a primary and prefered way to refer to files. One may obtain a file handle by looking up a filesytem path, creating a new file or directory or attaching a new filesystem into the filesystem hierarchy. 17 18 Note that there is no global filesystem root in HelenOS and equal paths may refer to different files if walked by different HelenOS tasks. 17 19 18 20 == Reading an existing file ==