| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
_(use space as padding), and 0(zero padding).
These GNU extensions are widely used ones that is worthy for us to
have.
Discussed with: stefanf, roam, -current
Approved by: murray
Prodded by: ports/72722, ports/72723
MFC After: 1 month
|
| |
|
|
|
|
| |
characters in the format string correctly.
|
| |
|
| |
|
|
|
|
|
|
|
| |
width smaller than 80 columns.
Thanks to Ruslan for an explanation of multiple ways to
achieve this.
|
|
|
|
|
|
|
|
|
| |
strftime(3) for IEEE Std 1003.1-2001 compliance and remove
excessive usage of the 'const' qualifier that was neither
present in the prototype in the publice header, nor in the
local prototype just above the function definition.
- Replace the K&R function definition with a ANSI-C one.
- Update the prototype of strftime(3) in its manual page.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
since they not allows POSIXly legal locale data. Currently, if relaxed form
POSIXly legal locale data will be used right now, some programs will be broken,
but it means that either locale data or programs must be fixed, not the library.
Introduce non-standard md_order (month/day order) locale field to be used later
via nl_langinfo(). Currently %EF and %Ef emulated using this field, but they
planned for remove in future in favour of nl_langinfo() test field.
Implement %F per POSIX
|
| |
|
| |
|
|
|
|
| |
originates
|
|
|
|
| |
Submitted by: ru
|
|
|
|
| |
Submitted by: ru (with modifications)
|
|
|
|
| |
More libraries manpages updates following.
|
|
|
|
|
|
|
|
|
| |
strftime(3), add another one. :) %z yields the local timezone's offset
in hours and minutes, as used in RFC822 headers. There's a precedence
for this in Lunux' libc, and Internet software (like Perl scripts)
start using it.
OKed by (wrt. the code freeze): jkh
|
|
|
|
|
|
| |
Add %EF (long months name / day order)
Check that O and E not intermixed
Add missing POSIX extension to example
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
|
| |
|
| |
|
|
|
|
|
| |
Added the conversion specifiers %g and %G, that are replaced
by the year which contains the greater part of the week in question.
|
|
|
|
|
|
|
|
| |
modify the original `no modifications' copyright message, and i've
included his mail into the source file.
The common localization functions between strptime(3) and strftime(3)
have been broken out into timelocal.[ch].
|
|
|
|
|
| |
Obtained from: fgets.3
Guided by: ISO C standard
|
|
|
|
|
|
|
| |
the original text plus a statement saying that if strftime fails,
the results are undefined.
Requested a long time ago by: bde
|
|
|
|
|
| |
set, as suggested by Garrett Wollman. This is more consistant with how
things like strncpy are done, as well as harder to confuse NUL and NULL.
|
|
|
|
| |
NUL terminate in the case of buffer overflow.
|
| |
|
|
|
|
|
|
| |
This commit covers the man pages for most of the ANSI library functions.
A few others such as strtol.3 have to mention <sys/types.h> because they
mix ANSI interfaces with less well designed extensions.
|
| |
|
|
|
|
|
|
|
|
|
| |
from the code in strftime.c . This affects both the library code
and all the commands using it (e.g. date +%s).
Note that %s is not required by ANSI, but we've already got it in 1.1.5.1.
Suggested by: luigi@labinfo.iet.unipi.it (Luigi Rizzo)
|
|
4.4. The code is almost identical to the 4.4 versions, but this organization
should make it easier to merge new versions in the future.
|