NetBSD Problem Report #51891

From www@NetBSD.org  Sun Jan 15 21:10:25 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F3DF87A20E
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 15 Jan 2017 21:10:24 +0000 (UTC)
Message-Id: <20170115211019.F390F7A28E@mollari.NetBSD.org>
Date: Sun, 15 Jan 2017 21:10:19 +0000 (UTC)
From: yaneurabeya@gmail.com
Reply-To: yaneurabeya@gmail.com
To: gnats-bugs@NetBSD.org
Subject: [PATCH] tests/lib/libc/sys/t_mmap: use sys/disklabel.h instead of machine/disklabel.h
X-Send-Pr-Version: www-1.0

>Number:         51891
>Category:       bin
>Synopsis:       [PATCH] tests/lib/libc/sys/t_mmap: use sys/disklabel.h instead of machine/disklabel.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 15 21:15:00 +0000 2017
>Closed-Date:    Mon Jan 16 18:43:45 +0000 2017
>Last-Modified:  Mon Jan 16 18:43:45 +0000 2017
>Originator:     Ngie Cooper
>Release:        7.0.2
>Organization:
>Environment:
n/a
>Description:
FreeBSD has a common copy of disklabel.h in sys/; use sys/disklabel.h instead of machine/disklabel.h for portability reasons.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/51891: [PATCH] tests/lib/libc/sys/t_mmap: use sys/disklabel.h
 instead of machine/disklabel.h
Date: Sun, 15 Jan 2017 13:20:10 -0800

 --Apple-Mail=_A3A828AB-FAF4-41D8-AD57-3B1E383D2289
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii

 Patch attached.
 -Ngie

 --Apple-Mail=_A3A828AB-FAF4-41D8-AD57-3B1E383D2289
 Content-Disposition: attachment;
 	filename=t_mmap-use-sys-disklabel-instead-of-machine-disklabel.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="t_mmap-use-sys-disklabel-instead-of-machine-disklabel.patch"
 Content-Transfer-Encoding: 7bit

 Index: lib/libc/sys/t_mmap.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/sys/t_mmap.c,v
 retrieving revision 1.11
 diff -u -r1.11 t_mmap.c
 --- lib/libc/sys/t_mmap.c	13 Jan 2017 20:43:11 -0000	1.11
 +++ lib/libc/sys/t_mmap.c	15 Jan 2017 21:08:25 -0000
 @@ -58,6 +58,7 @@
  __RCSID("$NetBSD: t_mmap.c,v 1.11 2017/01/13 20:43:11 christos Exp $");

  #include <sys/param.h>
 +#include <sys/disklabel.h>
  #include <sys/mman.h>
  #include <sys/stat.h>
  #include <sys/socket.h>
 @@ -73,7 +74,6 @@
  #include <string.h>
  #include <unistd.h>
  #include <paths.h>
 -#include <machine/disklabel.h>

  static long	page = 0;
  static char	path[] = "mmap";

 --Apple-Mail=_A3A828AB-FAF4-41D8-AD57-3B1E383D2289--

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51891 CVS commit: src/tests/lib/libc/sys
Date: Mon, 16 Jan 2017 11:31:05 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Mon Jan 16 16:31:05 UTC 2017

 Modified Files:
 	src/tests/lib/libc/sys: t_mmap.c

 Log Message:
 PR/51891: Ngie Cooper: use sys/disklabel.h instead of machine/disklabel.h


 To generate a diff of this commit:
 cvs rdiff -u -r1.11 -r1.12 src/tests/lib/libc/sys/t_mmap.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: snj@NetBSD.org
State-Changed-When: Mon, 16 Jan 2017 18:43:45 +0000
State-Changed-Why:
christos committed it. thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.