Changeset 46e869 in git for Singular/extra.cc
- Timestamp:
- Aug 7, 2013, 5:29:57 PM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 32a5f7cbaed7a5ea97ad30c9863f455d9cc4cef2
- Parents:
- 52f95b2cdc569ae8b09e7182d80a56a57fcef2f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r52f95b r46e869 171 171 #ifdef HAVE_GMS 172 172 #include "gms.h" 173 #endif 174 175 #ifdef HAVE_SIMPLEIPC 176 #include "Singular/links/simpleipc.h" 173 177 #endif 174 178 … … 3796 3800 3797 3801 #endif 3802 /*==================== semaphore =================*/ 3803 #ifdef HAVE_SIMPLEIPC 3804 if (strcmp(sys_cmd,"semaphore")==0) 3805 { 3806 if((h!=NULL) && (h->Typ()==STRING_CMD) && (h->next!=NULL) && (h->next->Typ()==INT_CMD)) 3807 { 3808 int v=1; 3809 if ((h->next->next!=NULL)&& (h->next->next->Typ()==INT_CMD)) 3810 v=(int)(long)h->next->next->Data(); 3811 res->data=(char *)simpleipc_cmd((char *)h->Data(),(int)(long)h->next->Data(),v); 3812 res->rtyp=INT_CMD; 3813 return FALSE; 3814 } 3815 else 3816 { 3817 WerrorS("Usage: system(\"semaphore\",<cmd>,int)"); 3818 return TRUE; 3819 } 3820 } 3821 else 3822 #endif 3798 3823 /*======================= demon_list =====================*/ 3799 3824 if (strcmp(sys_cmd,"denom_list")==0)
Note: See TracChangeset
for help on using the changeset viewer.