projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
* gdb.base/help.exp: Replace most of docstrings for "info signals"
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.base
/
interrupt.c
1
#include <errno.h>
2
#include <stdio.h>
3
int
4
main
()
5
{
6
char
x
;
7
int
nbytes
;
8
printf
(
"talk to me baby
\n
"
);
9
while
(
1
)
10
{
11
nbytes
=
read
(
0
, &
x
,
1
);
12
if
(
nbytes
<
0
)
13
{
14
if
(
errno
!=
EINTR
)
15
perror
(
""
);
16
}
17
else if
(
nbytes
==
0
)
18
{
19
printf
(
"end of file
\n
"
);
20
exit
(
0
);
21
}
22
else
23
write
(
1
, &
x
,
1
);
24
}
25
}
26
27
int
28
func1
()
29
{
30
return
4
;
31
}
This page took
0.02994 seconds
and
4
git commands to generate.