NetBSD Problem Report #44927
From jruohone@gmail.com Mon May 2 16:34:57 2011
Return-Path: <jruohone@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 8D6BC63B8AC
for <gnats-bugs@gnats.netbsd.org>; Mon, 2 May 2011 16:34:57 +0000 (UTC)
Message-Id: <20110502163449.E0D8656C5@marx.bitnet>
Date: Mon, 2 May 2011 19:34:49 +0300 (EEST)
From: Jukka Ruohonen <jruohonen@iki.fi>
Sender: a b <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: setitimer(2) may fail with EPERM
X-Send-Pr-Version: 3.95
>Number: 44927
>Category: standards
>Synopsis: setitimer(2) may fail with EPERM
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: standards-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 02 16:35:00 +0000 2011
>Closed-Date: Sat Mar 24 16:02:49 +0000 2012
>Last-Modified: Sat Mar 24 16:02:49 +0000 2012
>Originator: Jukka Ruohonen
>Release: NetBSD 5.99.51
>Organization:
-
>Environment:
>Description:
The setitimer(2) syscall may fail with EPERM.
>How-To-Repeat:
The following code fails correctly with EFAULT on Linux, but NetBSD
fails with EPERM for some reason.
#include <sys/time.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
int
main(void)
{
int rv;
errno = 0;
rv = setitimer(ITIMER_REAL, (void*)-1, NULL);
(void)printf("rv = %d, errno = %s\n", rv, strerror(errno));
return 0;
}
>Fix:
Not investigated.
>Release-Note:
>Audit-Trail:
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44927 CVS commit: src/sys/kern
Date: Thu, 22 Mar 2012 17:46:07 +0000
Module Name: src
Committed By: dholland
Date: Thu Mar 22 17:46:07 UTC 2012
Modified Files:
src/sys/kern: kern_time.c
Log Message:
Misplaced parenthesis; fixes PR 44927
To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/kern/kern_time.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44927 CVS commit: src/tests/lib/libc/sys
Date: Thu, 22 Mar 2012 14:20:46 -0400
Module Name: src
Committed By: christos
Date: Thu Mar 22 18:20:46 UTC 2012
Modified Files:
src/tests/lib/libc/sys: t_getitimer.c
Log Message:
dholland fixed PR/44927
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_getitimer.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 24 Mar 2012 16:02:49 +0000
State-Changed-Why:
fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.