repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git]
/
newlib
/
libc
/
machine
/
msp430
/
tiny-puts.c
blob
6a59f23b070038762aa245f9849b26fdd011ffef
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
#include <newlib.h>
5
6
int
write
(
int
fd
,
const char
*
buf
,
int
len
);
7
8
int
9
__wrap_puts
(
const char
*
s
)
10
{
11
int
res
=
write
(
1
,
s
,
strlen
(
s
));
12
if
(
res
==
EOF
)
13
{
14
write
(
1
,
"
\n
"
,
1
);
15
return
EOF
;
16
}
17
return
write
(
1
,
"
\n
"
,
1
);
18
}
19
20
int
puts
(
const char
*
s
)
__attribute__
((
weak
,
alias
(
"__wrap_puts"
)));