summaryrefslogtreecommitdiff
path: root/.topmsg
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-08 00:02:52 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-08 00:02:52 +0100
commit5d8ef852fce5c86756bfd05cbbc5b05351dd9ced (patch)
tree16cdd0e3495af2599efcb777c86349e24437dcbb /.topmsg
parentac294f2bed4e0f8b313b08c6356fceb599bff86b (diff)
Address comments
Diffstat (limited to '.topmsg')
-rw-r--r--.topmsg31
1 files changed, 29 insertions, 2 deletions
diff --git a/.topmsg b/.topmsg
index fd15d3d6a1..755717e443 100644
--- a/.topmsg
+++ b/.topmsg
@@ -6,10 +6,37 @@ Subject: [PATCH] Implement SysV shared memory for GNU/Hurd.
* hurd/Makefile (routines): Add sysvshm.
* hurd/sysvshm.h: New file.
* hurd/sysvshm.c: New file.
- * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
- (S_ISPARE): Unset the S_IMMAP0 flag.
* sysdeps/mach/hurd/ftok.c: New file.
* sysdeps/mach/hurd/shmat.c: New file.
* sysdeps/mach/hurd/shmctl.c: New file.
* sysdeps/mach/hurd/shmdt.c: New file.
+ * sysdeps/mach/hurd/shmget.c: New file.
* sysdeps/mach/hurd/bits/posix_opt.h: Define _XOPEN_SHM to 1.
+
+TODO:
+“
+> + char filename[sizeof (SHM_DIR) - 1 + SHM_NAMEMAX];
+> + struct stat statbuf;
+> +
+> + sprintf (filename, SHM_DIR SHM_NAMEPRI, id);
+> + /* SysV requires read access for IPC_STAT. */
+> + fd = __open (filename, O_NORW);
+> + if (fd < 0)
+> + {
+> + if (errno == ENOENT)
+> + errno = EINVAL;
+> + return -1;
+> + }
+
+Since this is repeated in more than one function, put it into an
+internal subroutine. Then we have only one place doing the
+name-generation logic.
+”
+
+“
+> + case IPC_RMID:
+> + res = __unlink (filename);
+> + /* FIXME: Check error (mapping ENOENT to EINVAL). */
+
+Fix it.
+”