Home
last modified time | relevance | path

Searched refs:shm (Results 1 – 25 of 33) sorted by relevance

12

/openbsd/src/gnu/usr.bin/perl/cpan/IPC-SysV/t/
Dshm.t36 my $shm = sub {
45 unless (defined $shm) {
60 my $st = $shm->stat;
67 ok($shm->write(pack("N", 4711), 0, 4), 'write(offs=0)');
68 ok($shm->write(pack("N", 210577), 4, 4), 'write(offs=4)');
70 is($shm->read(0, 4), pack("N", 4711), 'read(offs=0)');
71 is($shm->read(4, 4), pack("N", 210577), 'read(offs=4)');
73 ok($shm->attach, 'attach');
75 $st = $shm->stat;
81 is($shm->read(0, 4), pack("N", 4711), 'read(offs=0)');
[all …]
Dipcsysv.t277 my $shm = catchsig(sub { shmget(IPC_PRIVATE, 4, S_IRWXU) });
280 unless (defined $shm && $shm >= 0) {
284 pass("shm acquire");
286 ok(shmwrite($shm, pack("N", 0xdeadbeef), 0, 4), 'shmwrite(0xdeadbeef)');
288 my $addr = shmat($shm, undef, 0);
291 is(unpack("N", unpack("P4", $addr)), 0xdeadbeef, 'read shm by addr');
293 ok(defined shmctl($shm, IPC_RMID, 0), 'shmctl(IPC_RMID)');
298 is(unpack("N", $var), 0xdeadbeef, 'read shm by memread');
302 is(unpack("N", unpack("P4", $addr)), 0xbadc0de5, 'read modified shm by addr');
/openbsd/src/gnu/llvm/compiler-rt/lib/builtins/ve/
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
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
/openbsd/src/lib/libc/hidden/sys/
Dshm.h21 #include_next <sys/shm.h>
/openbsd/src/gnu/usr.bin/perl/cpan/IPC-SysV/
DSysV.xs399 void *shm = (void *) shmat(id, caddr, flag);
400 ST(0) = shm == (void *) -1 ? &PL_sv_undef
401 : sv_2mortal(newSVpvn((char *) &shm, sizeof(void *)));
/openbsd/src/gnu/usr.bin/perl/
Ddoio.c3358 char *shm; local
3377 shm = (char *)shmat(id, NULL, (optype == OP_SHMREAD) ? SHM_RDONLY : 0);
3382 if (shm == (char *)-1) /* I hate System V IPC, I really do */
3394 Copy(shm + mpos, mbuf, msize, char);
3406 Copy(mbuf, shm + mpos, n, char);
3408 memzero(shm + mpos + n, msize - n);
3410 return shmdt(shm);
Dconfig_h.SH1918 * This symbol, if defined, indicates that the entire shm*(2) library is
1928 * This symbol, if defined, indicates that the sys/shm.h includes
Dconfigure.com4471 $! Check for the shm* routines.
/openbsd/src/gnu/gcc/libmudflap/
Dconfig.h.in213 /* Define to 1 if you have the <sys/shm.h> header file. */
Dconfigure.ac64 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
/openbsd/src/usr.sbin/unbound/util/
Dconfiglexer.lex448 shm-enable{COLON} { YDVAR(1, VAR_SHM_ENABLE) }
449 shm-key{COLON} { YDVAR(1, VAR_SHM_KEY) }
/openbsd/src/sbin/unwind/libunbound/util/
Dconfiglexer.lex448 shm-enable{COLON} { YDVAR(1, VAR_SHM_ENABLE) }
449 shm-key{COLON} { YDVAR(1, VAR_SHM_KEY) }
/openbsd/src/usr.sbin/unbound/doc/
Dexample.conf.in26 # enable shm for stats, default no. if you enable also enable
28 # shared memory segment keyed with shm-key.
29 # shm-enable: no
31 # shm for stats uses this key, and key+1 for the shared mem segment.
32 # shm-key: 11777
/openbsd/src/gnu/llvm/llvm/lib/Target/VE/
DVEInstrInfo.td1568 defm SHML : SHMm<"shm.l", 0x31, I64>;
1570 defm SHMW : SHMm<"shm.w", 0x31, I64>;
1572 defm SHMH : SHMm<"shm.h", 0x31, I64>;
1574 defm SHMB : SHMm<"shm.b", 0x31, I64>;
/openbsd/src/gnu/usr.bin/perl/cpan/Pod-Simple/t/
Dperlcygo.txt54 …mctl_semun is undefined because it fails a Configure test and on Win9x the shm*() functions seem t…
Dperlcyg.pod164 and on Win9x the I<shm*()> functions seem to hang. It also creates
/openbsd/src/usr.sbin/unbound/
Dconfig.h.in662 /* Define to 1 if you have the <sys/shm.h> header file. */
Dconfigure.ac468 …ck2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h ifaddrs.h poll.h]…
/openbsd/src/gnu/usr.bin/perl/pod/
Dperlipc.pod1684 print "shm key $id\n";
1697 print "deleting shm $id\n";
/openbsd/src/gnu/usr.bin/perl/plan9/
Dconfig_h.sample2083 * This symbol, if defined, indicates that the entire shm*(2) library is
3460 * This symbol, if defined, indicates that the sys/shm.h includes
Dconfig.plan92174 * This symbol, if defined, indicates that the entire shm*(2) library is
3636 * This symbol, if defined, indicates that the sys/shm.h includes
/openbsd/src/gnu/usr.bin/perl/Porting/
Dconfig_H1881 * This symbol, if defined, indicates that the entire shm*(2) library is
1891 * This symbol, if defined, indicates that the sys/shm.h includes
/openbsd/src/gnu/usr.bin/perl/win32/
Dconfig_H.vc1883 * This symbol, if defined, indicates that the entire shm*(2) library is
1893 * This symbol, if defined, indicates that the sys/shm.h includes
Dconfig_H.gc1883 * This symbol, if defined, indicates that the entire shm*(2) library is
1893 * This symbol, if defined, indicates that the sys/shm.h includes

12