Changeset 1062 for Whitix/branches/keobject/fs/icfs/config.c
- Timestamp:
- 10/03/08 12:19:56 (3 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/keobject/fs/icfs/config.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/keobject/fs/icfs/config.c
r971 r1062 82 82 struct KeFsEntry* entry; 83 83 DWORD position=0; 84 85 KePrint("%s\n", name); 84 86 85 87 entry=ConfigResolvePath(name); 88 89 if (!entry) 90 return -ENOENT; 86 91 87 92 IcRead(&position, entry->file, data, size); … … 96 101 97 102 entry=ConfigResolvePath(name); 103 104 if (!entry) 105 return -ENOENT; 98 106 99 107 IcWrite(&position, entry->file, data, size); … … 111 119 int ConfigInit() 112 120 { 113 /* Create standard directories */114 ConfigCreateDir(NULL, "Devices");115 ConfigCreateDir(NULL, "Devices/Storage");116 117 121 /* Register the ReadConf and WriteConf system calls, for quick access to configuration variables. */ 118 122 SysRegisterRange(SYS_CONFIG_BASE, configSystemCalls);