Re: [fpc-pascal] Linux Questions

2006-09-19 Thread Rainer Stratmann
Am Dienstag, 19. September 2006 16:14 schrieb Marc Santhoff: > [...] > > h2pas -E > > > > does translate enum's to constants. > > No, in fact it is > > h2pas -e > > but it works. > > Sorry for confusion, > Marc I will try to mount a device with a direct systemcall. In my view it is the best way

Re: [fpc-pascal] Linux Questions

2006-09-19 Thread Marc Santhoff
Am Dienstag, den 19.09.2006, 16:10 +0200 schrieb Marc Santhoff: > Am Dienstag, den 19.09.2006, 15:11 +0200 schrieb Jonas Maebe: > > enum > > { > >MS_RDONLY = 1,/* Mount read-only. */ > > #define MS_RDONLY MS_RDONLY > >MS_NOSUID = 2,/* Ignore suid and s

Re: [fpc-pascal] Linux Questions

2006-09-19 Thread Marc Santhoff
Am Dienstag, den 19.09.2006, 15:11 +0200 schrieb Jonas Maebe: > enum > { >MS_RDONLY = 1,/* Mount read-only. */ > #define MS_RDONLY MS_RDONLY >MS_NOSUID = 2,/* Ignore suid and sgid bits. */ > #define MS_NOSUID MS_NOSUID > etc. > > So that become

Re: [fpc-pascal] Linux Questions

2006-09-19 Thread Jonas Maebe
On 19 sep 2006, at 15:11, Rainer Stratmann wrote: Second question is how to mount and umount for example "/dev/sda1" in a fpc program. Generic solution to this sort of problem: a) look up how it has to be done in C b) if it's a "standard" C function, just translate the prototype to Pascal

RE: [fpc-pascal] Linux Questions

2006-09-19 Thread Wolfe, Robert
> -Original Message- > From: [EMAIL PROTECTED] [mailto:fpc-pascal- > [EMAIL PROTECTED] On Behalf Of Rainer Stratmann > Sent: Tuesday, September 19, 2006 9:12 AM > To: FPC-Pascal users discussions > Subject: [fpc-pascal] Linux Questions > does someone know how to lo

[fpc-pascal] Linux Questions

2006-09-19 Thread Rainer Stratmann
Hello, does someone know how to lock the console output in Linux? Here is a program that uses Framebuffer (Linux Runlevel 2). It works, but it would be good to lock the console bevor writing to the framebuffer and then to unlock the console at the end of the program. I googled, but can not find a