Re: [fpc-devel] unix platform maintainers :setuid, setsgid

2011-08-29 Thread Armin Diehl
On 08/27/2011 04:33 PM, Marco van de Voort wrote: Not all permission bits have constants predeclared. Michael and I checked and Linux/FreeBSD/Darwin all have the upper bits declared like this: #define S_ISUID 0004000 /* [XSI] set user id on execution */ #define S_ISGID 00

Re: RE : [fpc-devel] serial under linux, SerOpen blocks

2011-08-19 Thread Armin Diehl
there must be a reason why minicom uses O_NDELAY (=O_NONBLOCK) in case O_NDELAY ist defined. Now i remember that i had the same problem several years ago with cat file >/dev/ttyUSB0, i think it was Fedora Core 3 or 4. I assume this does not only happen with a pl2303. #if defined(O_NDELAY) && de

Re: [fpc-devel] serial under linux, SerOpen blocks

2011-08-18 Thread Armin Diehl
:18 PM, Henry Vermaak wrote: On 18/08/11 12:00, Armin Diehl wrote: Hi Marco, minicom calls open with O_NONBLOCK and resets O_NONBLOCK directly after the open call: open("/dev/ttyUSB0", O_RDWR|O_NOCTTY|O_NONBLOCK) = 3 fcntl(3, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE) f

Re: [fpc-devel] serial under linux, SerOpen blocks

2011-08-18 Thread Armin Diehl
TFL,O_RDWR or O_NOCTTY); //AD: non blocking off again end; On 08/18/2011 12:21 PM, Marco van de Voort wrote: In our previous episode, Armin Diehl said: should that be changed in the standard serial.pp ? I'm not sure, since this leaves nonblocking behaviour on by defaul

Re: [fpc-devel] serial under linux, SerOpen blocks

2011-08-18 Thread Armin Diehl
0 ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0 ioctl(3, TCFLSH, 0x2) = 0 should that be changed in the standard serial.pp ? On 08/18/2011 11:51 AM, Henry Vermaak wrote: On 18/08/11 10:34, Armin Diehl wrote:

Re: [fpc-devel] serial under linux, SerOpen blocks

2011-08-18 Thread Armin Diehl
n 08/18/2011 10:22 AM, Mark Morgan Lloyd wrote: Armin Diehl wrote: I need some hint regarding opening a serial (ttyUSB) port using the unit serial. Minicom works fine under my user id. When i call SerOpen('/dev/ttyUSB0'), fpopen blocks forever. When i first start minicom on that port,

Re: [fpc-devel] serial under linux, SerOpen blocks

2011-08-18 Thread Armin Diehl
Hi Peter, that is the same as in the standard serial.pp: Result := fpopen(DeviceName, O_RDWR or O_NOCTTY); and this fpopen will block as long as minicom is not started on that device. On 08/18/2011 11:10 AM, peter green wrote: Armin Diehl wrote: I need some hint regarding opening a serial

[fpc-devel] serial under linux, SerOpen blocks

2011-08-18 Thread Armin Diehl
I need some hint regarding opening a serial (ttyUSB) port using the unit serial. Minicom works fine under my user id. When i call SerOpen('/dev/ttyUSB0'), fpopen blocks forever. When i first start minicom on that port, SerOpen and all other functions of serial.pp works fine. ttyUSB0 is: crw-r

[fpc-devel] internal assembler, .text,.data,.bss

2011-02-13 Thread Armin Diehl
Start']; asm movl$.bss,%eax ret end; any hint on how to do this with the internal asm ? Thx -- ---- GrĂ¼sse Armin Diehl a...@ardiehl.de ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.o