mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix various minor problems and update the documentation (#237)
These are minor fixes I've accumulated over time. The following
changes are somewhat notable:
- Added a missing entry for 'typeset -s' to the man page.
- Add strftime(3) to the 'see also' section. This and the date(1)
addition are meant to add onto the documentation for 'printf %T'.
- Removed the man page the entry for ksh reading $PWD/.profile on
login. That feature was removed in commit aa7713c2.
- Added date(1) to the 'see also' section of the man page.
- Note that the 'hash' command can be used instead of 'alias -t' to
workaround one of the caveats listed in the man page.
- Use an 'out of memory' error message rather than 'out of space'
when memory allocation fails.
- Replaced backticks with quotes in some places for consistency.
- Added missing documentation for the %P date format.
- Added missing documentation for the printf %Q and %p formats
(backported from ksh2020: https://github.com/att/ast/pull/1032).
- The comments that show each builtin's options have been updated.
This commit is contained in:
parent
2d7e9a0d6d
commit
814b5c6890
151 changed files with 378 additions and 378 deletions
|
|
@ -125,7 +125,7 @@ Returns the error message text corresponding to the
|
|||
.Ss "char* strerror(int \fIerrno\fP)"
|
||||
Equivalent to fmterror(\fIerrno\fP).
|
||||
.Ss "int strgrpmatch(const char* \fIstring\fP, const char* \fIpattern\fP, int* \fIsub\fP, int \fInsub\fP, int \fIflags\fP)"
|
||||
Matches the null terminated \fIstring\fP against the null terminated
|
||||
Matches the null-terminated \fIstring\fP against the null-terminated
|
||||
.BR ksh (1)
|
||||
augmented \fIpattern\fP.
|
||||
If \fIsub\fP!=0 then \fIsub\fP[2*\fIi\fP] is set to the start offset and \fIsub\fP[2*\fIi\fP+1] is set
|
||||
|
|
|
|||
|
|
@ -592,7 +592,7 @@ Explicit calls to this routine are not necessary as hash tables
|
|||
are automatically resized.
|
||||
.TP
|
||||
.L "int strhash(char* name)"
|
||||
Hashes the null terminated character string
|
||||
Hashes the null-terminated character string
|
||||
.L name
|
||||
using a linear congruent pseudo-random number generator algorithm
|
||||
and returns a non-negative
|
||||
|
|
|
|||
|
|
@ -1545,7 +1545,7 @@ for indicating the type of a scanned element.
|
|||
For example, \f5%hd\fP means scanning a \f5short int\fP.
|
||||
The flags \f5ll\fP and \f5L\fP mean respectively scanning an
|
||||
integer or a floating point value with largest size
|
||||
(i.e, \f5Sflong_t\fP or \f5Sfdouble_t\fP).
|
||||
(i.e., \f5Sflong_t\fP or \f5Sfdouble_t\fP).
|
||||
.PP
|
||||
The \f5%i\fP, \f5%d\fP and \f5%u\fP patterns scan numbers in bases
|
||||
from \f52\fP to \f564\fP.
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ strcopy \- copy strings
|
|||
.L "char* strcopy(char* a, char* b)"
|
||||
.SH DESCRIPTION
|
||||
.I strcopy
|
||||
copies the nul-terminated string
|
||||
copies the null-terminated string
|
||||
.I b
|
||||
into
|
||||
.IR a .
|
||||
|
|
|
|||
|
|
@ -38,12 +38,12 @@
|
|||
..
|
||||
.TH STRDUP 3
|
||||
.SH NAME
|
||||
strdup \- duplicate nul-terminated string
|
||||
strdup \- duplicate null-terminated string
|
||||
.SH SYNOPSIS
|
||||
.L "char* strdup(char* s)"
|
||||
.SH DESCRIPTION
|
||||
.I strdup
|
||||
copies the nul-terminated string
|
||||
copies the null-terminated string
|
||||
.I s
|
||||
to a new location provided by
|
||||
.IR malloc (3)
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ stresc \- convert character constants in string
|
|||
.I stresc
|
||||
converts
|
||||
.L \e
|
||||
character constant expressions in the nul-terminated string
|
||||
character constant expressions in the null-terminated string
|
||||
.I s
|
||||
in place and returns the length of the converted
|
||||
.IR s .
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ streval \- long integer arithmetic expression evaluator
|
|||
.L "long streval(char* s, char** e, long (*conv)(char* cs, char** ce))"
|
||||
.SH DESCRIPTION
|
||||
.I streval
|
||||
evaluates the long integer arithmetic expression in the nul-terminated string
|
||||
evaluates the long integer arithmetic expression in the null-terminated string
|
||||
.I s
|
||||
and returns the result.
|
||||
If
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ stropt \- table driven option expression evaluator
|
|||
.L " void* a)"
|
||||
.SH DESCRIPTION
|
||||
.I stropt
|
||||
parses option expressions in the nul-terminated string
|
||||
parses option expressions in the null-terminated string
|
||||
.I s
|
||||
using the option names in
|
||||
.IR tab .
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ strperm \- evaluate file permission expression
|
|||
.L "int strperm(char* s, char** e, int p)"
|
||||
.SH DESCRIPTION
|
||||
.I strperm
|
||||
applies a file permission expression in the nul-terminated string
|
||||
applies a file permission expression in the null-terminated string
|
||||
.I s
|
||||
to the initial file permission mask
|
||||
.IR p .
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ strtape \- convert string to tape device pathname
|
|||
.L "char* strtape(char* s, char** e)"
|
||||
.SH DESCRIPTION
|
||||
.I strtape
|
||||
converts the generic tape device specification in the nul-terminated string
|
||||
converts the generic tape device specification in the null-terminated string
|
||||
.I s
|
||||
to a local tape device pathname.
|
||||
A pointer to the device pathname is returned.
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ strton \- convert string to long integer
|
|||
.L "long strton(char* s, char** e)"
|
||||
.SH DESCRIPTION
|
||||
.I strton
|
||||
converts the nul-terminated string
|
||||
converts the null-terminated string
|
||||
.I s
|
||||
to a long integer.
|
||||
If
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue