diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-11-04 20:20:56 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-11-04 20:20:56 +0000 |
commit | ca563b4e7524b82fcbffcbe3344a4a9d20a7ab64 (patch) | |
tree | a71f08d4d803e15afbf20503721d4a4e1ac0dcc4 /pp_sys.c | |
parent | 64a1bc8eebbac673a02fa9f636a26efc18961e48 (diff) | |
download | perl-ca563b4e7524b82fcbffcbe3344a4a9d20a7ab64.tar.gz |
pp_semop can fit within Perl_pp_shmwrite().
p4raw-id: //depot/perl@26000
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -4451,6 +4451,9 @@ PP(pp_shmwrite) case OP_MSGRCV: value = (I32)(do_msgrcv(MARK, SP) >= 0); break; + case OP_SEMOP: + value = (I32)(do_semop(MARK, SP) >= 0); + break; default: value = (I32)(do_shmio(op_type, MARK, SP) >= 0); break; @@ -4501,19 +4504,6 @@ PP(pp_semctl) #endif } -PP(pp_semop) -{ -#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM) - dSP; dMARK; dTARGET; - I32 value = (I32)(do_semop(MARK, SP) >= 0); - SP = MARK; - PUSHi(value); - RETURN; -#else - return pp_semget(); -#endif -} - /* Get system info. */ PP(pp_ghostent) |