А вот скажите программеры

Author: Cetus [322 views] 2013-07-12 11:24:19

есть вот такая функция, которая вроде как делает чего мне надо

PSTAT FUNCTION
Name
pstat_getfile2() - get information for an open file of a process

Synopsis
#include <sys/pstat.h>

int pstat_getfile2(
struct pst_fileinfo2 *buf,
size_t elemsize,
size_t elemcount,
int index,
pid_t pid
);

Description
pstat_getfile2() returns information specific to a particular open
file for a specified process. For the specified process, there is one
instance of this context for each open file descriptor. For each
instance requested, up to a maximum of elemsize bytes of data is
returned in the pst_fileinfo2 structures pointed to by buf. The
elemcount parameter specifies the number of pst_fileinfo2 structures
that are available at buf to be filled in. The index parameter
specifies the starting index within the context of open files for the
specified process: It is the file descriptor number with which to
begin. The pid parameter specifies the process ID.

Ну и так далее. Этот код как то можно подправить и компильнуть чтобы типа можно было запускать потом с требуемыми параметрами и получать рЭзультат?

From:
Password:
Subject:
[b] [i] [u] [s]     [quote] [code] [tmdb] [sarcasm]  [url=]Title[/url]  [img=]
Preview first NSFW
Smileys  BBCode help  Translit help
[b]bolded text[/b]bolded text
[i]italicized text[/i]italicized text
[u]underlined text[/u]underlined text
[s]strikethrough text[/s]strikethrough text
[url]http://example.org[/url]http://example.org
[url=http://example.com]Example[/url]Example
[quote]quoted text[/quote]quoted text
[code]monospaced text[/code]monospaced text
[sarcasm]reverse italicized text[/sarcasm]sarcasm
[color=red]Red Text[/color]Red Text
[color=#FF0000]Red Text[/color]Red Text
[color=FF0000]Red Text[/color]Red Text
[size=15]Large Text[/size]Large Text
[img=https://www.kirdyk.club/images/Tip-Hat.gif]
А=AБ=BВ=VГ=GД=DЕ=EЁ=JOЖ=ZHЗ=ZИ=I
Й=JК=KЛ=LМ=MН=NО=OП=PР=RС=SТ=T
У=UФ=FХ=HЦ=CЧ=CHШ=SHЩ=XHЪ=##Ы=YЬ=''
Э=WЮ=JUЯ=JA
а=aб=bв=vг=gд=dе=eё=joж=zhз=zи=i
й=jк=kл=lм=mн=nо=oп=pр=rс=sт=t
у=uф=fх=hц=cч=chш=shщ=xhъ=#ы=yь='
э=wю=juя=ja