linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] getrlimit.2: Mention unit used by RLIMIT_CORE and RLIMIT_FSIZE
@ 2017-09-01 20:27 Thiago Jung Bauermann
       [not found] ` <20170901202743.9678-1-bauerman-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Thiago Jung Bauermann @ 2017-09-01 20:27 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Thiago Jung Bauermann

It would have been obvious that these limits are in bytes, except that
"ulimit -a" in at least bash, dash and zsh says that they're in blocks.
This confused me, so I had to check the kernel source code.

My understanding is that they are indeed in bytes, so mention this
information in the man page.

Signed-off-by: Thiago Jung Bauermann <bauerman-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
 man2/getrlimit.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man2/getrlimit.2 b/man2/getrlimit.2
index 84f04d695ea2..f2c5297526d7 100644
--- a/man2/getrlimit.2
+++ b/man2/getrlimit.2
@@ -150,7 +150,7 @@ This is the maximum size of a
 .I core
 file (see
 .BR core (5))
-that the process may dump.
+in bytes that the process may dump.
 When 0 no core dump files are created.
 When nonzero, larger dumps are truncated to this size.
 .TP
@@ -187,7 +187,7 @@ which fail with the error
 upon encountering the soft limit of this resource.
 .TP
 .B RLIMIT_FSIZE
-This is the maximum size of files that the process may create.
+This is the maximum size in bytes of files that the process may create.
 Attempts to extend a file beyond this limit result in delivery of a
 .B SIGXFSZ
 signal.

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] getrlimit.2: Mention unit used by RLIMIT_CORE and RLIMIT_FSIZE
       [not found] ` <20170901202743.9678-1-bauerman-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
@ 2017-09-03  0:49   ` Michael Kerrisk (man-pages)
       [not found]     ` <07aa1031-91b5-f1ca-b23f-858c06c3a9f8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-09-03  0:49 UTC (permalink / raw)
  To: Thiago Jung Bauermann
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Thiago,

On 09/01/2017 10:27 PM, Thiago Jung Bauermann wrote:
> It would have been obvious that these limits are in bytes, except that
> "ulimit -a" in at least bash, dash and zsh says that they're in blocks.
> This confused me, so I had to check the kernel source code.
> 
> My understanding is that they are indeed in bytes, so mention this
> information in the man page.

Thanks. That was a silly deficiency on the man page. Patch applied.
I also fixed a similar problem with RLIMIT_DATA.

Cheers,

Michael


> Signed-off-by: Thiago Jung Bauermann <bauerman-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> ---
>  man2/getrlimit.2 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/man2/getrlimit.2 b/man2/getrlimit.2
> index 84f04d695ea2..f2c5297526d7 100644
> --- a/man2/getrlimit.2
> +++ b/man2/getrlimit.2
> @@ -150,7 +150,7 @@ This is the maximum size of a
>  .I core
>  file (see
>  .BR core (5))
> -that the process may dump.
> +in bytes that the process may dump.
>  When 0 no core dump files are created.
>  When nonzero, larger dumps are truncated to this size.
>  .TP
> @@ -187,7 +187,7 @@ which fail with the error
>  upon encountering the soft limit of this resource.
>  .TP
>  .B RLIMIT_FSIZE
> -This is the maximum size of files that the process may create.
> +This is the maximum size in bytes of files that the process may create.
>  Attempts to extend a file beyond this limit result in delivery of a
>  .B SIGXFSZ
>  signal.
> 
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] getrlimit.2: Mention unit used by RLIMIT_CORE and RLIMIT_FSIZE
       [not found]     ` <07aa1031-91b5-f1ca-b23f-858c06c3a9f8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-09-03  2:24       ` Thiago Jung Bauermann
       [not found]         ` <87fuc4semh.fsf-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Thiago Jung Bauermann @ 2017-09-03  2:24 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA


Michael Kerrisk (man-pages) <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hello Thiago,
>
> On 09/01/2017 10:27 PM, Thiago Jung Bauermann wrote:
>> It would have been obvious that these limits are in bytes, except that
>> "ulimit -a" in at least bash, dash and zsh says that they're in blocks.
>> This confused me, so I had to check the kernel source code.
>> 
>> My understanding is that they are indeed in bytes, so mention this
>> information in the man page.
>
> Thanks. That was a silly deficiency on the man page. Patch applied.

Thanks!

> I also fixed a similar problem with RLIMIT_DATA.

I didn't occur to me to check the other resources. Thanks for doing that.

-- 
Thiago Jung Bauermann
IBM Linux Technology Center

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] getrlimit.2: Mention unit used by RLIMIT_CORE and RLIMIT_FSIZE
       [not found]         ` <87fuc4semh.fsf-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
@ 2017-09-03 11:32           ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-09-03 11:32 UTC (permalink / raw)
  To: Thiago Jung Bauermann
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 09/03/2017 04:24 AM, Thiago Jung Bauermann wrote:
> 
> Michael Kerrisk (man-pages) <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> 
>> Hello Thiago,
>>
>> On 09/01/2017 10:27 PM, Thiago Jung Bauermann wrote:
>>> It would have been obvious that these limits are in bytes, except that
>>> "ulimit -a" in at least bash, dash and zsh says that they're in blocks.
>>> This confused me, so I had to check the kernel source code.
>>>
>>> My understanding is that they are indeed in bytes, so mention this
>>> information in the man page.
>>
>> Thanks. That was a silly deficiency on the man page. Patch applied.
> 
> Thanks!
> 
>> I also fixed a similar problem with RLIMIT_DATA.
> 
> I didn't occur to me to check the other resources. Thanks for doing that.

No worries. 

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-03 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-01 20:27 [PATCH] getrlimit.2: Mention unit used by RLIMIT_CORE and RLIMIT_FSIZE Thiago Jung Bauermann
     [not found] ` <20170901202743.9678-1-bauerman-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2017-09-03  0:49   ` Michael Kerrisk (man-pages)
     [not found]     ` <07aa1031-91b5-f1ca-b23f-858c06c3a9f8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-09-03  2:24       ` Thiago Jung Bauermann
     [not found]         ` <87fuc4semh.fsf-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2017-09-03 11:32           ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).