瀏覽代碼

* first version of fcl for netwlibc

armin 21 年之前
父節點
當前提交
8efa3e2c3d
共有 5 個文件被更改,包括 156 次插入0 次删除
  1. 48 0
      fcl/netwlibc/custapp.inc
  2. 30 0
      fcl/netwlibc/eventlog.inc
  3. 38 0
      fcl/netwlibc/ezcgi.inc
  4. 29 0
      fcl/netwlibc/pipes.inc
  5. 11 0
      fcl/netwlibc/resolve.inc

+ 48 - 0
fcl/netwlibc/custapp.inc

@@ -0,0 +1,48 @@
+{
+    $Id$
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2004 by the Free Pascal development team
+
+    Linux version of custom app object routines.
+    
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+Procedure SysGetEnvironmentList(List : TStrings;NamesOnly : Boolean);
+
+Var
+  P : PPChar;
+  S : String;  
+  I : Integer;
+  
+begin
+  List.Clear;
+  P:=EnvP;
+  if (P<>Nil) then
+    While (P^<>Nil) do
+      begin
+      S:=StrPas(P^);
+      If NamesOnly then
+        begin
+        I:=Pos('=',S);
+        If (I>0) then
+          S:=Copy(S,1,I-1);
+        end;
+      List.Add(S);
+      Inc(P);
+    end;
+end;
+
+{
+  $Log$
+  Revision 1.1  2004-09-05 19:39:44  armin
+  * first version of fcl for netwlibc
+
+}
+  

+ 30 - 0
fcl/netwlibc/eventlog.inc

@@ -0,0 +1,30 @@
+{
+    $Id$
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2004 by the Free Pascal development team
+
+    Netware event logging facility.
+    
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+{ ---------------------------------------------------------------------
+    Include event log that maps to file event log.
+    There is an event log on netware but it is not documented
+  ---------------------------------------------------------------------}
+  
+{$i felog.inc}
+
+{
+  $Log$
+  Revision 1.1  2004-09-05 19:39:44  armin
+  * first version of fcl for netwlibc
+
+}
+  

+ 38 - 0
fcl/netwlibc/ezcgi.inc

@@ -0,0 +1,38 @@
+{
+    $Id$
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 1999-2004 by Michael Van Canneyt
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+
+
+{ Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
+
+FUNCTION _getenv (name : pchar) : pchar; cdecl; external 'libc' name 'getenv';
+
+Function Getenv (Var EnvVar  : AnsiString): AnsiString;
+
+Var P : Pchar;
+
+begin
+  P := _getenv (pchar(EnvVar));
+  if p = nil then
+    GetEnv := ''
+  else
+    GetEnv := strpas (P);
+end;
+
+{
+  $Log$
+  Revision 1.1  2004-09-05 19:39:44  armin
+  * first version of fcl for netwlibc
+
+}

+ 29 - 0
fcl/netwlibc/pipes.inc

@@ -0,0 +1,29 @@
+{
+    $Id$
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 1999-2004 by Michael Van Canneyt
+
+    Netware specific part of pipe stream.
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+
+Function CreatePipeHandles (Var Inhandle,OutHandle : Longint) : Boolean;
+
+begin
+  Result := false;  {todo}
+end;
+
+{
+  $Log$
+  Revision 1.1  2004-09-05 19:39:44  armin
+  * first version of fcl for netwlibc
+
+}

+ 11 - 0
fcl/netwlibc/resolve.inc

@@ -0,0 +1,11 @@
+{netware has winsock like win32}
+{use win32 implementation based on winsock}
+{$include ../win32/resolve.inc}
+
+{
+  $Log$
+  Revision 1.1  2004-09-05 19:39:44  armin
+  * first version of fcl for netwlibc
+
+}
+