* SUMMARY: Q: ioctl(fd, PIOCGETUTK, pr_utask);
@ 1996-03-28 21:29 Randy M. Hayman
0 siblings, 0 replies; only message in thread
From: Randy M. Hayman @ 1996-03-28 21:29 UTC (permalink / raw)
To: tru64-unix-managers
On 21 Mar 96 I wrote:
|>I'm running DU v3.2D-1.
|>
|>I'm looking for a way to gather the 'uu_ioch' data for a process and
|>am currently attempting to use the procfs ioctl call PIOCGETUTK to get
|>a utask structure which I can glean this information from. The compilation
|>fails with:
|>
|>/usr/lib/cmplrs/cc/cfe: Error: get_user_info.c, line 127: Reference an
|>expression of void type or an incomplete type.
|> ioctl(fd, (0x40000000 | (( sizeof(struct utask) & 0x1fff
|> ) << 16) | (( ('F')) << 8) | ( (43))) ,
|> &pr_utask);
|> ------------------ ----------- -------------^
|>
|>
|>I have the following in my code:
|>
|>struct utask pr_utask;
|>...
|>fd = open(procfs_pid, O_RDONLY | O_NDELAY);
|>ioctl(fd, PIOCGETUTK, &pr_utask);
|>
|>I'm able to get PIOCCRED, PIOCGETPR, PIOCGETU, etc... data.
|>Apparently I'm not reading procfs.h correctly. Can anybody point me towards
|>some information such that I can get uu_ioch for a given process? Isn't
|>PIOCGETUTK implemented (PIOCGETTK isn't implemented either)? Is there a
|>better method?
|>
|>TIA
Answer: no responses, my assumption is that it is not implemented yet, and
nobody else receiving the original message has tried any of this yet.
Randy M. Hayman
haymanr@icefog.alaska.edu
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-03-28 21:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-28 21:29 SUMMARY: Q: ioctl(fd, PIOCGETUTK, pr_utask); Randy M. Hayman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox