Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

KERN_PROF help



hi, when trying below code

mib[0] = CTL_KERN;
mib[1] = KERN_PROC;
mib[2] = KERN_PROC_ALL;
mib[3] = 0;
if (sysctl(mib, 3 , NULL, &size, NULL, 0)<0 )
perror(SYSCTL fails);
else
printf("SYSCTL OK\n");

get the error message:
)ENOENT 2) 
"SYSCTL fails: No such file or directory"

what could be the prossible reason?

thanks in advance, 
hm_li2001



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.