URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gdb-7.2/] [gdb-7.2-or32-1.0rc1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [writev1.c] - Rev 341
Compare with Previous | Blame | View Log
/* Trivial test of writev. #notarget: cris*-*-elf #output: abcdefghijklmn\npass\n */ #include <sys/uio.h> #include <stdlib.h> #include <stdio.h> #define X(x) {x, sizeof (x) -1} struct iovec v[] = { X("a"), X("bcd"), X("efghi"), X("j"), X("klmn\n"), }; int main (void) { if (writev (1, v, sizeof v / sizeof (v[0])) != 15) abort (); printf ("pass\n"); return 0; }