process id
Posted in 1996
>I want to get the unix PID of myprocess with getpid() function. >Since my HP9000 with HPUX use cc compiler >I need use pop,push,retint ,... functions in C to comunicate with 4GL. >1-Where are these functions (library.h ?) They're in one of the Informix libraries provided with 4GL. >2-They are ANSI C compliant? As far as I know. >3-If there is other function returning PID in UNIX or 4GL where are they? Don't know of any. >Informix-OL 5.03 >i4GL 4.1 >HPUX 9.03 Julio: Here's a function I use to get the Unix PID. Keep in mind if you are using the Rapid Development System, that you have to link ant "C" functions into the runtime or debugger. This is documented in Reference 1: #include <stdio.h> procid(n) { long x; x = getpid(); retlong(x); return(1); }