summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-11-04 20:20:56 +0000
committerNicholas Clark <nick@ccl4.org>2005-11-04 20:20:56 +0000
commitca563b4e7524b82fcbffcbe3344a4a9d20a7ab64 (patch)
treea71f08d4d803e15afbf20503721d4a4e1ac0dcc4 /pp_sys.c
parent64a1bc8eebbac673a02fa9f636a26efc18961e48 (diff)
downloadperl-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.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/pp_sys.c b/pp_sys.c
index b31bc349af..c6eb020312 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -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)