From 49a086299e047b18280457b654790ef4a2e5abfa Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 18 Feb 2015 00:58:35 +0100 Subject: Revert "rename open_issues.mdwn to service_solahart_jakarta_selatan__082122541663.mdwn" This reverts commit 95878586ec7611791f4001a4ee17abf943fae3c1. --- .../mmap_write-only.mdwn | 57 ---------------------- 1 file changed, 57 deletions(-) delete mode 100644 service_solahart_jakarta_selatan__082122541663/mmap_write-only.mdwn (limited to 'service_solahart_jakarta_selatan__082122541663/mmap_write-only.mdwn') diff --git a/service_solahart_jakarta_selatan__082122541663/mmap_write-only.mdwn b/service_solahart_jakarta_selatan__082122541663/mmap_write-only.mdwn deleted file mode 100644 index b64e8641..00000000 --- a/service_solahart_jakarta_selatan__082122541663/mmap_write-only.mdwn +++ /dev/null @@ -1,57 +0,0 @@ -[[!meta copyright="Copyright © 2011, 2012 Free Software Foundation, Inc."]] - -[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable -id="license" text="Permission is granted to copy, distribute and/or modify this -document under the terms of the GNU Free Documentation License, Version 1.2 or -any later version published by the Free Software Foundation; with no Invariant -Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license -is included in the section entitled [[GNU Free Documentation -License|/fdl]]."]]"""]] - -[[!tag open_issue_glibc open_issue_llvm]] - - -# IRC, freenode, #hurd, 2011-12-14 - - hm, interesting mmap bug - ? - youpi: http://paste.debian.net/149252/ - #include - #include - #include - #include - #include - #include - #include - #include - - void die(int x, const char *s) - { - perror(s); - exit(x); - } - - static const char s_file[] = "foo-mmaptest"; - - int main() - { - int fd; - void *p; - - fd = creat(s_file, 0777); - if (fd < 0) die(1, "creat"); - errno = 0; - p = mmap(NULL, 1, PROT_READ, MAP_SHARED, fd, 0); - printf("> %p vs %p, %d (%s)\n", p, MAP_FAILED, errno, strerror(errno)); - unlink(s_file); - return (p != MAP_FAILED); - } - on linux it returns 0 and fails with EACCESS (as it seems it - should, by reading the mmap posix docs), on hurd it returns 1 and the - mmap succeeds - (taken from llvm's configure) - why should it? file size extension ? - creat creates a o_wronly file, while the mmap specifies only - read protection - oh, craet is always wo - I didn't know that -- cgit v1.2.3