1*0Sstevel@tonic-gate# IPC::SysV.pm 2*0Sstevel@tonic-gate# 3*0Sstevel@tonic-gate# Copyright (c) 1997 Graham Barr <gbarr@pobox.com>. All rights reserved. 4*0Sstevel@tonic-gate# This program is free software; you can redistribute it and/or 5*0Sstevel@tonic-gate# modify it under the same terms as Perl itself. 6*0Sstevel@tonic-gate 7*0Sstevel@tonic-gatepackage IPC::SysV; 8*0Sstevel@tonic-gate 9*0Sstevel@tonic-gateuse strict; 10*0Sstevel@tonic-gateuse vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION $XS_VERSION); 11*0Sstevel@tonic-gateuse Carp; 12*0Sstevel@tonic-gateuse Config; 13*0Sstevel@tonic-gate 14*0Sstevel@tonic-gaterequire Exporter; 15*0Sstevel@tonic-gate@ISA = qw(Exporter); 16*0Sstevel@tonic-gate 17*0Sstevel@tonic-gate$VERSION = "1.04"; 18*0Sstevel@tonic-gate$XS_VERSION = $VERSION; 19*0Sstevel@tonic-gate$VERSION = eval $VERSION; 20*0Sstevel@tonic-gate 21*0Sstevel@tonic-gate@EXPORT_OK = qw( 22*0Sstevel@tonic-gate GETALL GETNCNT GETPID GETVAL GETZCNT 23*0Sstevel@tonic-gate 24*0Sstevel@tonic-gate IPC_ALLOC IPC_CREAT IPC_EXCL IPC_GETACL IPC_LOCKED IPC_M 25*0Sstevel@tonic-gate IPC_NOERROR IPC_NOWAIT IPC_PRIVATE IPC_R IPC_RMID IPC_SET 26*0Sstevel@tonic-gate IPC_SETACL IPC_SETLABEL IPC_STAT IPC_W IPC_WANTED 27*0Sstevel@tonic-gate 28*0Sstevel@tonic-gate MSG_FWAIT MSG_LOCKED MSG_MWAIT MSG_NOERROR MSG_QWAIT 29*0Sstevel@tonic-gate MSG_R MSG_RWAIT MSG_STAT MSG_W MSG_WWAIT 30*0Sstevel@tonic-gate 31*0Sstevel@tonic-gate SEM_A SEM_ALLOC SEM_DEST SEM_ERR SEM_ORDER SEM_R SEM_UNDO 32*0Sstevel@tonic-gate 33*0Sstevel@tonic-gate SETALL SETVAL 34*0Sstevel@tonic-gate 35*0Sstevel@tonic-gate SHMLBA 36*0Sstevel@tonic-gate 37*0Sstevel@tonic-gate SHM_A SHM_CLEAR SHM_COPY SHM_DCACHE SHM_DEST SHM_ECACHE 38*0Sstevel@tonic-gate SHM_FMAP SHM_ICACHE SHM_INIT SHM_LOCK SHM_LOCKED SHM_MAP 39*0Sstevel@tonic-gate SHM_NOSWAP SHM_R SHM_RDONLY SHM_REMOVED SHM_RND SHM_SHARE_MMU 40*0Sstevel@tonic-gate SHM_SHATTR SHM_SIZE SHM_UNLOCK SHM_W 41*0Sstevel@tonic-gate 42*0Sstevel@tonic-gate S_IRUSR S_IWUSR S_IRWXU 43*0Sstevel@tonic-gate S_IRGRP S_IWGRP S_IRWXG 44*0Sstevel@tonic-gate S_IROTH S_IWOTH S_IRWXO 45*0Sstevel@tonic-gate 46*0Sstevel@tonic-gate ftok 47*0Sstevel@tonic-gate); 48*0Sstevel@tonic-gate 49*0Sstevel@tonic-gateBOOT_XS: { 50*0Sstevel@tonic-gate # If I inherit DynaLoader then I inherit AutoLoader and I DON'T WANT TO 51*0Sstevel@tonic-gate require DynaLoader; 52*0Sstevel@tonic-gate 53*0Sstevel@tonic-gate # DynaLoader calls dl_load_flags as a static method. 54*0Sstevel@tonic-gate *dl_load_flags = DynaLoader->can('dl_load_flags'); 55*0Sstevel@tonic-gate 56*0Sstevel@tonic-gate do { 57*0Sstevel@tonic-gate __PACKAGE__->can('bootstrap') || \&DynaLoader::bootstrap 58*0Sstevel@tonic-gate }->(__PACKAGE__, $XS_VERSION); 59*0Sstevel@tonic-gate} 60*0Sstevel@tonic-gate 61*0Sstevel@tonic-gate1; 62*0Sstevel@tonic-gate 63*0Sstevel@tonic-gate__END__ 64*0Sstevel@tonic-gate 65*0Sstevel@tonic-gate=head1 NAME 66*0Sstevel@tonic-gate 67*0Sstevel@tonic-gateIPC::SysV - SysV IPC constants 68*0Sstevel@tonic-gate 69*0Sstevel@tonic-gate=head1 SYNOPSIS 70*0Sstevel@tonic-gate 71*0Sstevel@tonic-gate use IPC::SysV qw(IPC_STAT IPC_PRIVATE); 72*0Sstevel@tonic-gate 73*0Sstevel@tonic-gate=head1 DESCRIPTION 74*0Sstevel@tonic-gate 75*0Sstevel@tonic-gateC<IPC::SysV> defines and conditionally exports all the constants 76*0Sstevel@tonic-gatedefined in your system include files which are needed by the SysV 77*0Sstevel@tonic-gateIPC calls. 78*0Sstevel@tonic-gate 79*0Sstevel@tonic-gate=over 4 80*0Sstevel@tonic-gate 81*0Sstevel@tonic-gate=item ftok( PATH, ID ) 82*0Sstevel@tonic-gate 83*0Sstevel@tonic-gateReturn a key based on PATH and ID, which can be used as a key for 84*0Sstevel@tonic-gateC<msgget>, C<semget> and C<shmget>. See L<ftok> 85*0Sstevel@tonic-gate 86*0Sstevel@tonic-gate=back 87*0Sstevel@tonic-gate 88*0Sstevel@tonic-gate=head1 SEE ALSO 89*0Sstevel@tonic-gate 90*0Sstevel@tonic-gateL<IPC::Msg>, L<IPC::Semaphore>, L<ftok> 91*0Sstevel@tonic-gate 92*0Sstevel@tonic-gate=head1 AUTHORS 93*0Sstevel@tonic-gate 94*0Sstevel@tonic-gateGraham Barr <gbarr@pobox.com> 95*0Sstevel@tonic-gateJarkko Hietaniemi <jhi@iki.fi> 96*0Sstevel@tonic-gate 97*0Sstevel@tonic-gate=head1 COPYRIGHT 98*0Sstevel@tonic-gate 99*0Sstevel@tonic-gateCopyright (c) 1997 Graham Barr. All rights reserved. 100*0Sstevel@tonic-gateThis program is free software; you can redistribute it and/or modify it 101*0Sstevel@tonic-gateunder the same terms as Perl itself. 102*0Sstevel@tonic-gate 103*0Sstevel@tonic-gate=cut 104*0Sstevel@tonic-gate 105