hello
Is there anybody has worked with STAT_IRWXG ?
http://www.freepascal.org/docs-html/rtl/oldlinux/index-2.html
I need infos in order to get a function that get file permissions on
linux system (like 0777, 0755...)
best regards
--
David Touzeau -- Linux Ubuntu Dap
Hi all
I'm having some fun solving some programming problems in SPOJ
(www.spoj.pl, very very cool, check it out). The thing is that is need
to calculate some big fatorials (~100!). With FPC and the standard
integer types I was unable to perform the correct calculations because
100! is bigger than
> Is there anybody has worked with STAT_IRWXG ?
> http://www.freepascal.org/docs-html/rtl/oldlinux/index-2.html
That is a legacy api. Better use Baseunix:
> I need infos in order to get a function that get file permissions on
> linux system (like 0777, 0755...)
http://www.freepascal.org/docs-h
> I'm having some fun solving some programming problems in SPOJ
> (www.spoj.pl, very very cool, check it out). The thing is that is need
> to calculate some big fatorials (~100!). With FPC and the standard
> integer types I was unable to perform the correct calculations because
> 100! is bigger tha
On 4/1/07, Marco van de Voort <[EMAIL PROTECTED]> wrote:
Keep in mind that the extended type has limited precision. It can contain
large values, but does so by only "remembering" the upper +/- 18 digits,
sign and exponent.
OK, i will work on that
If it is a content, I think they want you t
> On 4/1/07, Marco van de Voort <[EMAIL PROTECTED]> wrote:
> >
> > Keep in mind that the extended type has limited precision. It can contain
> > large values, but does so by only "remembering" the upper +/- 18 digits,
> > sign and exponent.
> >
>
> OK, i will work on that
You could search for the
Dear list,
I have been struggling for quite a while (that is weeks) to get proper
pipe communication with a sublaunched program, using TProcess or
straight pipe/fork/exec calls. This is under Mac OSX, but the problem
should be similar under any Unix.
The problem is the buffering. Using stdi
> After a lot of googling and experimenting, I think I have managed to
> make it work, but only in C code, and I want it to run in Pascal. The
> key to make it work in C was to call setvbuf at the right time, to set
> the buffering mode for stdin/stdout. The problem with FPC is that I
> can't f
Marco van de Voort schreef:
After a lot of googling and experimenting, I think I have managed to
make it work, but only in C code, and I want it to run in Pascal. The
key to make it work in C was to call setvbuf at the right time, to set
the buffering mode for stdin/stdout. The problem with FPC
Thanks marco for the way
i have copy the example , but how can i convert "info.st_mode" in human
readable mask (0777, 0755...)
For example, a file in 0755 mask is 16877 value in info.st_mode.
best regards
unit base_unix;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,variants, Linux
On Sun, 1 Apr 2007, Ingemar Ragnemalm wrote:
>
> Dear list,
>
> I have been struggling for quite a while (that is weeks) to get proper pipe
> communication with a sublaunched program, using TProcess or straight
> pipe/fork/exec calls. This is under Mac OSX, but the problem should be similar
>
11 matches
Mail list logo