|
@@ -14,7 +14,7 @@
|
|
|
|
|
|
**********************************************************************}
|
|
**********************************************************************}
|
|
|
|
|
|
-function TTYName(Handle:cint):string;
|
|
|
|
|
|
+function TTYName(Handle:cint):shortstring;
|
|
{
|
|
{
|
|
Return the name of the current tty described by handle f.
|
|
Return the name of the current tty described by handle f.
|
|
returns empty string in case of an error.
|
|
returns empty string in case of an error.
|
|
@@ -24,12 +24,12 @@ var
|
|
myino : ino_t;
|
|
myino : ino_t;
|
|
st : stat;
|
|
st : stat;
|
|
|
|
|
|
- function mysearch(n:string): boolean;
|
|
|
|
|
|
+ function mysearch(n:shortstring): boolean;
|
|
{searches recursively for the device in the directory given by n,
|
|
{searches recursively for the device in the directory given by n,
|
|
returns true if found and sets the name of the device in ttyname}
|
|
returns true if found and sets the name of the device in ttyname}
|
|
var dirstream : pdir;
|
|
var dirstream : pdir;
|
|
d : pdirent;
|
|
d : pdirent;
|
|
- name : string;
|
|
|
|
|
|
+ name : shortstring;
|
|
st : stat;
|
|
st : stat;
|
|
begin
|
|
begin
|
|
dirstream:=fpopendir(n);
|
|
dirstream:=fpopendir(n);
|
|
@@ -83,7 +83,7 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-function TTYName(var F:Text):string;
|
|
|
|
|
|
+function TTYName(var F:Text):shortstring;
|
|
{
|
|
{
|
|
Idem as previous, only now for text variables;
|
|
Idem as previous, only now for text variables;
|
|
}
|
|
}
|