Changeset 144 for trunk/IPs/systemC/Environment/TTY/src/TTY_write.cpp
- Timestamp:
- Sep 28, 2010, 1:19:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/TTY/src/TTY_write.cpp
r117 r144 1 1 #include "../include/TTY.h" 2 #include <stdio.h> 2 3 3 4 namespace environment { … … 10 11 11 12 if (param->with_xtty == true) 12 ::write (xtty[num_tty].pipe_output, &data, 1); 13 { 14 if (::write (xtty[num_tty].pipe_output, &data, 1) == -1) 15 std::cerr << "<TTY::write> write error.\n" << std::endl; 16 } 13 17 14 18 fputc (data, xtty[num_tty].log_file);
Note: See TracChangeset
for help on using the changeset viewer.