grp.pp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. unit grp;
  2. interface
  3. {
  4. Automatically converted by H2Pas 0.99.15 from grp.h
  5. The following command line parameters were used:
  6. -D
  7. -l
  8. c
  9. -p
  10. -s
  11. -u
  12. grp
  13. -v
  14. grp.h
  15. }
  16. const
  17. External_library='c'; {Setup as you need}
  18. { Pointers to basic pascal types, inserted by h2pas conversion program.}
  19. Type
  20. PLongint = ^Longint;
  21. PSmallInt = ^SmallInt;
  22. PByte = ^Byte;
  23. PWord = ^Word;
  24. PDWord = ^DWord;
  25. PDouble = ^Double;
  26. {$PACKRECORDS C}
  27. type
  28. PFILE = Pointer;
  29. __gid_t = Longint;
  30. P__gid_t = ^__gid_t;
  31. size_t = longint;
  32. PGroup = ^group;
  33. group = record
  34. gr_name : Pchar;
  35. gr_passwd : Pchar;
  36. gr_gid : __gid_t;
  37. gr_mem : ^Pchar;
  38. end;
  39. TGroup = Group;
  40. PPGROUP = ^PGroup;
  41. procedure setgrent;cdecl;external External_library name 'setgrent';
  42. procedure endgrent;cdecl;external External_library name 'endgrent';
  43. function getgrent:Pgroup;cdecl;external External_library name 'getgrent';
  44. function fgetgrent(__stream:PFILE):Pgroup;cdecl;external External_library name 'fgetgrent';
  45. function getgrgid(__gid:__gid_t):Pgroup;cdecl;external External_library name 'getgrgid';
  46. function getgrnam(__name:Pchar):Pgroup;cdecl;external External_library name 'getgrnam';
  47. function getgrgid_r(__gid:__gid_t; __resultbuf:Pgroup; __buffer:Pchar; __buflen:size_t; __result:PPgroup):longint;cdecl;external External_library name 'getgrgid_r';
  48. function getgrnam_r(__name:Pchar; __resultbuf:Pgroup; __buffer:Pchar; __buflen:size_t; __result:PPgroup):longint;cdecl;external External_library name 'getgrnam_r';
  49. function fgetgrent_r(__stream:PFILE; __resultbuf:Pgroup; __buffer:Pchar; __buflen:size_t; __result:PPgroup):longint;cdecl;external External_library name 'fgetgrent_r';
  50. function setgroups(__n:size_t; __groups:P__gid_t):longint;cdecl;external External_library name 'setgroups';
  51. function getgrouplist(__user:Pchar; __group:__gid_t; __groups:P__gid_t; __ngroups:Plongint):longint;cdecl;external External_library name 'getgrouplist';
  52. function initgroups(__user:Pchar; __group:__gid_t):longint;cdecl;external External_library name 'initgroups';
  53. implementation
  54. end.