Changeset 4056ad0 in mainline for uspace/app/bithenge/linux/os.h
- Timestamp:
- 2012-07-28T01:57:31Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32eb01b
- Parents:
- 03cad47
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/linux/os.h
r03cad47 r4056ad0 32 32 #include <endian.h> 33 33 #include <errno.h> 34 #include <inttypes.h> 34 35 #include <memory.h> 35 36 #include <stdbool.h> 36 #include <std int.h>37 #include <stdlib.h> 37 38 #include <string.h> 38 39 #include <wchar.h> … … 44 45 #define ELIMIT EINVAL 45 46 47 typedef intmax_t bithenge_int_t; 48 #define BITHENGE_PRId PRIdMAX 46 49 typedef uint64_t aoff64_t; 47 48 50 typedef const char *string_iterator_t; 49 51 … … 130 132 } 131 133 134 static inline int bithenge_parse_int(const char *start, bithenge_int_t *result) 135 { 136 errno = 0; 137 *result = strtoll(start, NULL, 10); 138 return errno; 139 } 140 132 141 #endif
Note:
See TracChangeset
for help on using the changeset viewer.