View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001418 | 1003.1(2016/18)/Issue7+TC2 | Shell and Utilities | public | 2020-11-06 10:32 | 2024-06-11 09:08 |
Reporter | geoffclare | Assigned To | |||
Priority | normal | Severity | Comment | Type | Enhancement Request |
Status | Closed | Resolution | Accepted As Marked | ||
Name | Geoff Clare | ||||
Organization | The Open Group | ||||
User Reference | |||||
Section | ulimit | ||||
Page Number | 3326-3327 | ||||
Line Number | 111991-112065 | ||||
Interp Status | --- | ||||
Final Accepted Text | See 0001418:0005254. | ||||
Summary | 0001418: Add options to ulimit to match get/setrlimit() | ||||
Description | Currently the ulimit utility only provides the means to query and set the RLIMIT_FSIZE soft limit. It should be able to query and set the hard limit, and also the soft and hard limits for the other resources that are specified for getrlimit() and setrlimit(). The -a option would also be useful. The proposed additions are widely supported. | ||||
Desired Action | Replace the NAME, SYNOPSIS, DESCRIPTION, OPTIONS, and OPERANDS sections on the ulimit page with: NAME ulimit -- report or set resource limits SYNOPSIS [XSI]ulimit [-H|-S] -a DESCRIPTION The ulimit utility shall report or set the resource limits in effect in the process in which it is executed. OPTIONS The ulimit utility shall conform to [xref to XBD 12.2]. OPERANDS The following operand shall be supported: Replace the STDOUT section on the ulimit page with: The standard output shall be used when no newlimit operand is present. Replace the APPLICATION USAGE, EXAMPLES, and RATIONALE sections on the ulimit page with: APPLICATION USAGE Since ulimit affects the current shell execution environment, it is always provided as a shell regular built-in. If it is called with an operand in a separate utility execution environment, such as one of the following:nohup ulimit -f 10000 env ulimit -S -c 10000it does not affect the limit(s) in the caller's environment. EXAMPLES Set the hard and soft file size limits to 51200 bytes:ulimit -f 100 RATIONALE The ulimit utility has no equivalent of the special values RLIM_SAVED_MAX and RLIM_SAVED_CUR returned by getrlimit(), as ulimit is required to be able to output, and accept as input, all numeric limit values supported by the system. Add XCU ulimit to the SEE ALSO section on the getrlimit() page. | ||||
Tags | issue8 |
related to | 0001669 | Closed | Issue 8 drafts | Make the ulimit utility consistent with [gs]etrlimit() wrt XSI |
|
Updated proposal... Replace the NAME, SYNOPSIS, DESCRIPTION, OPTIONS, and OPERANDS sections on the ulimit page with: NAME ulimit -- report or set resource limits SYNOPSIS [XSI]ulimit [-H|-S] -a DESCRIPTION The ulimit utility shall report or set the resource limits in effect in the process in which it is executed. OPTIONS The ulimit utility shall conform to [xref to XBD 12.2], except that: OPERANDS The following operand shall be supported: Replace the STDOUT section on the ulimit page with: The standard output shall be used when no newlimit operand is present. Replace the APPLICATION USAGE, EXAMPLES, and RATIONALE sections on the ulimit page with: APPLICATION USAGE Since ulimit affects the current shell execution environment, it is always provided as a shell regular built-in. If it is called with an operand in a separate utility execution environment, such as one of the following:nohup ulimit -f 10000 env ulimit -S -c 10000it does not affect the limit(s) in the caller's environment. EXAMPLES Set the hard and soft file size limits to 51200 bytes:ulimit -f 100 RATIONALE The ulimit utility has no equivalent of the special values RLIM_SAVED_MAX and RLIM_SAVED_CUR returned by getrlimit(), as ulimit is required to be able to output, and accept as input, all numeric limit values supported by the system. Add XCU ulimit to the SEE ALSO section on the getrlimit() page. |
|
Following discussions on the mailing list, I have updated 0001418:0005110 as follows: * Applications are required to specify each option separately (as for c99). * Unspecified behaviour if a resource-selection option is repeated. * Output lines only need to include the units where the corresponding option description specifies the units to be used. One issue that remains is whether to keep the current requirement for multiple resource-selection options with no newlimit operand or to make the behaviour unspecified. This needs to be decided in a teleconference. |
|
Replace the NAME, SYNOPSIS, DESCRIPTION, OPTIONS, and OPERANDS sections on the ulimit page with: NAME ulimit -- report or set resource limits SYNOPSIS [XSI]ulimit [-H|-S] -a DESCRIPTION The ulimit utility shall report or set the resource limits in effect in the process in which it is executed. OPTIONS The ulimit utility shall conform to [xref to XBD 12.2], except that: OPERANDS The following operand shall be supported: Replace the STDOUT section on the ulimit page with: The standard output shall be used when no newlimit operand is present. Replace the APPLICATION USAGE, EXAMPLES, and RATIONALE sections on the ulimit page with: APPLICATION USAGE Since ulimit affects the current shell execution environment, it is always provided as a shell regular built-in. If it is called with an operand in a separate utility execution environment, such as one of the following:nohup ulimit -f 10000 env ulimit -S -c 10000it does not affect the limit(s) in the caller's environment. EXAMPLES Set the hard and soft file size limits to 51200 bytes:ulimit -f 100 RATIONALE The ulimit utility has no equivalent of the special values RLIM_SAVED_MAX and RLIM_SAVED_CUR returned by getrlimit(), as ulimit is required to be able to output, and accept as input, all numeric limit values supported by the system. Add XCU ulimit to the SEE ALSO section on the getrlimit() page. |
|
0001418:0005254 was updated to change:If no options other than -H, -S, or -a are specified, the behavior shall be as if the -f option was (also) specified.to: If no options other than -H or -S are specified, the behavior shall be as if the -f option was (also) specified. |
|
When applying this bug I encountered a minor conflict with bug 0000854, which adds a new first paragraph to the ulimit APPLICATION USAGE. I kept that new paragraph and replaced the rest of APPLICATION USAGE with the content from 0001418:0005254. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-11-06 10:32 | geoffclare | New Issue | |
2020-11-06 10:32 | geoffclare | Name | => Geoff Clare |
2020-11-06 10:32 | geoffclare | Organization | => The Open Group |
2020-11-06 10:32 | geoffclare | Section | => ulimit |
2020-11-06 10:32 | geoffclare | Page Number | => 3326-3327 |
2020-11-06 10:32 | geoffclare | Line Number | => 111991-112065 |
2020-11-06 10:32 | geoffclare | Interp Status | => --- |
2020-11-09 10:38 | geoffclare | Note Added: 0005110 | |
2020-11-09 10:44 | geoffclare | Note Edited: 0005110 | |
2020-11-09 10:49 | geoffclare | Note Edited: 0005110 | |
2020-11-24 10:03 | geoffclare | Note Edited: 0005110 | |
2020-11-24 10:04 | geoffclare | Note Edited: 0005110 | |
2020-11-24 10:09 | geoffclare | Note Added: 0005121 | |
2020-11-24 10:13 | geoffclare | Note Edited: 0005121 | |
2021-03-01 16:41 | geoffclare | Note Added: 0005254 | |
2021-03-01 16:44 | Don Cragun | Final Accepted Text | => See 0001418:0005254. |
2021-03-01 16:44 | Don Cragun | Status | New => Resolved |
2021-03-01 16:44 | Don Cragun | Resolution | Open => Accepted As Marked |
2021-03-01 16:45 | Don Cragun | Tag Attached: issue8 | |
2021-03-04 16:16 | geoffclare | Note Edited: 0005254 | |
2021-03-04 16:17 | geoffclare | Note Edited: 0005254 | |
2021-03-04 16:24 | Don Cragun | Note Added: 0005255 | |
2021-03-19 09:47 | geoffclare | Note Added: 0005286 | |
2021-03-19 09:47 | geoffclare | Status | Resolved => Applied |
2023-04-17 14:23 | geoffclare | Relationship added | related to 0001669 |
2024-06-11 09:08 | agadmin | Status | Applied => Closed |