Changeset 1433ecda in mainline for uspace/lib/c/include
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/lib/c/include
- Files:
-
- 9 edited
-
atomicdflt.h (modified) (1 diff)
-
byteorder.h (modified) (1 diff)
-
ddi.h (modified) (1 diff)
-
getopt.h (modified) (1 diff)
-
io/pixelmap.h (modified) (4 diffs)
-
ipc/devman.h (modified) (1 diff)
-
nic/nic.h (modified) (1 diff)
-
stdio.h (modified) (3 diffs)
-
unaligned.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/atomicdflt.h
r47b2d7e3 r1433ecda 37 37 38 38 #ifndef LIBC_ARCH_ATOMIC_H_ 39 #error This file cannot be included directly, include atomic.h instead.39 #error This file cannot be included directly, include atomic.h instead. 40 40 #endif 41 41 -
uspace/lib/c/include/byteorder.h
r47b2d7e3 r1433ecda 39 39 40 40 #if !(defined(__BE__) ^ defined(__LE__)) 41 #error The architecture must be either big-endian or little-endian.41 #error The architecture must be either big-endian or little-endian. 42 42 #endif 43 43 -
uspace/lib/c/include/ddi.h
r47b2d7e3 r1433ecda 69 69 70 70 typedef void (*trace_fnc)(const volatile void *place, uint64_t val, 71 volatile void *base, size_t size, void *data, bool write);71 volatile void *base, size_t size, void *data, bool write); 72 72 73 73 extern errno_t pio_trace_enable(void *, size_t, trace_fnc, void *); -
uspace/lib/c/include/getopt.h
r47b2d7e3 r1433ecda 61 61 extern int optreset; 62 62 63 int getopt_long(int, char * const *, const char *,63 int getopt_long(int, char *const *, const char *, 64 64 const struct option *, int *); 65 65 66 66 /* HelenOS Port : Expose legacy getopt() */ 67 int getopt(int, char * const [], const char *);67 int getopt(int, char *const [], const char *); 68 68 69 69 #endif /* !_GETOPT_H_ */ -
uspace/lib/c/include/io/pixelmap.h
r47b2d7e3 r1433ecda 81 81 82 82 static inline void pixelmap_put_pixel( 83 pixelmap_t * pixelmap,83 pixelmap_t *pixelmap, 84 84 sysarg_t x, 85 85 sysarg_t y, … … 112 112 x %= pixmap->width; 113 113 y %= pixmap->height; 114 } 115 else if (extend == PIXELMAP_EXTEND_SIDES || 114 } else if (extend == PIXELMAP_EXTEND_SIDES || 116 115 extend == PIXELMAP_EXTEND_TRANSPARENT_SIDES) { 117 116 bool transparent_outside = … … 120 119 x = 0; 121 120 transparent = transparent_outside; 122 } 123 else if (((sysarg_t) x) >= pixmap->width) { 121 } else if (((sysarg_t) x) >= pixmap->width) { 124 122 x = pixmap->width - 1; 125 123 transparent = transparent_outside; … … 129 127 y = 0; 130 128 transparent = transparent_outside; 131 } 132 else if (((sysarg_t) y) >= pixmap->height) { 129 } else if (((sysarg_t) y) >= pixmap->height) { 133 130 y = pixmap->height - 1; 134 131 transparent = transparent_outside; -
uspace/lib/c/include/ipc/devman.h
r47b2d7e3 r1433ecda 112 112 113 113 while (link != &ids->ids.head) { 114 mid = list_get_instance(link, match_id_t, link);114 mid = list_get_instance(link, match_id_t, link); 115 115 if (mid->score < id->score) { 116 116 break; -
uspace/lib/c/include/nic/nic.h
r47b2d7e3 r1433ecda 444 444 * @return true or false 445 445 */ 446 static inline int nic_wv_is_multi(nic_wv_type_t type) { 446 static inline int nic_wv_is_multi(nic_wv_type_t type) 447 { 447 448 switch (type) { 448 449 case NIC_WV_FULL_MATCH: -
uspace/lib/c/include/stdio.h
r47b2d7e3 r1433ecda 44 44 45 45 #ifndef SEEK_SET 46 #define SEEK_SET 046 #define SEEK_SET 0 47 47 #endif 48 48 49 49 #ifndef SEEK_CUR 50 #define SEEK_CUR 150 #define SEEK_CUR 1 51 51 #endif 52 52 53 53 #ifndef SEEK_END 54 #define SEEK_END 254 #define SEEK_END 2 55 55 #endif 56 56 … … 82 82 83 83 /* Formatted string output functions */ 84 extern int fprintf(FILE *, const char *, ...)84 extern int fprintf(FILE *, const char *, ...) 85 85 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 86 86 extern int vfprintf(FILE *, const char *, va_list); … … 90 90 extern int vprintf(const char *, va_list); 91 91 92 extern int snprintf(char *, size_t , const char *, ...)92 extern int snprintf(char *, size_t, const char *, ...) 93 93 _HELENOS_PRINTF_ATTRIBUTE(3, 4); 94 94 extern int vasprintf(char **, const char *, va_list); -
uspace/lib/c/include/unaligned.h
r47b2d7e3 r1433ecda 38 38 #include <stdint.h> 39 39 40 typedef int16_t unaligned_int16_t __attribute__ ((aligned(1)));41 typedef int32_t unaligned_int32_t __attribute__ ((aligned(1)));42 typedef int64_t unaligned_int64_t __attribute__ ((aligned(1)));40 typedef int16_t unaligned_int16_t __attribute__((aligned(1))); 41 typedef int32_t unaligned_int32_t __attribute__((aligned(1))); 42 typedef int64_t unaligned_int64_t __attribute__((aligned(1))); 43 43 44 typedef uint16_t unaligned_uint16_t __attribute__ ((aligned(1)));45 typedef uint32_t unaligned_uint32_t __attribute__ ((aligned(1)));46 typedef uint64_t unaligned_uint64_t __attribute__ ((aligned(1)));44 typedef uint16_t unaligned_uint16_t __attribute__((aligned(1))); 45 typedef uint32_t unaligned_uint32_t __attribute__((aligned(1))); 46 typedef uint64_t unaligned_uint64_t __attribute__((aligned(1))); 47 47 48 48 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
