Rev 4518 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4518 | Rev 4528 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <errno.h> |
38 | #include <errno.h> |
39 | #include <stdlib.h> |
39 | #include <stdlib.h> |
40 | #include <string.h> |
40 | #include <string.h> |
41 | #include <assert.h> |
41 | #include <assert.h> |
42 | #include <bool.h> |
42 | #include <bool.h> |
- | 43 | #include <fibril.h> |
|
43 | #include <fibril_sync.h> |
44 | #include <fibril_sync.h> |
44 | #include "vfs.h" |
45 | #include "vfs.h" |
45 | 46 | ||
46 | /** |
47 | /** |
47 | * This is a per-connection table of open files. |
48 | * This is a per-connection table of open files. |
Line 56... | Line 57... | ||
56 | * first VFS_OPEN operation. |
57 | * first VFS_OPEN operation. |
57 | * |
58 | * |
58 | * This resource being per-connection and, in the first place, per-fibril, we |
59 | * This resource being per-connection and, in the first place, per-fibril, we |
59 | * don't need to protect it by a futex. |
60 | * don't need to protect it by a futex. |
60 | */ |
61 | */ |
61 | __thread vfs_file_t **files = NULL; |
62 | fibril_local vfs_file_t **files = NULL; |
62 | 63 | ||
63 | /** Initialize the table of open files. */ |
64 | /** Initialize the table of open files. */ |
64 | bool vfs_files_init(void) |
65 | bool vfs_files_init(void) |
65 | { |
66 | { |
66 | if (!files) { |
67 | if (!files) { |