NetBSD Problem Report #43909
From taca@hpmicro.a.back-street.net Mon Sep 27 01:58:12 2010
Return-Path: <taca@hpmicro.a.back-street.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id A925463B8DB
for <gnats-bugs@gnats.NetBSD.org>; Mon, 27 Sep 2010 01:58:12 +0000 (UTC)
Message-Id: <20100927015805.1C6E2126008@hpmicro.a.back-street.net>
Date: Mon, 27 Sep 2010 10:58:05 +0900 (JST)
From: taca@back-street.net
Reply-To: taca@back-street.net
To: gnats-bugs@gnats.NetBSD.org
Subject: getcap(3) is missing from curses(3).
X-Send-Pr-Version: 3.95
>Number: 43909
>Category: lib
>Synopsis: getcap(3) is missing from curses(3).
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 27 02:00:00 +0000 2010
>Closed-Date: Tue Jan 03 13:31:18 +0000 2017
>Last-Modified: Wed Jan 04 00:20:01 +0000 2017
>Originator: Takahiro Kambe
>Release: NetBSD 5.99.39
>Organization:
>Environment:
System: NetBSD hpmicro.a.back-street.net 5.99.39 NetBSD 5.99.39 (HPMICRO) #10: Sat Sep 25 13:03:13 JST 2010 taca@hpmicro.a.back-street.net:/var/obj/sys/arch/amd64/compile/HPMICRO amd64
Architecture: x86_64
Machine: amd64
>Description:
getcap(3) is described in curses(3) and <curses.h>, but there
is no function in libcuress.*.
>How-To-Repeat:
Compile and link a program which use getcap(3).
getcap-test.c:
--------------------------------------------------------------------
#include <curses.h>
int
main()
{
WINDOW *w;
char *s;
w = initscr();
if (w != NULL) {
s = getcap("cm");
printf("getcap(cm) %s NULL\n",
(s == NULL)? "returns": "dosen't return");
}
}
--------------------------------------------------------------------
% cc getcap-test.c -lcurses
It succeeds on NetBSD 4.0_STABLE or NetBSD 5.1_RC4 but on 5.99.39:
/var/tmp//ccXwtLxn.o: In function `main':
getcap-test.c:(.text+0x1e): undefined reference to `getcap'
>Fix:
I don't know getcap(3) is really deprecated or accidently
removed from curses(3). If former, we shoudn't have getcap()
in curses.h. I belive it was accidently removed...
>Release-Note:
>Audit-Trail:
From: jnemeth@victoria.tc.ca (John Nemeth)
To: gnats-bugs@NetBSD.org, lib-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org
Cc:
Subject: Re: lib/43909: getcap(3) is missing from curses(3).
Date: Mon, 27 Sep 2010 15:58:37 -0700
On Jan 12, 2:07pm, taca@hpmicro.a.back-street.net wrote:
}
} >Number: 43909
} >Category: lib
} >Synopsis: getcap(3) is missing from curses(3).
} >Originator: Takahiro Kambe
} >Release: NetBSD 5.99.39
}
} >Description:
} getcap(3) is described in curses(3) and <curses.h>, but there
} is no function in libcuress.*.
getcap(3) is a termcap related function. Since NetBSD now uses
termlib and not termcap, the manpage and the curses.h entries should
probably just be eliminated since getcap() doesn't make any sense in
a termlib world.
}-- End of excerpt from taca@hpmicro.a.back-street.net
State-Changed-From-To: open->closed
State-Changed-By: roy@NetBSD.org
State-Changed-When: Tue, 03 Jan 2017 13:31:18 +0000
State-Changed-Why:
getcap(3) references don't exist in curses(3) or curses.h on NetBSD-7.
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: lib/43909 (getcap(3) is missing from curses(3).)
Date: Wed, 4 Jan 2017 03:19:42 +0300
On Tue, Jan 03, 2017 at 13:31:18 +0000, roy@NetBSD.org wrote:
> State-Changed-From-To: open->closed
> State-Changed-By: roy@NetBSD.org
> State-Changed-When: Tue, 03 Jan 2017 13:31:18 +0000
> State-Changed-Why:
> getcap(3) references don't exist in curses(3) or curses.h on NetBSD-7.
But it hasn't been pulled up to -6 it seems.
-uwe
>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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.