It might be a permission problem.
In many cases where the error is "file not found" I actually find it as
something bad in the permission of the target file or directory.

Amir Eldor
Ubuntu-IL

On Tue, May 27, 2008 at 3:38 PM, vincent chan <[EMAIL PROTECTED]> wrote:

> Hi All,
>
> I wrote a programme to manage a block of shm about 1 or 2 months ago.It was
> all right.But it broken down when I run it at today.I checked and found the
> error was caused by the code as follow:
>
>         key_t shm_key = ftok(SHM_IDENTIFY,0);
>         if(shm_key == -1)
>         {
>                 perror("ftok error");
>                 return -1;
>         }
>
> error info:
>         ftok error: No such file or directory
>
> I have no idea about it at all,I didn't change my code,totally.and this is
> my ubuntu's version info:
>         Linux version 2.6.20-16-generic ([EMAIL PROTECTED]) (gcc version
> 4.1.2 (Ubuntu 4.1.2-0ubuntu4))
>         Ubuntu 7.04
>
> I wonder if the reason is the update?
>
> Regards,
> Vincent
>
>
> --
> loco-contacts mailing list
> [email protected]
> https://lists.ubuntu.com/mailman/listinfo/loco-contacts
>
>
-- 
loco-contacts mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/loco-contacts

Reply via email to