shadow.pp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {$IFNDEF FPC_DOTTEDUNITS}
  2. unit shadow;
  3. {$ENDIF FPC_DOTTEDUNITS}
  4. interface
  5. {
  6. Automatically converted by H2Pas 0.99.15 from shadow.h
  7. The following command line parameters were used:
  8. -D
  9. -l
  10. c
  11. -p
  12. -s
  13. -u
  14. shadow
  15. -v
  16. shadow.h
  17. }
  18. const
  19. External_library='c'; {Setup as you need}
  20. { Pointers to basic pascal types, inserted by h2pas conversion program.}
  21. Type
  22. PLongint = ^Longint;
  23. PSmallInt = ^SmallInt;
  24. PByte = ^Byte;
  25. PWord = ^Word;
  26. PDWord = ^DWord;
  27. PDouble = ^Double;
  28. {$PACKRECORDS C}
  29. type
  30. PFile = Pointer;
  31. Pspwd = ^spwd;
  32. spwd = record
  33. sp_namp : PAnsiChar;
  34. sp_pwdp : PAnsiChar;
  35. sp_lstchg : longint;
  36. sp_min : longint;
  37. sp_max : longint;
  38. sp_warn : longint;
  39. sp_inact : longint;
  40. sp_expire : longint;
  41. sp_flag : longint;
  42. end;
  43. TPasswordFileEntry = spwd;
  44. PPasswordFileEntry = ^TPasswordFileEntry;
  45. procedure setspent;cdecl;external External_library name 'setspent';
  46. procedure endspent;cdecl;external External_library name 'endspent';
  47. function getspent:Pspwd;cdecl;external External_library name 'getspent';
  48. function getspnam(__name:PAnsiChar):Pspwd;cdecl;external External_library name 'getspnam';
  49. function sgetspent(__string:PAnsiChar):Pspwd;cdecl;external External_library name 'sgetspent';
  50. function fgetspent(__stream:PFILE):Pspwd;cdecl;external External_library name 'fgetspent';
  51. function putspent(__p:Pspwd; __stream:PFILE):longint;cdecl;external External_library name 'putspent';
  52. function lckpwdf:longint;cdecl;external External_library name 'lckpwdf';
  53. function ulckpwdf:longint;cdecl;external External_library name 'ulckpwdf';
  54. implementation
  55. end.