Changes in uspace/lib/c/generic/sysinfo.c [b7fd2a0:38d150e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/sysinfo.c
rb7fd2a0 r38d150e 49 49 * 50 50 */ 51 static errno_t sysinfo_get_keys_size(const char *path, size_t *size)52 { 53 return ( errno_t) __SYSCALL3(SYS_SYSINFO_GET_KEYS_SIZE, (sysarg_t) path,51 static int sysinfo_get_keys_size(const char *path, size_t *size) 52 { 53 return (int) __SYSCALL3(SYS_SYSINFO_GET_KEYS_SIZE, (sysarg_t) path, 54 54 (sysarg_t) str_size(path), (sysarg_t) size); 55 55 } … … 75 75 76 76 /* Get the keys size */ 77 errno_t ret = sysinfo_get_keys_size(path, size);77 int ret = sysinfo_get_keys_size(path, size); 78 78 if ((ret != EOK) || (size == 0)) { 79 79 /* … … 92 92 /* Get the data */ 93 93 size_t sz; 94 ret = (errno_t)__SYSCALL5(SYS_SYSINFO_GET_KEYS, (sysarg_t) path,94 ret = __SYSCALL5(SYS_SYSINFO_GET_KEYS, (sysarg_t) path, 95 95 (sysarg_t) str_size(path), (sysarg_t) data, (sysarg_t) *size, 96 96 (sysarg_t) &sz); … … 127 127 * 128 128 */ 129 errno_t sysinfo_get_value(const char *path, sysarg_t *value)130 { 131 return ( errno_t) __SYSCALL3(SYS_SYSINFO_GET_VALUE, (sysarg_t) path,129 int sysinfo_get_value(const char *path, sysarg_t *value) 130 { 131 return (int) __SYSCALL3(SYS_SYSINFO_GET_VALUE, (sysarg_t) path, 132 132 (sysarg_t) str_size(path), (sysarg_t) value); 133 133 } … … 142 142 * 143 143 */ 144 static errno_t sysinfo_get_data_size(const char *path, size_t *size)145 { 146 return ( errno_t) __SYSCALL3(SYS_SYSINFO_GET_DATA_SIZE, (sysarg_t) path,144 static int sysinfo_get_data_size(const char *path, size_t *size) 145 { 146 return (int) __SYSCALL3(SYS_SYSINFO_GET_DATA_SIZE, (sysarg_t) path, 147 147 (sysarg_t) str_size(path), (sysarg_t) size); 148 148 } … … 168 168 169 169 /* Get the binary data size */ 170 errno_t ret = sysinfo_get_data_size(path, size);170 int ret = sysinfo_get_data_size(path, size); 171 171 if ((ret != EOK) || (size == 0)) { 172 172 /* … … 186 186 /* Get the data */ 187 187 size_t sz; 188 ret = (errno_t)__SYSCALL5(SYS_SYSINFO_GET_DATA, (sysarg_t) path,188 ret = __SYSCALL5(SYS_SYSINFO_GET_DATA, (sysarg_t) path, 189 189 (sysarg_t) str_size(path), (sysarg_t) data, (sysarg_t) *size, 190 190 (sysarg_t) &sz);
Note:
See TracChangeset
for help on using the changeset viewer.