pwd.pp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. unit pwd;
  2. interface
  3. {
  4. Automatically converted by H2Pas 0.99.15 from pwd.H
  5. The following command line parameters were used:
  6. -D
  7. -l
  8. c
  9. -p
  10. -s
  11. -u
  12. pwd
  13. -v
  14. pwd.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. __uid_t = longint;
  30. __gid_t = longint;
  31. Ppasswd = ^passwd;
  32. passwd = record
  33. pw_name : Pchar;
  34. pw_passwd : Pchar;
  35. pw_uid : __uid_t;
  36. pw_gid : __gid_t;
  37. pw_gecos : Pchar;
  38. pw_dir : Pchar;
  39. pw_shell : Pchar;
  40. end;
  41. TPasswordRecord = passwd;
  42. PPasswordRecord = ^TPasswordRecord;
  43. procedure setpwent;cdecl; external External_library name 'setpwent';
  44. procedure endpwent;cdecl; external External_library name 'endpwent';
  45. function getpwent:Ppasswd;cdecl;external External_library name 'getpwent';
  46. function fgetpwent(__stream:PFILE):Ppasswd;cdecl;external External_library name 'fgetpwent';
  47. function putpwent(__p:Ppasswd; __f:PFILE):longint;cdecl;external External_library name 'putpwent';
  48. function getpwuid(__uid:__uid_t):Ppasswd;cdecl;external External_library name 'getpwuid';
  49. function getpwnam(__name:Pchar):Ppasswd;cdecl;external External_library name 'getpwnam';
  50. function getpw(__uid:__uid_t; __buffer:Pchar):longint;cdecl;external External_library name 'getpw';
  51. implementation
  52. end.