ßäåðíàÿ ñëåæêà Alexander S. Salieff Ñïåöâûïóñê: Õàêåð, íîìåð #062, ñòð. 062-056-5 IN_ATTRIB — ó ôàéëà ñìåíèëèñü àòðèáóòû IN_CLOSE_WRITE — ôàéë çàêðûò ïîñëå îòêðûòèß íà çàïèñü IN_CLOSE_NOWRITE — ôàéë çàêðûò ïîñëå îòêðûòèß íà ×òåíèå IN_OPEN — ôàéë îòêðûò IN_MOVED_FROM — ôàéë ïåðåìåùåí èç À IN_MOVED_TO — ôàéë ïåðåìåùåí â Á IN_DELETE_SUBDIR — óäàëåíà ïîääèðåêòîðèß IN_DELETE_FILE — â ýòîé äèðåêòîðèè óäàëåí ôàéë IN_CREATE_SUBDIR — ñîçäàíà ïîääèðåêòîðèß IN_CREATE_FILE — â ýòîé äèðåêòîðèè ñîçäàí ôàéë IN_DELETE_SELF — îáúåêò ìîíèòîðèíãà óäàëåí IN_UNMOUNT — òî×êà ìîíòèðîâàíèß ðàçìîíòèðîâàíà IN_Q_OVERFLOW — î×åðåäü ñîîáùåíèé ïåðåïîëíèëàñü IN_IGNORED — îòìåíèòü ìîíèòîðèíã äàííîãî îáúåêòà IN_ALL_EVENTS — âñå ñîáûòèß ñðàçó IN_CLOSE — òî æå ñàìîå, ×òî IN_CLOSE_WRITE | IN_CLOSE_NOWRITE Êîäû ñîáûòèé FAM (enum FAMCodes) FAMChanged — îáúåêò èçìåíåí FAMDeleted — îáúåêò óäàëåí FAMStartExecuting — îáúåêò — èñïîëíßåìûé ôàéë, íà×àë âûïîëíåíèå FAMStopExecuting — îáúåêò — èñïîëíßåìûé ôàéë, çàêîí×èë âûïîëíåíèå FAMCreated — îáúåêò ñîçäàí FAMMoved — îáúåêò ïåðåìåùåí FAMAcknowledge — âûçîâ FAMCancelMonitor óñïåøíî âûïîëíåí FAMExists — îáúåêò ïðèñóòñòâóåò â äèðåêòîðèè FAMEndExist — áîëüøå îáúåêòîâ â äèðåêòîðèè íåò Ïîëÿ ñòðóêòóðû kevent (ñîáûòèå äëÿ kqueue) struct kevent { uintptr_t ident; — èäåíòèôèêàòîð ñîáûòèß short filter; — ôèëüòð ñîáûòèß u_short flags; — ôëàãè ïðîèçîøåäøåãî ñîáûòèß u_int fflags; — äîïîëíèòåëüíûå ôëàãè ôèëüòðà intptr_t data; — äàííûå ôèëüòðà void *udata; — ïîëåçíàß íàãðóçêà (îïöèîíàëüíî ðåãèñòðèðóåòñß â EV_SET) }; â ñîâðåìåííûõ äèñòðèáóòèâàõ linux âìåñòî fam ×àñòî èñïîëüçóåòñß àäàïòèðîâàííûé è îáëåã÷åííûé äåìîí gamin. ïðîãðàììåðó ýòî áåçðàçëè×íî, íà óðîâíå api îíè ïîëíîñòüþ ñîâìåñòèìû ìàêðîñ famrequest_getreqnum(fr) íå äåëàåò íè×åãî ñëîæíîãî, ýòî ïîëíûé àíàëîã fr->reqnum |