Home
last modified time | relevance | path

Searched full:shm (Results 1 – 25 of 146) sorted by relevance

123456

/freebsd/contrib/sendmail/libsm/
H A Dt-shm.c11 SM_RCSID("@(#)$Id: t-shm.c,v 1.23 2013-11-22 20:51:43 ca Exp $")
24 # include <sm/shm.h>
48 int *shm, shmid; local
51 shm = (int *) sm_shmstart(T_SHMKEY, SHMSIZE, 0, &shmid, owner);
52 if (shm == (int *) 0)
63 *shm = 0;
66 ++*shm;
69 --*shm;
75 t = *shm;
78 ++*shm;
[all …]
H A Dshm.c11 SM_RCSID("@(#)$Id: shm.c,v 1.20 2013-11-22 20:51:43 ca Exp $")
19 # include <sm/shm.h>
49 void *shm = SM_SHM_NULL; variable
60 shm = shmat(*shmid, (void *) 0, 0);
61 if (shm == SM_SHM_NULL)
64 return shm;
68 if (shm != SM_SHM_NULL || *shmid >= 0)
69 sm_shmstop(shm, *shmid, owner);
80 ** shm -- pointer to shared memory.
94 sm_shmstop(shm, shmid, owner) in sm_shmstop() argument
[all …]
H A DMakefile.m49 … xtrap.c strto.c test.c strcasecmp.c strrevcmp.c signal.c clock.c config.c shm.c sem.c mbdb.c stre…
33 smcheck(`t-shm', `compile-run')
/freebsd/contrib/ntp/ntpd/
H A Drefclock_shm.c35 # include <sys/shm.h>
50 * SHM interface definitions
53 #define REFID "SHM" /* reference ID */
54 #define DESCRIPTION "SHM/Shared memory interface"
111 struct shmTime *shm; /* pointer to shared memory segment */ member
145 msyslog(LOG_ERR, "SHM shmget (unit %d): %m", unit); in getShmTime()
150 msyslog(LOG_ERR, "SHM shmat (unit %d): %m", unit); in getShmTime()
168 msyslog(LOG_ERR, "SHM name too long (unit %d)", unit); in getShmTime()
173 msyslog(LOG_ERR,"SHM InitializeSecurityDescriptor (unit %d): %m", unit); in getShmTime()
177 msyslog(LOG_ERR, "SHM SetSecurityDescriptorDacl (unit %d): %m", unit); in getShmTime()
[all …]
/freebsd/contrib/unbound/util/shm_side/
H A Dshm_main.c2 * util/shm_side/shm_main.c - SHM for statistics transport
39 * This file contains functions for the SHM implementation.
49 #include <sys/shm.h>
95 log_warn("shm-enable is yes but statistics-interval is 0"); in shm_main_init()
105 log_err("shm fail: malloc failure"); in shm_main_init()
111 /* Check for previous create SHM */ in shm_main_init()
115 /* Destroy previous SHM */ in shm_main_init()
119 /* Destroy previous SHM */ in shm_main_init()
123 /* SHM: Create the segment */ in shm_main_init()
128 log_err("SHM failed(id_ctl) cannot shmget(key %d) %s", in shm_main_init()
[all …]
H A Dshm_main.h39 * This file contains functions for the SHM side.
51 * The SHM info.
/freebsd/sys/contrib/device-tree/Bindings/spi/
H A Dnuvoton,wpcm450-fiu.yaml35 nuvoton,shm:
37 description: a phandle to the SHM block (see ../arm/nuvoton,shm.yaml)
55 nuvoton,shm = <&shm>;
63 shm: syscon@c8001000 {
64 compatible = "nuvoton,wpcm450-shm", "syscon";
/freebsd/tools/test/stress2/misc/
H A Dshm.sh45 sed '1,/^EOF/d' < $odir/$0 > $dir/shm.c
46 mycc -o shm -Wall -Wextra -O0 -g shm.c -pthread || exit 1
47 rm -f shm.c
49 /tmp/shm &
53 if pgrep -q shm; then
54 if pgrep shm | xargs ps -lHp | grep -q vmpfw; then
57 pgrep shm | xargs ps -lHp
58 pkill -9 shm
63 rm -rf /tmp/shm
70 #include <sys/shm.h>
H A Dlinux.sh40 mount -t tmpfs -o rw,mode=1777 tmpfs /compat/linux/dev/shm
47 umount /compat/linux/dev/shm
/freebsd/contrib/ntp/html/drivers/
H A Ddriver28.html24 Reference ID: <tt>SHM</tt><br>
25 Driver ID: <tt>SHM</tt></p>
70 After the time stamps have been successfully plucked from the SHM
73 <li>The receive time stamp of the SHM data must be in the last 5
86 It can work with <i>NTPD</i> through the SHM driver.
90 The SHM driver was fixed (ntp-4.2.5p138) to collect data each second rather than
95 SHM driver is the ancient way to have <i>GPSD</i> talk to <i>NTPD</i>. There
96 are some tricky points when using the SHM interface to interface
97 with <i>GPSD</i>, because <i>GPSD</i> will use two SHM clocks, one for the
154 <td>The SHM segment is private (mode 0600). This is the fixed
[all …]
/freebsd/contrib/file/magic/Magdir/
H A Dsql297 >0 use shm-le
300 >0 use \^shm-le
302 0 name shm-le
306 # db3-shm Acronis BackupAndRecovery F4CEEE47-042C-4828-95A0-DE44EC267A28.db3-shm
307 # dbx-shm probably Dropbox filecache.dbx-shm
308 # aup3-shm Audacity project tada.aup3-shm
309 # srd-shm Microsoft Windows StateRepository service StateRepository-Deployment.srd-shm StateReposit…
310 !:ext sqlite-shm/db-shm/db3-shm/dbx-shm/aup3-shm/srd-shm
315 # isInit; the "isInit" flag; 1 when the shm file has been initialized
/freebsd/sys/kern/
H A Duipc_shm.c361 struct shmfd *shm; in shm_pager_freespace() local
368 shm = obj->un_pager.swp.swp_priv; in shm_pager_freespace()
369 if (shm == NULL) in shm_pager_freespace()
371 KASSERT(shm->shm_pages >= c, in shm_pager_freespace()
372 ("shm %p pages %jd free %jd", shm, in shm_pager_freespace()
373 (uintmax_t)shm->shm_pages, (uintmax_t)c)); in shm_pager_freespace()
374 shm->shm_pages -= c; in shm_pager_freespace()
380 struct shmfd *shm; in shm_page_inserted() local
382 shm = obj->un_pager.swp.swp_priv; in shm_page_inserted()
383 if (shm == NULL) in shm_page_inserted()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ve/
H A Dgrow_stack.S23 shm.l %s62, 0x0(%s63) # stored at addr:0
24 shm.l %sl, 0x8(%s63) # old limit at addr:8
25 shm.l %sp, 0x10(%s63) # new limit at addr:16
H A Dgrow_stack_align.S23 shm.l %s62, 0x0(%s63) # stored at addr:0
24 shm.l %sl, 0x8(%s63) # old limit at addr:8
25 shm.l %sp, 0x10(%s63) # new limit at addr:16
/freebsd/lib/libprocstat/
H A Dlibprocstat_compat.c97 struct filestat *fst, struct freebsd11_shmstat *shm, char *errbuf);
164 struct shmstat shm; in freebsd11_procstat_get_shm_info() local
167 r = procstat_get_shm_info(procstat, fst, &shm, errbuf); in freebsd11_procstat_get_shm_info()
170 shm_compat->size = shm.size; in freebsd11_procstat_get_shm_info()
171 shm_compat->mode = shm.mode; in freebsd11_procstat_get_shm_info()
H A Dlibprocstat.c140 struct shmstat *shm, char *errbuf);
142 struct shmstat *shm, char *errbuf);
1159 struct shmstat *shm, char *errbuf) in procstat_get_shm_info() argument
1162 assert(shm); in procstat_get_shm_info()
1164 return (procstat_get_shm_info_kvm(procstat->kd, fst, shm, in procstat_get_shm_info()
1168 return (procstat_get_shm_info_sysctl(fst, shm, errbuf)); in procstat_get_shm_info()
1179 struct shmstat *shm, char *errbuf) in procstat_get_shm_info_kvm() argument
1187 assert(shm); in procstat_get_shm_info_kvm()
1189 bzero(shm, sizeof(*shm)); in procstat_get_shm_info_kvm()
1198 shm->mode = S_IFREG | shmfd.shm_mode; in procstat_get_shm_info_kvm()
[all …]
/freebsd/tests/sys/vm/
H A Dmmap_test.c148 "simple shm fd shared"); in ATF_TC_BODY()
150 "simple shm fd private"); in ATF_TC_BODY()
162 "shm fd with garbage PROT"); in ATF_TC_BODY()
172 EINVAL, "shm fd with both SHARED and PRIVATE"); in ATF_TC_BODY()
176 "shm fd without sharing flag"); in ATF_TC_BODY()
320 /* Make sure that PROT_MAX applies as expected to mappings of shm objects */
/freebsd/contrib/sendmail/include/sm/
H A Dshm.h9 * $Id: shm.h,v 1.12 2013-11-22 20:51:31 ca Exp $
18 # include <sys/shm.h>
/freebsd/sys/contrib/device-tree/src/arm/nuvoton/
H A Dnuvoton-wpcm450.dtsi485 nuvoton,shm = <&shm>;
489 shm: syscon@c8001000 {
490 compatible = "nuvoton,wpcm450-shm", "syscon";
487 shm: syscon@c8001000 { global() label
/freebsd/contrib/netbsd-tests/lib/libc/string/
H A Dt_bm.c1 /* $Id: t_bm.c,v 1.1 2014/06/23 10:53:20 shm Exp $ */
32 __RCSID("$Id: t_bm.c,v 1.1 2014/06/23 10:53:20 shm Exp $");
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_fcntl.c72 { "SHM", shm_open(SHM_ANON, O_RDWR, 0600) }, in test_fcntl()
81 { "SHM cap", cap_new(files[2].f_fd, rights) }, in test_fcntl()
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_sysv.c54 #include <sys/shm.h>
596 ATF_TC_WITH_CLEANUP(shm);
597 ATF_TC_HEAD(shm, tc) in ATF_TC_HEAD() argument
604 ATF_TC_BODY(shm, tc) in ATF_TC_BODY() argument
709 ATF_TC_CLEANUP(shm, tc) in ATF_TC_CLEANUP() argument
812 ATF_TP_ADD_TC(tp, shm); in ATF_TP_ADD_TCS()
/freebsd/contrib/netbsd-tests/lib/libutil/
H A Dt_snprintb.c1 /* $NetBSD: t_snprintb.c,v 1.4 2014/06/06 06:59:21 shm Exp $ */
34 __RCSID("$NetBSD: t_snprintb.c,v 1.4 2014/06/06 06:59:21 shm Exp $");
/freebsd/usr.bin/fstat/
H A Dfstat.c534 struct shmstat shm; in print_shm_info() local
539 error = procstat_get_shm_info(procstat, fst, &shm, errbuf); in print_shm_info()
546 (void)snprintf(mode, sizeof(mode), "%o", shm.mode); in print_shm_info()
549 strmode(shm.mode, mode); in print_shm_info()
551 printf(" %10s %6ju", mode, shm.size); in print_shm_info()
/freebsd/share/man/man4/
H A Dlinux.4156 .Bl -tag -width /compat/linux/dev/shm -compact
170 .It Pa /compat/linux/dev/shm

123456