git: world - Makme shm_open() more compatible with expectations

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jun 11 12:36:30 PDT 2019


commit 11699d20ad593415e7d8ff1bbb21f8603f3aa217
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jun 11 12:04:49 2019 -0700

    world - Makme shm_open() more compatible with expectations
    
    * Create a tmpfs mount in /var/run/shm and also create /var/run/shm/tmp
      under it, both modes 1777, to support shm_open().  No longer base
      shm_open() at the root directory.
    
    * shm_open() and shm_unlink() now access files relative to /var/run/shm.
    
      This fixes numerous ports and removes the need for numerous
      port patches.
    
    * Rejigger libraries using namespace.h/un-namespace.h to add _unlink() and
      _unlinkat() into the mix.

Summary of changes:
 etc/mtree/BSD.var.dist            |  4 ++++
 etc/rc.d/mountcritlocal           |  6 ++++++
 lib/libc/db/btree/bt_open.c       |  2 +-
 lib/libc/db/hash/hash_page.c      |  2 +-
 lib/libc/gen/posixshm.c           | 26 ++++++++++++++++++++++++--
 lib/libc/include/namespace.h      |  3 +++
 lib/libc/include/un-namespace.h   |  3 +++
 lib/libc/stdio/tmpfile.c          |  2 +-
 lib/libthread_xu/thread/thr_sem.c |  8 ++++----
 9 files changed, 47 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/11699d20ad593415e7d8ff1bbb21f8603f3aa217


-- 
DragonFly BSD source repository


More information about the Commits mailing list