Code: Select all
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0I found that in sysdeps/posix/shm_open.c:
Code: Select all
#if ! _POSIX_MAPPED_FILES
#include <rt/shm_open.c>Code: Select all
/* Autogenerated by create_ml_includes() in multilib.eclass */
#ifdef __i386__
# include <gentoo-multilib/x86/bits/posix_opt.h>
#endif /* __i386__ */
#ifdef __x86_64__
# include <gentoo-multilib/amd64/bits/posix_opt.h>
#endif /* __x86_64__ */Code: Select all
/* Mapping of files to memory is supported. */
#define _POSIX_MAPPED_FILES 200112Lemerge --info, if needed:
Code: Select all
Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23.1 x86_64)
=================================================================
System uname: 2.6.23.1 x86_64 Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz
Timestamp of tree: Thu, 17 Jan 2008 17:48:01 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo http://mirror.gentoo.no"
LANG="en_US.UTF-8"
LINGUAS="nb_NO nb en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 ao audiofile bash-completion berkdb bitmap-fonts blas bluetooth bzip2 caps cddb cdr cli cracklib crypt curl curlwrappers dbm dedicated dga doc dri dts dv dvd dvdr dvdread encode enscript examples exif expat ffmpeg fftw firefox flac flatfile fortran ftp gcj gd gdbm geoip gif gimp glut gmp gnuplot gnutls graphviz gsl iconv icq idn ieee1394 imagemagick imap imlib ipv6 isdnlog java javascript jbig jpeg jpeg2k ladspa lame lapack lash latex lcms libcaca libgda libnotify libsamplerate lm_sensors lzo mad maildir matroska matrox mbox mhash midi mikmod mime mmap mmx mng modplug mozilla mp3 mpeg msn mudflap musepack ncurses netcdf nls nocd nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp osc oss pam pcmcia pcntl pcre pdf perl plotutils png portaudio posix ppds pppd quicktime raw readline recode reflection samba sasl sdl sharedmem shorten simplexml skey sndfile sockets socks5 sox speex spell sse sse2 ssl subversion svg syslog sysvipc szip tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vhosts vim-syntax vorbis wavpack wifi wmf x264 xattr xcb xcomposite xine xml xmlrpc xorg xpm xscreensaver xsl xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nb_NO nb en en_US" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia fbdev"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
