File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
lldb/test/API/tools/lldb-server/vCont-threads Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
#include < chrono>
4
4
#include < cinttypes>
5
5
#include < csignal>
6
+ #include < cstdio>
6
7
#include < cstdlib>
7
8
#include < cstring>
8
9
#include < thread>
@@ -13,8 +14,9 @@ pseudo_barrier_t barrier;
13
14
14
15
static void sigusr1_handler (int signo) {
15
16
char buf[100 ];
16
- snprintf (buf, sizeof (buf), " received SIGUSR1 on thread id: %" PRIx64 " \n " ,
17
- get_thread_id ());
17
+ std::snprintf (buf, sizeof (buf),
18
+ " received SIGUSR1 on thread id: %" PRIx64 " \n " ,
19
+ get_thread_id ());
18
20
write (STDOUT_FILENO, buf, strlen (buf));
19
21
}
20
22
@@ -36,7 +38,7 @@ int main(int argc, char **argv) {
36
38
37
39
pseudo_barrier_wait (barrier);
38
40
39
- puts (" @started" );
41
+ std:: puts (" @started" );
40
42
41
43
for (std::thread &thread : threads)
42
44
thread.join ();
You can’t perform that action at this time.
0 commit comments