Commit 2de7ff79 authored by Ticki's avatar Ticki
Browse files

'the root scheme'

parent 4aef48f3
......@@ -32,6 +32,7 @@
- [Aren't they confusing?]()
- [How it works under the hood](./design/url/how_it_works.md)
- [Schemes](./design/scheme/schemes.md)
- [The root scheme](./design/scheme/the_root_scheme.md)
- [Writing your own scheme](./design/scheme/writing_a_scheme.md)
- [Using schemes efficiently]()
- [Resources](./design/resource/resources.md)
......
The root scheme
===============
The root scheme is the kernel scheme, which is used for registering and retrieving information about schemes. The root schemes name is simply an empty string.
Registering a scheme
====================
Registering a scheme is done by opening the name of the scheme with the `CREATE` flag, in the root scheme.
> TODO
......@@ -23,4 +23,8 @@ Not much fanciness here.
Opening a URL
-------------
Opening URLs happens through the `OPEN` system call. `OPEN` takes a C-like, null-terminating string, and two pointer-sized integers, keeping the open flags and the file mode, respectively.
The path argument of `OPEN` do not have to be an URL. For compatibility reasons, it will default to the `file:` scheme. If otherwise specified, the scheme will be resolved by the registrar (see 'The root scheme'), and then opened.
> TODO
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment