From: <da...@us...> - 2002-09-14 18:34:01
|
Update of /cvsroot/cerber/cerb-ng In directory usw-pr-cvs1:/tmp/cvs-serv19582 Modified Files: README.developers.pl README.pl Log Message: - dcb_op_t -> dcb_op, because style(9) says that we should avoid '_t' suffix in typedefs. - Added note about enum to README.developers.pl. - Changed CB_[A-Z]_[LO] #defines to enums - enums are much easier to update. - Updated README.kcerb.pl. - [sg]etpugid() -> [sg]etpinfo() - this function will be use for changing all process informations, not only (r|e|sv)[ug]id. - Removed fcb_getdef() and fcb_getstr(), because fcb_getval() gets functionality of those functions and fcb_getval() residents in cerb_rules.c instead of cerb_action.c. - Many changes and optimalizations. - All values are resolved in fcb_rule_exec() now. - Fixed not-tested parts of code, there was some bugs. - Added getppid() operation for getting parent pid. - Added description about this operation to README.pl. Index: README.developers.pl =================================================================== RCS file: /cvsroot/cerber/cerb-ng/README.developers.pl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** README.developers.pl 31 Aug 2002 08:19:29 -0000 1.5 --- README.developers.pl 14 Sep 2002 18:33:55 -0000 1.6 *************** *** 76,84 **** - nazwy struktury zaczynaj± siê od 'scb_', - nazwy tablic zaczynaj± siê od 'tcb_', ! - nazwy typedef'ów zaczynaj± siê od 'dcb_' i dla porz±dku koñcz± siê na '_t', - zmienne przechowuj±ce sysctl'e zaczynaj± siê od 'ccb_', - globalne zmienne powinny zaczynaæ siê od 'vcb_', - etykiety (je¶li nie da siê unikn±æ 'goto') zaczynaj± siê od 'ecb_', ! - makra zaczynaj± siê od 'MCB_'. 9. Nazwy funkcji powinny byæ w miarê czytelne, w sensie mówiæ co funkcja robi, --- 76,85 ---- - nazwy struktury zaczynaj± siê od 'scb_', - nazwy tablic zaczynaj± siê od 'tcb_', ! - nazwy typedef'ów zaczynaj± siê od 'dcb_' i _nie_ koñcz± siê na '_t', - zmienne przechowuj±ce sysctl'e zaczynaj± siê od 'ccb_', - globalne zmienne powinny zaczynaæ siê od 'vcb_', - etykiety (je¶li nie da siê unikn±æ 'goto') zaczynaj± siê od 'ecb_', ! - makra zaczynaj± siê od 'MCB_', ! - warto¶ci 'enum' zaczynaj± siê od 'ECB_'. 9. Nazwy funkcji powinny byæ w miarê czytelne, w sensie mówiæ co funkcja robi, Index: README.pl =================================================================== RCS file: /cvsroot/cerber/cerb-ng/README.pl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** README.pl 14 Sep 2002 02:58:55 -0000 1.7 --- README.pl 14 Sep 2002 18:33:55 -0000 1.8 *************** *** 104,107 **** --- 104,116 ---- numerze PID + getppid([pid]) + opis: podaje PID procesu rodzicielskiego dla aktualnego procesu (je¶li + nie podano argumentu) lub dla procesu o numerze PID ,,pid'' + zwracana warto¶æ: numer PID procesu rodzicielskiego lub -1 je¶li + proces o podanym numerze ,,pid'' nie istnieje + dokumentacja: getppid(2) + uwagi: dla aktualnego procesu szybciej jest korzystaæ ze zmiennej + ,,ppid'' + getpfile([pid]) opis: podaje pe³n± ¶cie¿kê do pliku wykonywalnego, z którego zosta³ |