Changeset 09d13c8e in mainline
- Timestamp:
- 2018-01-13T14:57:38Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd76871
- Parents:
- 18bb198
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/printf.h
r18bb198 r09d13c8e 41 41 extern int puts(const char *); 42 42 extern int printf(const char *, ...) 43 PRINTF_ATTRIBUTE(1, 2);43 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 44 44 extern int vprintf(const char *, va_list); 45 45 -
boot/generic/include/printf_verify.h
r18bb198 r09d13c8e 33 33 #define BOOT_PRINTF_VERIFY_H_ 34 34 35 #ifndef NVERIFY_PRINTF35 #ifndef _HELENOS_NVERIFY_PRINTF 36 36 37 #define PRINTF_ATTRIBUTE(start, end) \37 #define _HELENOS_PRINTF_ATTRIBUTE(start, end) \ 38 38 __attribute__((format(gnu_printf, start, end))) 39 39 40 #else /* NVERIFY_PRINTF */40 #else /* _HELENOS_NVERIFY_PRINTF */ 41 41 42 #define PRINTF_ATTRIBUTE(start, end)42 #define _HELENOS_PRINTF_ATTRIBUTE(start, end) 43 43 44 #endif /* NVERIFY_PRINTF */44 #endif /* _HELENOS_NVERIFY_PRINTF */ 45 45 46 46 #endif -
kernel/generic/include/interrupt.h
r18bb198 r09d13c8e 61 61 62 62 extern void fault_from_uspace(istate_t *, const char *, ...) 63 PRINTF_ATTRIBUTE(2, 3);63 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 64 64 extern void fault_if_from_uspace(istate_t *, const char *, ...) 65 PRINTF_ATTRIBUTE(2, 3);65 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 66 66 extern istate_t *istate_get(thread_t *); 67 67 extern iroutine_t exc_register(unsigned int, const char *, bool, iroutine_t); -
kernel/generic/include/log.h
r18bb198 r09d13c8e 48 48 extern int log_vprintf(const char *, va_list); 49 49 extern int log_printf(const char *, ...) 50 PRINTF_ATTRIBUTE(1, 2);50 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 51 51 extern int log(log_facility_t, log_level_t, const char *, ...) 52 PRINTF_ATTRIBUTE(3, 4);52 _HELENOS_PRINTF_ATTRIBUTE(3, 4); 53 53 54 54 extern sys_errno_t sys_klog(sysarg_t, void *buf, size_t size, -
kernel/generic/include/panic.h
r18bb198 r09d13c8e 66 66 extern void panic_common(panic_category_t, struct istate *, int, 67 67 uintptr_t, const char *, ...) __attribute__ ((noreturn)) 68 PRINTF_ATTRIBUTE(5, 6);68 _HELENOS_PRINTF_ATTRIBUTE(5, 6); 69 69 70 70 #endif -
kernel/generic/include/print.h
r18bb198 r09d13c8e 44 44 extern int puts(const char *s); 45 45 extern int printf(const char *fmt, ...) 46 PRINTF_ATTRIBUTE(1, 2);46 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 47 47 extern int snprintf(char *str, size_t size, const char *fmt, ...) 48 PRINTF_ATTRIBUTE(3, 4);48 _HELENOS_PRINTF_ATTRIBUTE(3, 4); 49 49 50 50 extern int vprintf(const char *fmt, va_list ap); -
kernel/generic/include/printf/verify.h
r18bb198 r09d13c8e 36 36 #define KERN_PRINTF_VERIFY_H_ 37 37 38 #ifndef NVERIFY_PRINTF38 #ifndef _HELENOS_NVERIFY_PRINTF 39 39 40 40 #ifdef __clang__ 41 #define PRINTF_ATTRIBUTE(start, end) \41 #define _HELENOS_PRINTF_ATTRIBUTE(start, end) \ 42 42 __attribute__((format(__printf__, start, end))) 43 43 #else 44 #define PRINTF_ATTRIBUTE(start, end) \44 #define _HELENOS_PRINTF_ATTRIBUTE(start, end) \ 45 45 __attribute__((format(gnu_printf, start, end))) 46 46 #endif 47 47 48 48 49 #else /* NVERIFY_PRINTF */49 #else /* _HELENOS_NVERIFY_PRINTF */ 50 50 51 #define PRINTF_ATTRIBUTE(start, end)51 #define _HELENOS_PRINTF_ATTRIBUTE(start, end) 52 52 53 #endif /* NVERIFY_PRINTF */53 #endif /* _HELENOS_NVERIFY_PRINTF */ 54 54 55 55 #endif -
kernel/test/print/print5.c
r18bb198 r09d13c8e 37 37 * 38 38 */ 39 #define NVERIFY_PRINTF39 #define _HELENOS_NVERIFY_PRINTF 40 40 41 41 #include <print.h> -
uspace/app/bdsh/errors.h
r18bb198 r09d13c8e 49 49 50 50 extern void cli_error(int, const char *, ...) 51 PRINTF_ATTRIBUTE(2, 3);51 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 52 52 53 53 #endif -
uspace/app/fontviewer/fontviewer.c
r18bb198 r09d13c8e 139 139 140 140 static int text(drawctx_t *, font_t *, source_t *, surface_coord_t x, 141 surface_coord_t , const char *, ...) PRINTF_ATTRIBUTE(6, 7);141 surface_coord_t , const char *, ...) _HELENOS_PRINTF_ATTRIBUTE(6, 7); 142 142 static int text(drawctx_t *drawctx, font_t *font, source_t *source, 143 143 surface_coord_t x, surface_coord_t y, const char *fmt, ...) -
uspace/app/tester/print/print5.c
r18bb198 r09d13c8e 37 37 * 38 38 */ 39 #define NVERIFY_PRINTF39 #define _HELENOS_NVERIFY_PRINTF 40 40 41 41 #include <stdio.h> -
uspace/app/top/screen.h
r18bb198 r09d13c8e 45 45 extern void print_data(data_t *); 46 46 extern void show_warning(const char *, ...) 47 PRINTF_ATTRIBUTE(1, 2);47 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 48 48 49 49 extern int tgetchar(unsigned int); -
uspace/dist/src/c/demos/top/screen.h
r18bb198 r09d13c8e 45 45 extern void print_data(data_t *); 46 46 extern void show_warning(const char *, ...) 47 PRINTF_ATTRIBUTE(1, 2);47 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 48 48 49 49 extern errno_t tgetchar(unsigned int); -
uspace/lib/c/include/io/kio.h
r18bb198 r09d13c8e 44 44 extern void kio_command(const void *, size_t); 45 45 extern int kio_printf(const char *, ...) 46 PRINTF_ATTRIBUTE(1, 2);46 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 47 47 extern int kio_vprintf(const char *, va_list); 48 48 -
uspace/lib/c/include/io/log.h
r18bb198 r09d13c8e 60 60 61 61 extern void log_msg(log_t, log_level_t, const char *, ...) 62 PRINTF_ATTRIBUTE(3, 4);62 _HELENOS_PRINTF_ATTRIBUTE(3, 4); 63 63 extern void log_msgv(log_t, log_level_t, const char *, va_list); 64 64 -
uspace/lib/c/include/io/verify.h
r18bb198 r09d13c8e 36 36 #define LIBC_IO_VERIFY_H_ 37 37 38 #ifndef NVERIFY_PRINTF38 #ifndef _HELENOS_NVERIFY_PRINTF 39 39 40 40 #ifdef __clang__ 41 #define PRINTF_ATTRIBUTE(start, end) \41 #define _HELENOS_PRINTF_ATTRIBUTE(start, end) \ 42 42 __attribute__((format(__printf__, start, end))) 43 43 #else 44 #define PRINTF_ATTRIBUTE(start, end) \44 #define _HELENOS_PRINTF_ATTRIBUTE(start, end) \ 45 45 __attribute__((format(gnu_printf, start, end))) 46 46 #endif 47 47 48 #else /* NVERIFY_PRINTF */48 #else /* _HELENOS_NVERIFY_PRINTF */ 49 49 50 #define PRINTF_ATTRIBUTE(start, end)50 #define _HELENOS_PRINTF_ATTRIBUTE(start, end) 51 51 52 #endif /* NVERIFY_PRINTF */52 #endif /* _HELENOS_NVERIFY_PRINTF */ 53 53 54 54 #endif -
uspace/lib/c/include/stdio.h
r18bb198 r09d13c8e 112 112 /* Formatted string output functions */ 113 113 extern int fprintf(FILE *, const char*, ...) 114 PRINTF_ATTRIBUTE(2, 3);114 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 115 115 extern int vfprintf(FILE *, const char *, va_list); 116 116 117 117 extern int printf(const char *, ...) 118 PRINTF_ATTRIBUTE(1, 2);118 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 119 119 extern int vprintf(const char *, va_list); 120 120 121 121 extern int snprintf(char *, size_t , const char *, ...) 122 PRINTF_ATTRIBUTE(3, 4);122 _HELENOS_PRINTF_ATTRIBUTE(3, 4); 123 123 extern int vasprintf(char **, const char *, va_list); 124 124 extern int asprintf(char **, const char *, ...) 125 PRINTF_ATTRIBUTE(2, 3);125 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 126 126 extern int vsnprintf(char *, size_t, const char *, va_list); 127 127 128 128 extern int printf_size(const char *, ...) 129 PRINTF_ATTRIBUTE(1, 2);129 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 130 130 extern int vprintf_size(const char *, va_list); 131 131 -
uspace/lib/drv/include/ddf/log.h
r18bb198 r09d13c8e 39 39 extern errno_t ddf_log_init(const char *); 40 40 extern void ddf_msg(log_level_t, const char *, ...) 41 PRINTF_ATTRIBUTE(2, 3);41 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 42 42 43 43 extern void ddf_dump_buffer(char *, size_t, const void *, size_t, size_t, -
uspace/lib/posix/include/posix/stdio.h
r18bb198 r09d13c8e 99 99 extern int puts(const char *); 100 100 101 extern int fprintf(FILE *, const char*, ...) PRINTF_ATTRIBUTE(2, 3);101 extern int fprintf(FILE *, const char*, ...) _HELENOS_PRINTF_ATTRIBUTE(2, 3); 102 102 extern int vfprintf(FILE *, const char *, va_list); 103 103 104 extern int printf(const char *, ...) PRINTF_ATTRIBUTE(1, 2);104 extern int printf(const char *, ...) _HELENOS_PRINTF_ATTRIBUTE(1, 2); 105 105 extern int vprintf(const char *, va_list); 106 106 107 extern int snprintf(char *, size_t , const char *, ...) PRINTF_ATTRIBUTE(3, 4);107 extern int snprintf(char *, size_t , const char *, ...) _HELENOS_PRINTF_ATTRIBUTE(3, 4); 108 108 #ifdef _GNU_SOURCE 109 109 extern int vasprintf(char **, const char *, va_list); 110 extern int asprintf(char **, const char *, ...) PRINTF_ATTRIBUTE(2, 3);110 extern int asprintf(char **, const char *, ...) _HELENOS_PRINTF_ATTRIBUTE(2, 3); 111 111 #endif 112 112 extern int vsnprintf(char *, size_t, const char *, va_list); … … 176 176 /* Formatted Output */ 177 177 extern int __POSIX_DEF__(dprintf)(int fildes, const char *__restrict__ format, ...) 178 PRINTF_ATTRIBUTE(2, 3);178 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 179 179 extern int __POSIX_DEF__(vdprintf)(int fildes, const char *__restrict__ format, va_list ap); 180 180 extern int __POSIX_DEF__(sprintf)(char *__restrict__ s, const char *__restrict__ format, ...) 181 PRINTF_ATTRIBUTE(2, 3);181 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 182 182 extern int __POSIX_DEF__(vsprintf)(char *__restrict__ s, const char *__restrict__ format, va_list ap); 183 183
Note:
See TracChangeset
for help on using the changeset viewer.