Changeset de33dab in mainline for uspace/libc/generic/io/vprintf.c
- Timestamp:
- 2007-04-09T13:53:57Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 183788f1
- Parents:
- d0b1443
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/generic/io/vprintf.c
rd0b1443 rde33dab 37 37 #include <unistd.h> 38 38 #include <io/printf_core.h> 39 #include <futex.h>40 41 atomic_t printf_futex = FUTEX_INITIALIZER;42 39 43 40 static int vprintf_write(const char *str, size_t count, void *unused) … … 55 52 struct printf_spec ps = {(int(*)(void *, size_t, void *)) vprintf_write, NULL}; 56 53 57 futex_down(&printf_futex);58 54 int ret = printf_core(fmt, &ps, ap); 59 futex_up(&printf_futex);60 55 61 56 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.