From owner-freebsd-current@freebsd.org Wed Jul 8 19:18:02 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 422B2996547 for ; Wed, 8 Jul 2015 19:18:02 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from mail-yk0-f182.google.com (mail-yk0-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 07B8118E2 for ; Wed, 8 Jul 2015 19:18:01 +0000 (UTC) (envelope-from dfr@rabson.org) Received: by ykey15 with SMTP id y15so20316195yke.3 for ; Wed, 08 Jul 2015 12:17:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=/CWqVgZcX3sFkmQMvfEtq/s0vRFYtkmsZQS2DmW21u8=; b=bMPZEaP8domdbxGCdGK7sShaz5ae2v1yRsjtgiE51hvFGvDbzsdRT1JcKjyEmKvBIo fRwuhthSQXIRh3Yv7DTckO0Jdi7vf7htPjDspYtU8FZ4VJ9NtetFAJgU8IPDDPlcRIqW MGYB4Buf/G3FmlrvcDlh0fs6S9JEde2ZTZ/aFxzEh2Wn/aQzEH+cEkZ/hTR9amSTseNg 9xNJQsTxB2dZcw+UB/D5LfsxCI+5xIOAMHzN7Oiv/NY2gSc2FzQ3DB/JxcQqZcGaoPx3 cVznQMP46j7S/ds/ra9vJSW9sWw6nkkk435SJqKKRcHunszHaIW96xGmQNfTewsZJtWX QVSA== X-Gm-Message-State: ALoCoQm2moiyprfQ3SkZy8QVrVIhpnINHjuEvg5tz2ZEgevn+GfS13zhO49u4jy4ofRoO0Uz17jc MIME-Version: 1.0 X-Received: by 10.129.101.135 with SMTP id z129mr12599411ywb.81.1436383075182; Wed, 08 Jul 2015 12:17:55 -0700 (PDT) Received: by 10.37.36.74 with HTTP; Wed, 8 Jul 2015 12:17:55 -0700 (PDT) In-Reply-To: <201507081616.t68GGcY9047713@dyslexicfish.net> References: <201507072241.t67MfsX5085860@hergotha.csail.mit.edu> <94BCDA65-5B86-4329-A312-4CB16E847B69@dons.net.au> <201507081616.t68GGcY9047713@dyslexicfish.net> Date: Wed, 8 Jul 2015 20:17:55 +0100 Message-ID: Subject: Re: gettimeofday((void *)-1, NULL) implicates core dump on recent FreeBSD 11-CURRENT From: Doug Rabson To: Jamie Landeg-Jones Cc: FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2015 19:18:02 -0000 As far as I can tell, POSIX doesn't require either EFAULT or any other behaviour - the text in http://www.open-std.org/jtc1/sc22/open/n4217.pdf just says, "No errors are defined". Our man page is wrong and any real program which relies on gettimeofday not faulting when given bad inputs is broken. On 8 July 2015 at 17:16, Jamie Landeg-Jones wrote: > Oliver Pinter wrote: > > > On 7/8/15, O'Connor, Daniel wrote: > > > > > > In defence of the test, the man page says it can return EFAULT. > > > > That's fine, but why changed the behaviour since 2015. May 27.? I have > > an older FreeBSD/HardenedBSD install, where this test passing. See > > some previous email in this thread. > > That's why it's called 'undefined' :-) > > Pedantically, being 'undefined', it's behaviour hasn't changed at all! > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >