Changeset 335
Legend:
- Unmodified
- Added
- Removed
-
devel/5.X/log.h
r327 r335 151 151 typedef enum getter_setter SGetter; 152 152 153 // HvBextern int LOGLEVEL;153 // extern int LOGLEVEL; 154 154 155 155 extern long *log_event_mask; -
devel/5.X/pbs.i
r331 r335 23 23 #include "log.h" 24 24 25 #define SARA_DEBUG 1 26 27 //extern int pbs_errno; 25 #define SARA_DEBUG 0 28 26 29 27 %} … … 44 42 int i=0, size=0; 45 43 46 // printf("Python --> C\n"); 47 48 if (SARA_DEBUG) printf("Converteren python -> c (struct batch_status *):\n"); 44 if (SARA_DEBUG) printf("Convert python -> c (struct batch_status *):\n"); 49 45 50 46 size = Get_List_Size($input); … … 104 100 // printf("Python --> C\n"); 105 101 106 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attrl *):\n");102 if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n"); 107 103 108 104 size = Get_List_Size($input); … … 125 121 return NULL; 126 122 127 // This will skip pthe wrong entry123 // This will skip the wrong entry 128 124 // continue; 129 125 } … … 145 141 146 142 } // end for 143 147 144 if (SARA_DEBUG) printf("\t</Contents>\n"); 148 145 } // end struct attrl *IN typemap … … 159 156 // printf("Python --> C\n"); 160 157 161 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attropl *):\n");158 if (SARA_DEBUG) printf("Convert python -> c (struct attropl *):\n"); 162 159 163 160 size = Get_List_Size($input); … … 244 241 245 242 PyObject *obj_batch; 246 struct batch_status *ptr ;243 struct batch_status *ptr, *org; 247 244 int i=0, len=0; 248 245 249 // printf("Ja we are in bussniss\n"); 250 if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n"); 246 if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n"); 251 247 252 248 // Deterime length of list 253 249 // 254 ptr = $1; 250 org = $1; 251 ptr = org; 255 252 while (ptr != NULL) { 256 253 len++; … … 274 271 } 275 272 276 free(ptr);277 273 if (SARA_DEBUG) printf("\t</Contents>\n"); 278 274 } // end typemap struct batch_status * … … 283 279 int i=0, len=0; 284 280 285 if (SARA_DEBUG) printf("Convert erenc (struct attrl *) -> python:\n");281 if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n"); 286 282 287 283 ptr = $1; … … 302 298 ptr = ptr->next; 303 299 } 304 305 free(ptr);306 300 if (SARA_DEBUG) printf("\t</Contents>\n"); 307 301 } // end typemap struct attrl * … … 312 306 int i=0, len=0; 313 307 314 if (SARA_DEBUG) printf("Convert erenc (struct attropl *) -> python:\n");308 if (SARA_DEBUG) printf("Convert c (struct attropl *) -> python:\n"); 315 309 316 310 ptr = $1; … … 330 324 } 331 325 332 free(ptr);333 326 if (SARA_DEBUG) printf("\t</Contents>\n"); 334 327 } // end typemap struct attropl * … … 340 333 341 334 if (SARA_DEBUG) 342 printf("Convert erenchar ** -> python list\n");335 printf("Convert char ** -> python list\n"); 343 336 344 337 … … 513 506 // 514 507 %nodefault; 515 // %include "pbs_python.h" 508 509 516 510 %include "pbs_ifl.h" 517 511 %include "rm.h" 518 512 %include "log.h" 519 513 %include "pbs_error.h" 520 521 522 // Iets van uhhh..... obsolete523 // %ignore pbs_errno;524 //%include <pbs_error.h>525 526 527 /*528 %feature("shadow") attrl::__str__ {529 def __str__(self): print self.name + self.value;530 }531 %extend attrl {532 void __str__();533 }534 */535 514 536 515 /* not used … … 561 540 printf("Bas free attrl\n"); 562 541 563 /* 564 free(self); 565 */ 542 // free(self); 566 543 } 567 544 } … … 584 561 printf("Bas free attropl\n"); 585 562 586 /* 587 free(self); 588 */ 563 // free(self); 589 564 } 590 565 } -
devel/5.X/pbs.py
r332 r335 941 941 """ 942 942 err = 0 943 print default_mom_res944 943 for res in default_mom_res: 945 print res 946 #addreq(id, res) 947 addreq_err(id, err, res) 948 print err 949 #resp = getreq(id) 950 resp = getreq_err(err, id) 951 print "error: ", err 952 953 print resp,id 944 addreq(id, res) 945 resp = getreq(id) 954 946 check_resp(d, resp) 955 947 -
devel/5.X/pbs_node_info
r331 r335 28 28 # mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT) 29 29 30 err = 0 31 #mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT) 32 mom_id = pbs.openrm("localhost", 15003) 33 print mom_id 30 mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT) 34 31 e, e_txt = pbs.error() 35 32 print "openrm", e, e_txt … … 41 38 42 39 #pbs.addreq_err(mom_id, err, "arch") 43 pbs.addreq(mom_id, " larch")40 pbs.addreq(mom_id, "arch") 44 41 e, e_txt = pbs.error() 45 42 print "addreq:", e, e_txt … … 53 50 e, e_txt = pbs.error() 54 51 print e, e_txt 55 print err, resp56 52 57 sys.exit(1)58 53 print 'rm interface' 59 54 -
devel/5.X/pbs_wrap.c
r331 r335 2979 2979 #include "log.h" 2980 2980 2981 #define SARA_DEBUG 1 2982 2983 //extern int pbs_errno; 2981 #define SARA_DEBUG 0 2984 2982 2985 2983 … … 3458 3456 printf("Bas free attrl\n"); 3459 3457 3460 /* 3461 free(self); 3462 */ 3458 // free(self); 3463 3459 } 3464 3460 SWIGINTERN char *attropl___str__(struct attropl *self){ … … 3473 3469 printf("Bas free attropl\n"); 3474 3470 3475 /* 3476 free(self); 3477 */ 3471 // free(self); 3478 3472 } 3479 3473 … … 3547 3541 int i=0, len=0; 3548 3542 3549 if (SARA_DEBUG) printf("Convert erenc (struct attrl *) -> python:\n");3543 if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n"); 3550 3544 3551 3545 ptr = result; … … 3566 3560 ptr = ptr->next; 3567 3561 } 3568 3569 free(ptr);3570 3562 if (SARA_DEBUG) printf("\t</Contents>\n"); 3571 3563 } … … 3596 3588 int i=0, len=0; 3597 3589 3598 if (SARA_DEBUG) printf("Convert erenc (struct attropl *) -> python:\n");3590 if (SARA_DEBUG) printf("Convert c (struct attropl *) -> python:\n"); 3599 3591 3600 3592 ptr = result; … … 3614 3606 } 3615 3607 3616 free(ptr);3617 3608 if (SARA_DEBUG) printf("\t</Contents>\n"); 3618 3609 } … … 3631 3622 { 3632 3623 PyObject *obj_batch; 3633 struct batch_status *ptr ;3624 struct batch_status *ptr, *org; 3634 3625 int i=0, len=0; 3635 3626 3636 // printf("Ja we are in bussniss\n"); 3637 if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n"); 3627 if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n"); 3638 3628 3639 3629 // Deterime length of list 3640 3630 // 3641 ptr = result; 3631 org = result; 3632 ptr = org; 3642 3633 while (ptr != NULL) { 3643 3634 len++; … … 3661 3652 } 3662 3653 3663 free(ptr);3664 3654 if (SARA_DEBUG) printf("\t</Contents>\n"); 3665 3655 } … … 3822 3812 int i=0, len=0; 3823 3813 3824 if (SARA_DEBUG) printf("Convert erenc (struct attrl *) -> python:\n");3814 if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n"); 3825 3815 3826 3816 ptr = result; … … 3841 3831 ptr = ptr->next; 3842 3832 } 3843 3844 free(ptr);3845 3833 if (SARA_DEBUG) printf("\t</Contents>\n"); 3846 3834 } … … 3930 3918 int i=0, len=0; 3931 3919 3932 if (SARA_DEBUG) printf("Convert erenc (struct attrl *) -> python:\n");3920 if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n"); 3933 3921 3934 3922 ptr = result; … … 3949 3937 ptr = ptr->next; 3950 3938 } 3951 3952 free(ptr);3953 3939 if (SARA_DEBUG) printf("\t</Contents>\n"); 3954 3940 } … … 4294 4280 int i=0, len=0; 4295 4281 4296 if (SARA_DEBUG) printf("Convert erenc (struct attropl *) -> python:\n");4282 if (SARA_DEBUG) printf("Convert c (struct attropl *) -> python:\n"); 4297 4283 4298 4284 ptr = result; … … 4312 4298 } 4313 4299 4314 free(ptr);4315 4300 if (SARA_DEBUG) printf("\t</Contents>\n"); 4316 4301 } … … 4653 4638 { 4654 4639 PyObject *obj_batch; 4655 struct batch_status *ptr ;4640 struct batch_status *ptr, *org; 4656 4641 int i=0, len=0; 4657 4642 4658 // printf("Ja we are in bussniss\n"); 4659 if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n"); 4643 if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n"); 4660 4644 4661 4645 // Deterime length of list 4662 4646 // 4663 ptr = result; 4647 org = result; 4648 ptr = org; 4664 4649 while (ptr != NULL) { 4665 4650 len++; … … 4683 4668 } 4684 4669 4685 free(ptr);4686 4670 if (SARA_DEBUG) printf("\t</Contents>\n"); 4687 4671 } … … 4803 4787 int i=0, len=0; 4804 4788 4805 if (SARA_DEBUG) printf("Convert erenc (struct attrl *) -> python:\n");4789 if (SARA_DEBUG) printf("Convert c (struct attrl *) -> python:\n"); 4806 4790 4807 4791 ptr = result; … … 4822 4806 ptr = ptr->next; 4823 4807 } 4824 4825 free(ptr);4826 4808 if (SARA_DEBUG) printf("\t</Contents>\n"); 4827 4809 } … … 5059 5041 // printf("Python --> C\n"); 5060 5042 5061 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attrl *):\n");5043 if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n"); 5062 5044 5063 5045 size = Get_List_Size(obj2); … … 5079 5061 return NULL; 5080 5062 5081 // This will skip pthe wrong entry5063 // This will skip the wrong entry 5082 5064 // continue; 5083 5065 } … … 5099 5081 5100 5082 } // end for 5083 5101 5084 if (SARA_DEBUG) printf("\t</Contents>\n"); 5102 5085 } … … 5157 5140 // printf("Python --> C\n"); 5158 5141 5159 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attrl *):\n");5142 if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n"); 5160 5143 5161 5144 size = Get_List_Size(obj2); … … 5177 5160 return NULL; 5178 5161 5179 // This will skip pthe wrong entry5162 // This will skip the wrong entry 5180 5163 // continue; 5181 5164 } … … 5197 5180 5198 5181 } // end for 5182 5199 5183 if (SARA_DEBUG) printf("\t</Contents>\n"); 5200 5184 } … … 5590 5574 // printf("Python --> C\n"); 5591 5575 5592 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attropl *):\n");5576 if (SARA_DEBUG) printf("Convert python -> c (struct attropl *):\n"); 5593 5577 5594 5578 size = Get_List_Size(obj4); … … 6200 6184 6201 6185 if (SARA_DEBUG) 6202 printf("Convert erenchar ** -> python list\n");6186 printf("Convert char ** -> python list\n"); 6203 6187 6204 6188 … … 6361 6345 int i=0, size=0; 6362 6346 6363 // printf("Python --> C\n"); 6364 6365 if (SARA_DEBUG) printf("Converteren python -> c (struct batch_status *):\n"); 6347 if (SARA_DEBUG) printf("Convert python -> c (struct batch_status *):\n"); 6366 6348 6367 6349 size = Get_List_Size(obj0); … … 6454 6436 // printf("Python --> C\n"); 6455 6437 6456 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attrl *):\n");6438 if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n"); 6457 6439 6458 6440 size = Get_List_Size(obj2); … … 6474 6456 return NULL; 6475 6457 6476 // This will skip pthe wrong entry6458 // This will skip the wrong entry 6477 6459 // continue; 6478 6460 } … … 6494 6476 6495 6477 } // end for 6478 6496 6479 if (SARA_DEBUG) printf("\t</Contents>\n"); 6497 6480 } … … 6504 6487 { 6505 6488 PyObject *obj_batch; 6506 struct batch_status *ptr ;6489 struct batch_status *ptr, *org; 6507 6490 int i=0, len=0; 6508 6491 6509 // printf("Ja we are in bussniss\n"); 6510 if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n"); 6492 if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n"); 6511 6493 6512 6494 // Deterime length of list 6513 6495 // 6514 ptr = result; 6496 org = result; 6497 ptr = org; 6515 6498 while (ptr != NULL) { 6516 6499 len++; … … 6534 6517 } 6535 6518 6536 free(ptr);6537 6519 if (SARA_DEBUG) printf("\t</Contents>\n"); 6538 6520 } … … 6583 6565 { 6584 6566 PyObject *obj_batch; 6585 struct batch_status *ptr ;6567 struct batch_status *ptr, *org; 6586 6568 int i=0, len=0; 6587 6569 6588 // printf("Ja we are in bussniss\n"); 6589 if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n"); 6570 if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n"); 6590 6571 6591 6572 // Deterime length of list 6592 6573 // 6593 ptr = result; 6574 org = result; 6575 ptr = org; 6594 6576 while (ptr != NULL) { 6595 6577 len++; … … 6613 6595 } 6614 6596 6615 free(ptr);6616 6597 if (SARA_DEBUG) printf("\t</Contents>\n"); 6617 6598 } … … 6663 6644 // printf("Python --> C\n"); 6664 6645 6665 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attrl *):\n");6646 if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n"); 6666 6647 6667 6648 size = Get_List_Size(obj2); … … 6683 6664 return NULL; 6684 6665 6685 // This will skip pthe wrong entry6666 // This will skip the wrong entry 6686 6667 // continue; 6687 6668 } … … 6703 6684 6704 6685 } // end for 6686 6705 6687 if (SARA_DEBUG) printf("\t</Contents>\n"); 6706 6688 } … … 6713 6695 { 6714 6696 PyObject *obj_batch; 6715 struct batch_status *ptr ;6697 struct batch_status *ptr, *org; 6716 6698 int i=0, len=0; 6717 6699 6718 // printf("Ja we are in bussniss\n"); 6719 if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n"); 6700 if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n"); 6720 6701 6721 6702 // Deterime length of list 6722 6703 // 6723 ptr = result; 6704 org = result; 6705 ptr = org; 6724 6706 while (ptr != NULL) { 6725 6707 len++; … … 6743 6725 } 6744 6726 6745 free(ptr);6746 6727 if (SARA_DEBUG) printf("\t</Contents>\n"); 6747 6728 } … … 6785 6766 // printf("Python --> C\n"); 6786 6767 6787 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attrl *):\n");6768 if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n"); 6788 6769 6789 6770 size = Get_List_Size(obj1); … … 6805 6786 return NULL; 6806 6787 6807 // This will skip pthe wrong entry6788 // This will skip the wrong entry 6808 6789 // continue; 6809 6790 } … … 6825 6806 6826 6807 } // end for 6808 6827 6809 if (SARA_DEBUG) printf("\t</Contents>\n"); 6828 6810 } … … 6835 6817 { 6836 6818 PyObject *obj_batch; 6837 struct batch_status *ptr ;6819 struct batch_status *ptr, *org; 6838 6820 int i=0, len=0; 6839 6821 6840 // printf("Ja we are in bussniss\n"); 6841 if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n"); 6822 if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n"); 6842 6823 6843 6824 // Deterime length of list 6844 6825 // 6845 ptr = result; 6826 org = result; 6827 ptr = org; 6846 6828 while (ptr != NULL) { 6847 6829 len++; … … 6865 6847 } 6866 6848 6867 free(ptr);6868 6849 if (SARA_DEBUG) printf("\t</Contents>\n"); 6869 6850 } … … 6915 6896 // printf("Python --> C\n"); 6916 6897 6917 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attrl *):\n");6898 if (SARA_DEBUG) printf("Convert python -> c (struct attrl *):\n"); 6918 6899 6919 6900 size = Get_List_Size(obj2); … … 6935 6916 return NULL; 6936 6917 6937 // This will skip pthe wrong entry6918 // This will skip the wrong entry 6938 6919 // continue; 6939 6920 } … … 6955 6936 6956 6937 } // end for 6938 6957 6939 if (SARA_DEBUG) printf("\t</Contents>\n"); 6958 6940 } … … 6965 6947 { 6966 6948 PyObject *obj_batch; 6967 struct batch_status *ptr ;6949 struct batch_status *ptr, *org; 6968 6950 int i=0, len=0; 6969 6951 6970 // printf("Ja we are in bussniss\n"); 6971 if (SARA_DEBUG) printf("Converteren c (struct batch_status *) -> python:\n"); 6952 if (SARA_DEBUG) printf("Convert c (struct batch_status *) -> python:\n"); 6972 6953 6973 6954 // Deterime length of list 6974 6955 // 6975 ptr = result; 6956 org = result; 6957 ptr = org; 6976 6958 while (ptr != NULL) { 6977 6959 len++; … … 6995 6977 } 6996 6978 6997 free(ptr);6998 6979 if (SARA_DEBUG) printf("\t</Contents>\n"); 6999 6980 } … … 7047 7028 // printf("Python --> C\n"); 7048 7029 7049 if (SARA_DEBUG) printf("Convert erenpython -> c (struct attropl *):\n");7030 if (SARA_DEBUG) printf("Convert python -> c (struct attropl *):\n"); 7050 7031 7051 7032 size = Get_List_Size(obj1); … … 7653 7634 int val1 ; 7654 7635 int ecode1 = 0 ; 7655 int temp2;7636 void *argp2 = 0 ; 7656 7637 int res2 = 0 ; 7657 7638 int res3 ; … … 7669 7650 } 7670 7651 arg1 = (int)(val1); 7671 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_int,0))))) { 7672 int val; 7673 int ecode = SWIG_AsVal_int(obj1, &val); 7674 if (!SWIG_IsOK(ecode)) { 7675 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "addreq_err" "', argument " "2"" of type '" "int""'"); 7676 } 7677 temp2 = (int)(val); 7678 arg2 = &temp2; 7679 res2 = SWIG_AddTmpMask(ecode); 7680 } 7652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); 7653 if (!SWIG_IsOK(res2)) { 7654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "addreq_err" "', argument " "2"" of type '" "int *""'"); 7655 } 7656 arg2 = (int *)(argp2); 7681 7657 res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); 7682 7658 if (!SWIG_IsOK(res3)) { … … 7686 7662 result = (int)addreq_err(arg1,arg2,arg3); 7687 7663 resultobj = SWIG_From_int((int)(result)); 7688 if (SWIG_IsTmpObj(res2)) {7689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));7690 } else {7691 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;7692 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));7693 }7694 7664 if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); 7695 7665 return resultobj; … … 7803 7773 int *arg1 = (int *) 0 ; 7804 7774 int arg2 ; 7805 int temp1;7775 void *argp1 = 0 ; 7806 7776 int res1 = 0 ; 7807 7777 int val2 ; … … 7812 7782 7813 7783 if (!PyArg_ParseTuple(args,(char *)"OO:getreq_err",&obj0,&obj1)) SWIG_fail; 7814 if (!(SWIG_IsOK((res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1),SWIGTYPE_p_int,0))))) { 7815 int val; 7816 int ecode = SWIG_AsVal_int(obj0, &val); 7817 if (!SWIG_IsOK(ecode)) { 7818 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "getreq_err" "', argument " "1"" of type '" "int""'"); 7819 } 7820 temp1 = (int)(val); 7821 arg1 = &temp1; 7822 res1 = SWIG_AddTmpMask(ecode); 7823 } 7784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 ); 7785 if (!SWIG_IsOK(res1)) { 7786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getreq_err" "', argument " "1"" of type '" "int *""'"); 7787 } 7788 arg1 = (int *)(argp1); 7824 7789 ecode2 = SWIG_AsVal_int(obj1, &val2); 7825 7790 if (!SWIG_IsOK(ecode2)) { … … 7829 7794 result = (char *)getreq_err(arg1,arg2); 7830 7795 resultobj = SWIG_FromCharPtr((const char *)result); 7831 if (SWIG_IsTmpObj(res1)) {7832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg1)));7833 } else {7834 int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;7835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));7836 }7837 7796 return resultobj; 7838 7797 fail: -
devel/5.X/resmom.py
r327 r335 88 88 """ 89 89 err = 0 90 print default_mom_res91 90 for res in default_mom_res: 92 print res 93 #addreq(id, res) 94 addreq_err(id, err, res) 95 print err 96 #resp = getreq(id) 97 resp = getreq_err(err, id) 98 print "error: ", err 99 100 print resp,id 91 addreq(id, res) 92 resp = getreq(id) 101 93 check_resp(d, resp) 102 94 -
devel/5.X/rm.h
r331 r335 82 82 ** to the resource monitor. 83 83 */ 84 84 85 #ifdef __cplusplus 85 86 extern "C" … … 91 92 int downrm(int *, int); 92 93 int configrm(int, int *, char *); 93 int addreq_err(int, int * INOUT, char *);94 int addreq_err(int, int *, char *); 94 95 int begin_rm_req(int ,int *,int ); 95 96 int addreq(int, char *); 96 97 int allreq(char *); 97 char* getreq_err(int * INOUT, int);98 char* getreq_err(int *, int); 98 99 char* getreq(int); 99 100 int flushreq(void); … … 103 104 } 104 105 #endif 106
Note: See TracChangeset
for help on using the changeset viewer.