Originally posted by: SystemAdmin
AIX 5.3
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: 08.00.0000.0014
From man getprocs
Technical Reference: Base Operating System and Extensions, Volume 1
getprocs Subroutine
Purpose
Gets process table entries.
Library
Standard C library (libc.a)
Syntax
#include <procinfo.h>
#include <sys/types.h>
int
getprocs ( ProcessBuffer, ProcessSize, FileBuffer, FileSize, IndexPointer, Count)
..............
int
getprocs64 ( ProcessBuffer, ProcessSize, FileBuffer, FileSize, IndexPointer, Count)
.................
#include <procinfo.h>
#include <sys/types.h>
int main()
{
struct procsinfo pinfo;
pid_t retval = (pid_t)0;
getprocs(&pinfo, sizeof(struct procsinfo), 0, 0, &retval, 1);
getprocs64(&pinfo, sizeof(struct procsinfo), 0, 0, &retval, 1);
return 0;
}
Compilation
> xlC_r -q64 bar.cpp
"bar.cpp", line 7.9: 1540-0274 (S) The name lookup for "getprocs" did not find a declaration.
"bar.cpp", line 8.9: 1540-0274 (S) The name lookup for "getprocs64" did not find a declaration.
What is wrong?
Thanks.
Alex Vinokur
#AIX-Forum