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: problem with implementing mmap

2005-01-31 Thread Muli Ben-Yehuda
On Mon, Jan 31, 2005 at 04:22:35PM +0200, Pablo 'merKur' Kohan wrote: > If you want to provide the user with direct access to that memory, it's > fine. yes, that's the way to go. > Otherwise, you could implement some primitives in kernel space, and make > those accessible via ioctl. eek, please

Re: C++ problem

2005-01-31 Thread Oleg Goldshmidt
Shachar Shemesh <[EMAIL PROTECTED]> writes: > There is no difference between the first a() and the second > a(). Both are temporary variables of type a generated by an empty > constructor. Yes, there is a difference, and I suspect that is what you are missing. In the first case you create a temp

Re: C++ problem

2005-01-31 Thread voguemaster
Couple of points, 1. In normal circumstances the compiler automatically generates a bitwise copy constructor if none is present. This can be verified easily. Note that in this case, the copy ctor is declared but not implemented which means the compiler will not create a default copy ctor. (Myer

Re: child setitimer() alarm() doesn't work.

2005-01-31 Thread David Harel
While I wanted to object to your findings and restore the child code to use sigaction() as I originally wrote it, I also changed the pause() function with sigsuspend() as suggested. Surprisingly, everything started working correctly. That means that pause() causes problems. Any idea why? Still I do

Re: C++ problem

2005-01-31 Thread Shachar Shemesh
Oleg Goldshmidt wrote: Well, while it was making the round trip to the list and back, I also made a trip to the bookshelf to check myself. Item 15 of Scott Meyers's "Effective C++" confirms what I wrote: temps are const, and for the reasons I covered. It explicitly says that with a declaration like

Re: C++ problem

2005-01-31 Thread Oleg Goldshmidt
Shachar Shemesh <[EMAIL PROTECTED]> writes: > Oleg Goldshmidt wrote: > > >Oleg Goldshmidt <[EMAIL PROTECTED]> writes: > > > > > > >> I stand by my posting so far. > > > > >Well, while it was making the round trip to the list and back, I also > >made a trip to the bookshelf to check myself. Item

Re: ATM Direct

2005-01-31 Thread Danny Lieberman
eli Not. FastWeb in Italy is a joint ItalTel Cisco project offering a 10MB full symmetric connection - in Japan its a bit more expensive like $90/month - they realized there was untilized fiber to the curb and they sold the capacity instead in Israel Nezek laid fiber in Modiin and when they want

Re: ATM Direct

2005-01-31 Thread Eli Marmor
Danny Lieberman wrote: > Give me a break - $200/month? is "reasonable"? A 50% discount in comparison with current connections (FR, Sifranet) is not reasonable; It's amazing. But ***IN COMPARISON***. And the real "thieves" are the ISPs. You pay them TWICE as you pay Bezeq. > How about 60EU / mo

Re: ATM Direct

2005-01-31 Thread Danny Lieberman
eli Give me a break - $200/month? is "reasonable"? How about 60EU / month for 10 Mbit Metro Ethernet - if you live in Italy thats what you'll pay for FastWeb I think that Nezek is preparing the infrastructure for for IP TV so they can compete with HOT. It is not out of the goodness of their h

Re: ATM Direct

2005-01-31 Thread Eli Marmor
Gilad Ben-Yossef wrote: > > Eli Marmor wrote: > > Hi, > > > > Bezeq has a new service, called "ATM Direct" (not "ATM"). It is planned > > as the future main connection between ISPs and their business customers > > (instead of currently Frame-Relay). > > > > It ends with an Ethernet port (RJ-45). >

Re: ATM Direct

2005-01-31 Thread Eli Marmor
Ariel Biener wrote: > > On Monday 31 January 2005 16:59, Ariel Biener wrote: > > On Monday 31 January 2005 16:26, Eli Marmor wrote: > > > Bezeq has a new service, called "ATM Direct" (not "ATM"). It is planned > > > as the future main connection between ISPs and their business customers > > > (ins

Re: ATM Direct

2005-01-31 Thread Gilad Ben-Yossef
Eli Marmor wrote: Hi, Bezeq has a new service, called "ATM Direct" (not "ATM"). It is planned as the future main connection between ISPs and their business customers (instead of currently Frame-Relay). It ends with an Ethernet port (RJ-45). Sounds VERY interesting. Any tips on price/bandwidth/avail

Re: ATM Direct

2005-01-31 Thread Ariel Biener
On Monday 31 January 2005 16:59, Ariel Biener wrote: > On Monday 31 January 2005 16:26, Eli Marmor wrote: > > Hi Eli, > > >The ATM direct service is agnostic to the routing device you chose to > implement at your end, provided that whatever does your routing understands > Fast Ethernet/Etherne

Re: ATM Direct

2005-01-31 Thread Ariel Biener
On Monday 31 January 2005 16:26, Eli Marmor wrote: Hi Eli, The ATM direct service is agnostic to the routing device you chose to implement at your end, provided that whatever does your routing understands Fast Ethernet/Ethernet. You can use any routing platform you like, it has nothing

ATM Direct

2005-01-31 Thread Eli Marmor
Hi, Bezeq has a new service, called "ATM Direct" (not "ATM"). It is planned as the future main connection between ISPs and their business customers (instead of currently Frame-Relay). It ends with an Ethernet port (RJ-45). Do I need a Cisco router (with 2 or more RJ-45 ports) to connect it to my

smbfs does not respect permissions

2005-01-31 Thread Ami Chayun
Hi, I have a problem mounting Samba shares. We have a Samba server that serves several users. The users' fstab looks something like (where User is the share's name): //192.168.1.1/User /home//Documents smbfs user,auto,uid=,gid= 0 0 Unfortunately smbfs ignores uid and gid, and creates local

Re: problem with implementing mmap

2005-01-31 Thread Pablo 'merKur' Kohan
On Mon, 2005-01-31 at 15:22 +0200, Ilan Finci wrote: > I have some questions that might be the problem: > > 1. I didn't find anything about PageReserved(). Before I call the > remap_page_range function, I set: > vma->vm_flags = VM_RESERVED; > > is this the same? Ilan Hi ! No. It's not the same

Re: problem with implementing mmap

2005-01-31 Thread Ilan Finci
Hi, Not that I didn't read, I had a simple bug in my code :( (checked if the returned pointer is smaller then zero, forgetting that pointers are unsigned). In any case, I've read the discussion that Muli pointed to. First - it is about 2.6.x kernel and I use 2.4.21. Any way, most seems similar

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

Re: ls doesn't return on /var/www/html

2005-01-31 Thread Tzafrir Cohen
On Sun, Jan 30, 2005 at 05:56:51PM +0200, Nadav Har'El wrote: > On Sun, Jan 30, 2005, David Suna wrote about "ls doesn't return on > /var/www/html": > > I have a RedHat 9 system. Everything seems to be working fine. I tried > > to do an ls /var/www/html and the command hangs. Doing the same on

Re: problem with implementing mmap

2005-01-31 Thread Gilad Ben-Yossef
Ilan Finci wrote: Thanks all for the help. I've tried before to replace the MAP_PRIVATE to MAP_SHARED, but then the memory is mapped to 0x, and accessing the memory address later fails with segmentation fault (since when I add 0x24, it yields a pointer to 0x0023) Using the nopage op

Re: child setitimer() alarm() doesn't work.

2005-01-31 Thread Oron Peled
On Monday 31 January 2005 00:01, guy keren wrote: > > On Sun, 30 Jan 2005, David Harel wrote: > > signal(SIGALRM, sigalrmHandler); > > a-ha! and since when do you use 'signal' in a portable program, that's > supposed to have a persistent signal handler? > > read 'man 2 signal', and look at the