From owner-freebsd-questions@FreeBSD.ORG Thu Dec 15 21:41:44 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CACC616A41F for ; Thu, 15 Dec 2005 21:41:44 +0000 (GMT) (envelope-from chand0s@list.ru) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 578CE43D80 for ; Thu, 15 Dec 2005 21:41:36 +0000 (GMT) (envelope-from chand0s@list.ru) Received: from [213.242.10.70] (port=49554 helo=lazy.lazy.org) by mx1.mail.ru with asmtp id 1En0qy-000Jpj-00 for freebsd-questions@freebsd.org; Fri, 16 Dec 2005 00:41:34 +0300 To: "FreeBSD Questions" Date: Fri, 16 Dec 2005 00:41:20 +0300 From: "Vasilkov Vasily" Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.0 (Win32, build 7561) Subject: "fopen" call... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 21:41:44 -0000 Hi all.. this is the part of my source ************ FILE *source; source = fopen("/home/user/test.c", "r"); if (source) { printf("fopen error"); exit(0); }; ************ file "/home/user/test.c" exists and its access mode is 777..., but when I run program, I get "fopen error" message... Can anybody explain me this subj?