URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-old/newlib-1.17.0/newlib/testsuite/newlib.elix
- from Rev 158 to Rev 816
- ↔ Reverse comparison
Rev 158 → Rev 816
/tmmap.c
0,0 → 1,42
#include <sys/types.h> |
#include <sys/mman.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
#include <fcntl.h> |
#include "check.h" |
|
int main() |
{ |
int fd; |
char *x; |
FILE *fp; |
char buf[40]; |
|
fd = open("my.file", O_CREAT | O_TRUNC | O_RDWR, 0644); |
|
CHECK (fd != -1); |
|
CHECK (write (fd, "abcdefgh", 8) == 8); |
|
x = (char *)mmap (0, 20, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); |
|
CHECK (x != MAP_FAILED); |
|
x[3] = 'j'; |
|
CHECK (munmap (x, 20) == 0); |
|
CHECK (close(fd) != -1); |
|
fp = fopen("my.file","r"); |
|
CHECK (fp != NULL); |
|
CHECK (fread(buf, 1, 20, fp) == 8); |
|
CHECK (strncmp (buf, "abcjefgh", 8) == 0); |
|
exit (0); |
} |
|
tmmap.c
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: elix.exp
===================================================================
--- elix.exp (nonexistent)
+++ elix.exp (revision 816)
@@ -0,0 +1,19 @@
+# Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
+#
+# Permission to use, copy, modify, and distribute this software
+# is freely granted, provided that this notice is preserved.
+#
+
+global host_triplet target_triplet
+
+load_lib passfail.exp
+
+set exclude_list {
+}
+
+verbose $host_triplet
+verbose $target_triplet
+
+if [string match "i\[3456\]86-pc-linux-gnu" $target_triplet] then {
+ newlib_pass_fail_all -x $exclude_list
+}