home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
stg_v4.lzh
/
pathlist.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-11
|
521b
|
33 lines
#include <stdio.h>
#include <procid.h>
procid sProc;
#define ERR (-1)
char buf[32];
main()
{
int iProc,iPath;
iProc=-1;
while (++iProc<1024)
{
if (_get_process_desc(iProc,sizeof(sProc),&sProc)==ERR)
continue;
printf("%12s: ",(char*)sProc._pmodul+sProc._pmodul->_mh._mname);
iPath=-1;
while (++iPath<32)
{
if (!sProc._path[iPath])
continue;
if (_sgs_devn(sProc._path[iPath],buf)==ERR)
continue;
printf("%2d=%-6s",iPath,buf);
}
printf("\n");
}
}