From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: [patch] document that O_TMPFILE works with shm_open Date: Tue, 27 Oct 2015 23:12:18 +0100 Message-ID: <87ziz4c665.fsf@mid.deneb.enyo.de> References: <562B2CD9.80901@dancol.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <562B2CD9.80901-CpwT7fMy01Ydnm+yROfE0A@public.gmane.org> (Daniel Colascione's message of "Sat, 24 Oct 2015 00:01:45 -0700") Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Daniel Colascione Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org * Daniel Colascione: > This test program works fine. (Watch it work in strace.) This patch is > against git master. It's okay to document accidental features, right? > > int > main() > { > int shmfd = shm_open(".", O_TMPFILE | O_RDWR | O_EXCL, 0600); > ftruncate(shmfd, 1000); > mmap(NULL, 1000, PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, 0); > > return 0; > } This looks more like a bug to me. I wouldn't count on it continuing to work. glibc already tightened the rules for the name once. Florian -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html