From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 03:16:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84D891065676 for ; Sun, 28 Dec 2008 03:16:42 +0000 (UTC) (envelope-from mmitar@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA868FC08 for ; Sun, 28 Dec 2008 03:16:42 +0000 (UTC) (envelope-from mmitar@gmail.com) Received: by an-out-0708.google.com with SMTP id c2so1649340anc.13 for ; Sat, 27 Dec 2008 19:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BgKa864/ckyyDnqJcPFhUYwVLy/f/6e/1ZLE9lRMHhk=; b=IUYtOMMkB866jFP4y3ChanrXM/8HnEeenjm+L8o+lRQqRntP1PIWXzydPn7ZkaYWgb 7FQxlqL6nx7uwI1NiSPI92jZyPSyy89ATwbHTp1lV6pmFqvSA3YKuXIPIEzfgFBnq5jF Y5ENPgvFFQI74O86gwa5OfsB9VKl1cEJFOsZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=K0wekplPIgyv4yMAkzht2TzlbkOCKHcQsznVp5vGtALGWgByBYS6jeP0emaREC3NQG foVZx6viA7R9W48SKoOMT6XsS6qT6WJzwQ71ayq7GZ78EmIeiiD07XCEcZN1niNm6gMT FuzkQ0p1YPBd5pXH7nVRL8WhkzhcgEcT6PCS8= Received: by 10.100.110.15 with SMTP id i15mr7031881anc.151.1230434201626; Sat, 27 Dec 2008 19:16:41 -0800 (PST) Received: by 10.100.6.8 with HTTP; Sat, 27 Dec 2008 19:16:41 -0800 (PST) Message-ID: Date: Sun, 28 Dec 2008 04:16:41 +0100 From: Mitar To: Mel In-Reply-To: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org Subject: Re: Open with O_APPEND fails 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: Sun, 28 Dec 2008 03:16:42 -0000 Hi! On Sun, Dec 28, 2008 at 1:17 AM, Mel wrote: > 15 fd = open(fname, O_WRONLY|O_APPEND); Try only with O_APPEND, without O_WRONLY. I have just found a bug report about that: https://issues.apache.org/bugzilla/show_bug.cgi?id=45923 But the question remains: why this fails? It works on Linux, as it is seen from bug report it works also on FreeBSD 6.x, why it does not work anymore on FreeBSD 7.x? Is it correct that it does not work? I have not found anywhere written that O_WRONLY should be specified with O_APPEND. Mitar