mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 19:31:13 +02:00
* added unixtype unit in addition to baseunix unit (currently baseunix contains all types of unixtype)
git-svn-id: trunk@11782 -
This commit is contained in:
parent
cd6b57c733
commit
2439dbd5a6
@ -39,7 +39,7 @@ type
|
||||
|
||||
implementation
|
||||
|
||||
uses baseunix, Unix;
|
||||
uses unixtype, baseunix, Unix;
|
||||
|
||||
const
|
||||
MaxHandle = SizeOf(TFDSet) * 8 - 1;
|
||||
|
@ -95,7 +95,7 @@ USES
|
||||
Libc, // MvdV: Nothing is used from this???
|
||||
{$ENDIF}
|
||||
{$ifdef Unix}
|
||||
BaseUnix, Unix,
|
||||
UnixType, BaseUnix, Unix,
|
||||
{$endif}
|
||||
(*$IFDEF MSWINDOWS *)
|
||||
Windows,
|
||||
|
@ -108,7 +108,7 @@ implementation
|
||||
|
||||
uses LibTar,
|
||||
{$IFDEF UNIX}
|
||||
Unix,BaseUnix,
|
||||
UnixType,Unix,BaseUnix,
|
||||
{$ENDIF}
|
||||
{$IFDEF MSWINDOWS}
|
||||
windows,
|
||||
|
@ -145,6 +145,8 @@ Uses
|
||||
{$endif WINDOWS}
|
||||
{$ifdef UNIX}
|
||||
uses
|
||||
ctypes,
|
||||
UnixType,
|
||||
Unix,
|
||||
Baseunix;
|
||||
{$endif UNIX}
|
||||
|
@ -86,7 +86,7 @@ USES
|
||||
{$ifdef VER1_0}
|
||||
linux,
|
||||
{$else}
|
||||
baseunix,unix,
|
||||
unixtype,baseunix,unix,
|
||||
{$endif}
|
||||
{$ENDIF}
|
||||
|
||||
|
@ -25,7 +25,7 @@ unit gdk2x;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Unix, BaseUnix, glib2, gdk2, XLib, X, XRender;
|
||||
Classes, SysUtils, UnixType, Unix, BaseUnix, glib2, gdk2, XLib, X, XRender;
|
||||
|
||||
{$ifdef FREEBSD}
|
||||
{$linklib pthread}
|
||||
|
@ -22,7 +22,7 @@ interface
|
||||
{DEFINE LOADDYNAMIC}
|
||||
|
||||
uses
|
||||
baseunix,
|
||||
ctypes,unixtype,baseunix,
|
||||
{$ifdef LOADDYNAMIC}
|
||||
dl,
|
||||
{$endif}
|
||||
|
@ -14,7 +14,7 @@ uses
|
||||
windows,
|
||||
{$ENDIF}
|
||||
{$IFDEF UNIX}
|
||||
baseunix,
|
||||
unixtype,
|
||||
{$ENDIF}
|
||||
ctypes;
|
||||
|
||||
|
@ -41,7 +41,7 @@ interface
|
||||
|
||||
uses
|
||||
{$ifdef UNIX}
|
||||
BaseUnix,
|
||||
UnixType,BaseUnix,
|
||||
{$endif}
|
||||
{$ifdef Windows}
|
||||
WinSock, Windows,
|
||||
|
@ -25,16 +25,16 @@ uses initc,BaseUnix, unixtype;
|
||||
{$i pthrbsd.inc}
|
||||
{$else}
|
||||
{$ifdef linux}
|
||||
uses initc,unixtype;
|
||||
uses initc, ctypes, unixtype;
|
||||
{$i pthrlinux.inc}
|
||||
{$else}
|
||||
|
||||
{$ifdef sunos}
|
||||
uses initc,unixtype;
|
||||
uses initc, ctypes, unixtype;
|
||||
{$i pthrsnos.inc}
|
||||
{$else}
|
||||
{$ifdef beos}
|
||||
uses initc, baseunix, unixtype;
|
||||
uses initc, ctypes, baseunix, unixtype;
|
||||
{$i pthrbeos.inc}
|
||||
{$else}
|
||||
{$error operating system not detected}
|
||||
|
@ -300,6 +300,7 @@ uses
|
||||
{$IFDEF UNIX}
|
||||
{$IFDEF FPC}
|
||||
pthreads,
|
||||
unixtype,
|
||||
baseunix,
|
||||
{$IFNDEF GP2X}
|
||||
unix,
|
||||
|
@ -3,7 +3,7 @@ unit grp;
|
||||
interface
|
||||
|
||||
uses
|
||||
initc,baseunix,ctypes;
|
||||
initc,unixtype,baseunix,ctypes;
|
||||
|
||||
{$IFDEF FPC}
|
||||
{$PACKRECORDS C}
|
||||
|
@ -3,7 +3,7 @@ unit pwd;
|
||||
interface
|
||||
|
||||
uses
|
||||
initc,baseunix,ctypes;
|
||||
initc,unixtype,baseunix,ctypes;
|
||||
|
||||
{$IFDEF FPC}
|
||||
{$PACKRECORDS C}
|
||||
|
@ -2,7 +2,7 @@ unit users;
|
||||
|
||||
Interface
|
||||
{$mode delphi}
|
||||
uses BaseUnix,pwd,grp, {$ifdef Linux} shadow,{$endif}SysUtils,Classes;
|
||||
uses UnixType,BaseUnix,pwd,grp, {$ifdef Linux} shadow,{$endif}SysUtils,Classes;
|
||||
|
||||
Type
|
||||
EUserLookupError = Class(Exception);
|
||||
|
Loading…
Reference in New Issue
Block a user