1 #include "stdio_impl.h" 2 puts(const char * s)3 int puts(const char *s) 4 { 5 int r; 6 FLOCK(stdout); 7 r = -(fputs(s, stdout) < 0 || putc_unlocked('\n', stdout) < 0); 8 FUNLOCK(stdout); 9 return r; 10 } 11