Changeset a9763c6 in mainline
- Timestamp:
- 2014-08-28T12:26:00Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 794e368
- Parents:
- 2cc1ec0
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
r2cc1ec0 ra9763c6 28 28 uspace/app/dnsres/dnsres 29 29 uspace/app/edit/edit 30 uspace/app/fontviewer/fontviewer 30 31 uspace/app/getterm/getterm 31 32 uspace/app/inet/inet … … 79 80 uspace/dist/app/dnsres 80 81 uspace/dist/app/edit 82 uspace/dist/app/fontviewer 81 83 uspace/dist/app/getterm 82 84 uspace/dist/app/inet -
boot/Makefile.common
r2cc1ec0 ra9763c6 218 218 $(USPACE_PATH)/app/vdemo/vdemo \ 219 219 $(USPACE_PATH)/app/viewer/viewer \ 220 $(USPACE_PATH)/app/df/df 220 $(USPACE_PATH)/app/df/df \ 221 $(USPACE_PATH)/app/fontviewer/fontviewer 221 222 222 223 COMPONENTS = \ -
uspace/Makefile
r2cc1ec0 ra9763c6 44 44 app/download \ 45 45 app/edit \ 46 app/fontviewer \ 46 47 app/getterm \ 47 48 app/hdisk \ -
uspace/app/init/init.c
r2cc1ec0 ra9763c6 356 356 gui_start("/app/vlaunch", HID_COMPOSITOR_SERVER); 357 357 gui_start("/app/vterm", HID_COMPOSITOR_SERVER); 358 task_spawnl(NULL, NULL, "/app/fontviewer", "/app/fontviewer", "comp:0/winreg", "/cu12.pcf", NULL); 358 359 } 359 360 -
uspace/lib/c/generic/io/asprintf.c
r2cc1ec0 ra9763c6 76 76 * the newly allocated string. 77 77 * @fmt Format string. 78 * @args Variable argument list 79 * 80 * @return Number of characters printed or a negative error code. 81 * 82 */ 83 int vasprintf(char **strp, const char *fmt, va_list args) 84 { 85 va_list args2; 86 va_copy(args2, args); 87 int ret = vprintf_size(fmt, args2); 88 va_end(args2); 89 90 if (ret > 0) { 91 *strp = malloc(STR_BOUNDS(ret) + 1); 92 if (*strp == NULL) 93 return -1; 94 95 vsnprintf(*strp, STR_BOUNDS(ret) + 1, fmt, args); 96 } 97 98 return ret; 99 } 100 101 /** Allocate and print to string. 102 * 103 * @param strp Address of the pointer where to store the address of 104 * the newly allocated string. 105 * @fmt Format string. 78 106 * 79 107 * @return Number of characters printed or a negative error code. … … 84 112 va_list args; 85 113 va_start(args, fmt); 86 int ret = v printf_size(fmt, args);114 int ret = vasprintf(strp, fmt, args); 87 115 va_end(args); 88 89 if (ret > 0) {90 *strp = malloc(STR_BOUNDS(ret) + 1);91 if (*strp == NULL)92 return -1;93 94 va_start(args, fmt);95 vsnprintf(*strp, STR_BOUNDS(ret) + 1, fmt, args);96 va_end(args);97 }98 116 99 117 return ret; -
uspace/lib/c/include/stdio.h
r2cc1ec0 ra9763c6 120 120 extern int snprintf(char *, size_t , const char *, ...) 121 121 PRINTF_ATTRIBUTE(3, 4); 122 extern int vasprintf(char **, const char *, va_list); 122 123 extern int asprintf(char **, const char *, ...) 123 124 PRINTF_ATTRIBUTE(2, 3); -
uspace/lib/posix/include/posix/stdio.h
r2cc1ec0 ra9763c6 107 107 extern int snprintf(char *, size_t , const char *, ...) PRINTF_ATTRIBUTE(3, 4); 108 108 #ifdef _GNU_SOURCE 109 extern int vasprintf(char **, const char *, va_list); 109 110 extern int asprintf(char **, const char *, ...) PRINTF_ATTRIBUTE(2, 3); 110 111 #endif
Note:
See TracChangeset
for help on using the changeset viewer.