|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 665 (0x299) Types: TextFile Notes: R1k Text-file segment
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦b6accde32⟧ └─⟦this⟧
#include <assert.h> #include <fcntl.h> void write_string ( char *s, char *tty, int len ) { int fd = open ( tty, O_WRONLY ); printf ("Write_String_C => *%x* \n", s[0]); assert ( isatty ( fd ) ); assert ( write ( fd, s, len ) == len ); close (fd); } void write_char ( char c, char *tty ) { int fd = open ( tty, O_WRONLY ); printf ("Write_Char_C => *%x* \n", c); assert ( isatty ( fd ) ); assert ( write ( fd, c, 1 ) == 1 ); close (fd); } read_string (char *s, char *tty, int *len) { int fd; fd = open ( tty, O_RDONLY ); assert ( isatty ( fd ) ); *len = read ( fd, s, 250 ); close (fd); }