Subject: lib/2804: Anachronism in getrlimit(2)
To: None <gnats-bugs@gnats.netbsd.org>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 10/04/1996 01:54:56
>Number:         2804
>Category:       lib
>Synopsis:       Anachronism in getrlimit(2)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct  3 23:05:02 1996
>Last-Modified:
>Originator:     Mike Long <mike.long@analog.com>
>Organization:
	Evil Scientists for a Better Tomorrow
>Release:        1.2_BETA
>Environment:
System: NetBSD azathoth 1.2_BETA NetBSD 1.2_BETA (AZATHOTH) #100: Mon Sep 2 21:56:30 EDT 1996 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386

>Description:
	NetBSD's /bin/sh has the ulimit command to manipulate resource
limits, but getrlimit(2) states otherwise.

>How-To-Repeat:
	man getrlimit
>Fix:
	Apply this patch:

*** /usr/src/lib/libc/sys/getrlimit.2~	Mon Dec 11 15:25:28 1995
--- /usr/src/lib/libc/sys/getrlimit.2	Fri Oct  4 01:11:36 1996
***************
*** 174,190 ****
  .Sh SEE ALSO
  .Xr csh 1 ,
  .Xr quota 2 ,
  .Xr sigaction 2 ,
  .Xr sigaltstack 2 ,
  .Xr sysctl 3
- .Sh BUGS
- There should be 
- .Ic limit
- and
- .Ic unlimit
- commands in
- .Xr sh 1
- as well as in
- .Xr csh .
  .Sh HISTORY
  The
--- 174,182 ----
  .Sh SEE ALSO
  .Xr csh 1 ,
+ .Xr sh 1 ,
  .Xr quota 2 ,
  .Xr sigaction 2 ,
  .Xr sigaltstack 2 ,
  .Xr sysctl 3
  .Sh HISTORY
  The


>Audit-Trail:
>Unformatted: