Re: [oi-dev] weird flock problem

2017-11-13 Thread Carsten Grzemba
On 13.11.17 16:26, Toomas Soome wrote: > > > > > > > > > > > > > > > On 13 Nov 2017, at 17:07, Till Wegmüller wrote: > > > > > > On 13.11.2017 15:59, Carsten Grzemba wrote: > > > > > > > > > > > On 13.11.17 15:16, *Bob Friesenhahn * > > > wrote: > > > > > > > On Mon, 13 No

Re: [oi-dev] weird flock problem

2017-11-13 Thread Toomas Soome
> On 13 Nov 2017, at 17:07, Till Wegmüller wrote: > > On 13.11.2017 15:59, Carsten Grzemba wrote: >> >> >> On 13.11.17 15:16, *Bob Friesenhahn * wrote: >>> On Mon, 13 Nov 2017, Carsten Grzemba wrote: This compiles on Openindiana without an error, but if it runs throws >>> the erro

Re: [oi-dev] weird flock problem

2017-11-13 Thread Udo Grabowski (IMK)
On 13/11/2017 16:07, Till Wegmüller wrote: On 13.11.2017 15:59, Carsten Grzemba wrote: On 13.11.17 15:16, *Bob Friesenhahn * wrote: On Mon, 13 Nov 2017, Carsten Grzemba wrote: This compiles on Openindiana without an error, but if it runs throws the error: Invalid argument (os error 22)

Re: [oi-dev] weird flock problem

2017-11-13 Thread Till Wegmüller
On 13.11.2017 15:59, Carsten Grzemba wrote: > > > On 13.11.17 15:16, *Bob Friesenhahn * wrote: >> On Mon, 13 Nov 2017, Carsten Grzemba wrote: >> > >> >This compiles on Openindiana without an error, but if it runs throws >> the error: Invalid argument (os error 22) >> > >> >If I copy this on Open

Re: [oi-dev] weird flock problem

2017-11-13 Thread Carsten Grzemba
On 13.11.17 15:16, Bob Friesenhahn wrote: > > On Mon, 13 Nov 2017, Carsten Grzemba wrote: > > > >This compiles on Openindiana without an error, but if it runs throws the > >error: Invalid argument (os error 22) > > > >If I copy this on Openindiana compiled code to Smartos it runs correctly.

Re: [oi-dev] weird flock problem

2017-11-13 Thread Bob Friesenhahn
On Mon, 13 Nov 2017, Carsten Grzemba wrote: This compiles on Openindiana without an error, but if it runs throws the error: Invalid argument (os error 22) If I copy this on Openindiana compiled code to Smartos it runs correctly. Are you using the same filesystem on both systems? For example

Re: [oi-dev] weird flock problem

2017-11-13 Thread Alexander Pyhalov
On 11/13/17 11:42 AM, Carsten Grzemba wrote: I ran in a problem with error message on openindiana: fcntl: Invalid argument I wrot short test program: #include #include #include #include int main() { struct flock64 l; FILE *fp; l.l_whence = SEEK_SET; l.l_start = 0; l.l_len = 0;

[oi-dev] weird flock problem

2017-11-13 Thread Carsten Grzemba
I ran in a problem with error message on openindiana: fcntl: Invalid argument I wrot short test program: #include #include #include #include int main() { struct flock64 l; FILE *fp; l.l_whence = SEEK_SET; l.l_start = 0; l.l_len = 0; l.l_sysid = 0; l.l_pid = 0; fp = fopen("flockte