Re: open with O_WRONLY and mmap with PROT_WRITE fails

2005-01-31 Thread Muli Ben-Yehuda
On Mon, Jan 31, 2005 at 01:33:48PM +0200, Shachar Shemesh wrote: > Muli Ben-Yehuda wrote: > > >what is errno? > > > > > EPERM I'm having trouble reproducing this - can you post a short test that exhibits the problem? also, which kernel version are you using? > Huh? The CPU can enforce that, ca

Re: open with O_WRONLY and mmap with PROT_WRITE fails

2005-01-31 Thread Shachar Shemesh
Muli Ben-Yehuda wrote: On Mon, Jan 31, 2005 at 12:36:44PM +0200, Shachar Shemesh wrote: Now here's the strange bit. If I open the file as "O_RDWR|O_CREAT, this scheme works. The man page for mmap says that the prot argument "must not conflict with the open mode of the file", but surely ther

Re: open with O_WRONLY and mmap with PROT_WRITE fails

2005-01-31 Thread Muli Ben-Yehuda
On Mon, Jan 31, 2005 at 12:36:44PM +0200, Shachar Shemesh wrote: > Now here's the strange bit. If I open the file as "O_RDWR|O_CREAT, this > scheme works. The man page for mmap says that the prot argument "must > not conflict with the open mode of the file", but surely there is no > conflict

open with O_WRONLY and mmap with PROT_WRITE fails

2005-01-31 Thread Shachar Shemesh
Hi list, Object: I'm trying to create a file using mmap. Let's assume, for the sake of discussion, that the file needs to be 42 bytes long. Method: I'm opening a standard file with O_WRONLY|O_CREAT. I seek into the just created file 41 bytes, and write there one byte of random data. Then I try t

"Open with"

2000-12-09 Thread David Hananel
Hello I have RH 6.2. When I open a program with "Open with" I don't have any programs there, LIke I had at RH 6.0. How can I fix it? David = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "

Defualt "open with"

1999-04-22 Thread nir
Hi, How do i set the system to open a specific file by a specific application? for example, i'm using KDE 1.1 and want that pictures will be open by Kview and not StarOffice suite. Waiting for answer, Nir.