259128 |
09-Dec-2013 |
gjb |
Remove svn:mergeinfo from the releng/10.0 branch.
After branch creation from stable/10, the stable/10 branch mergeinfo was moved to the root of the branch.
Since there have not been any merges from stable/10 to releng/10.0 yet, we do not need to track any of the existing mergeinfo here.
Merges to releng/10.0 should now be done to the root of the branch.
For future branches during the release cycle, unless otherwise noted, this change will be done as part of the stable/ and releng/ branch creation.
Discussed with: peter Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
259065 |
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
248672 |
24-Mar-2013 |
dim |
Compile contrib/tzcode/stdtime/localtime.c with -fwrapv, since it relies on signed integer overflow wrapping. Otherwise mktime(3) and timegm(3) can hang, in case the timestamp passed in struct tm is not representable in a time_t. Specifically, any timestamp after 2038-01-19 03:14:07, in combination with a 32-bit time_t.
Note that it would be better to change the code to not rely on undefined behaviour, but it is contributed code, and it is not entirely trivial to fix the issue properly.
MFC after: 3 days
|
237573 |
25-Jun-2012 |
issyl0 |
Add more locale-specific functions to the relevant man pages and Makefiles: - libc/stdtime/strftime.3 - libc/stdtime/strptime.3 - libc/stdlib/strfmon.3
Reviewed by: theraven Approved by: gabor (mentor)
|
237211 |
17-Jun-2012 |
jilles |
libc: Reduce relative relocations in strftime().
|
227753 |
20-Nov-2011 |
theraven |
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
|
223758 |
04-Jul-2011 |
attilio |
With retirement of cpumask_t and usage of cpuset_t for representing a mask of CPUs, pc_other_cpus and pc_cpumask become highly inefficient.
Remove them and replace their usage with custom pc_cpuid magic (as, atm, pc_cpumask can be easilly represented by (1 << pc_cpuid) and pc_other_cpus by (all_cpus & ~(1 << pc_cpuid))).
This change is not targeted for MFC because of struct pcpu members removal and dependency by cpumask_t retirement.
MD review by: marcel, marius, alc Tested by: pluknet MD testing by: marcel, marius, gonzo, andreast
|
222813 |
07-Jun-2011 |
attilio |
etire the cpumask_t type and replace it with cpuset_t usage.
This is intended to fix the bug where cpu mask objects are capped to 32. MAXCPU, then, can now arbitrarely bumped to whatever value. Anyway, as long as several structures in the kernel are statically allocated and sized as MAXCPU, it is suggested to keep it as low as possible for the time being.
Technical notes on this commit itself: - More functions to handle with cpuset_t objects are introduced. The most notable are cpusetobj_ffs() (which calculates a ffs(3) for a cpuset_t object), cpusetobj_strprint() (which prepares a string representing a cpuset_t object) and cpusetobj_strscan() (which creates a valid cpuset_t starting from a string representation). - pc_cpumask and pc_other_cpus are target to be removed soon. With the moving from cpumask_t to cpuset_t they are now inefficient and not really useful. Anyway, for the time being, please note that access to pcpu datas is protected by sched_pin() in order to avoid migrating the CPU while reading more than one (possible) word - Please note that size of cpuset_t objects may differ between kernel and userland. While this is not directly related to the patch itself, it is good to understand that concept and possibly use the patch as a reference on how to deal with cpuset_t objects in userland, when accessing kernland members. - KTR_CPUMASK is changed and now is represented through a string, to be set as the example reported in NOTES.
Please additively note that no MAXCPU is bumped in this patch, but private testing has been done until to MAXCPU=128 on a real 8x8x2(htt) machine (amd64).
Please note that the FreeBSD version is not yet bumped because of the upcoming pcpu changes. However, note that this patch is not targeted for MFC.
People to thank for the time spent on this patch: - sbruno, pluknet and Nicholas Esborn (nick AT desert DOT net) tested several revision of the patches and really helped in improving stability of this work. - marius fixed several bugs in the sparc64 implementation and reviewed patches related to ktr. - jeff and jhb discussed the basic approach followed. - kib and marcel made targeted review on some specific part of the patch. - marius, art, nwhitehorn and andreast reviewed MD specific part of the patch. - marius, andreast, gonzo, nwhitehorn and jceel tested MD specific implementations of the patch. - Other people have made contributions on other patches that have been already committed and have been listed separately.
Companies that should be mentioned for having participated at several degrees: - Yahoo! for having offered the machines used for testing on big count of CPUs. - The FreeBSD Foundation for having sponsored my devsummit attendance, which has been instrumental. - Sandvine for having offered offices and infrastructure during development.
(I really hope I didn't forget anyone, if it happened I apologize in advance).
|
207830 |
09-May-2010 |
edwin |
strptime(3) confused July with June with the fr_FR locale.
When parsing the month "juillet" (abbr "jul"), %B recognized it as "juin" (abbr "jui") because the full name of the month names is checked at the same time as the abbrevation.
The new behaviour checks the full names first before checking the abbrevation names.
PR: kern/141939 Submitted by: Denis Chatelain <denis@tikuts.com> MFC after: 1 week
|
207736 |
07-May-2010 |
mckusick |
Merger of the quota64 project into head.
This joint work of Dag-Erling Smørgrav and myself updates the FFS quota system to support both traditional 32-bit and new 64-bit quotas (for those of you who want to put 2+Tb quotas on your users).
By default quotas are not compiled into the kernel. To include them in your kernel configuration you need to specify:
options QUOTA # Enable FFS quotas
If you are already running with the current 32-bit quotas, they should continue to work just as they have in the past. If you wish to convert to using 64-bit quotas, use `quotacheck -c 64'; if you wish to revert from 64-bit quotas back to 32-bit quotas, use `quotacheck -c 32'.
There is a new library of functions to simplify the use of the quota system, do `man quotafile' for details. If your application is currently using the quotactl(2), it is highly recommended that you convert your application to use the quotafile interface. Note that existing binaries will continue to work.
Special thanks to John Kozubik of rsync.net for getting me interested in pursuing 64-bit quota support and for funding part of my development time on this project.
|
204347 |
26-Feb-2010 |
edwin |
Split the contributed code from libc/stdtime from lib/libc/stdtime to contrib/tzcode/stdtime.
|
203958 |
16-Feb-2010 |
ru |
%U was macroized in mdoc(7), escape.
|
201669 |
06-Jan-2010 |
jhb |
Use _pthread_once() rather than _once() for localtime() and gmtime(). These methods are only invoked when __isthreaded is true at which point it is safe to use _pthread_once() directly.
MFC after: 1 week
|
201270 |
30-Dec-2009 |
jhb |
Use _once() to initialize the pthread key for thread-local storage to hold the results of gmtime() instead of using a pthread mutex directly.
MFC after: 1 week
|
200832 |
22-Dec-2009 |
edwin |
MFV of tzdata2009t, r200831
zic: - Fix URL / reference to Calendrical Calculations: Third Edition
libc/stdtime: - Fix typo in tzfile.5 (no changes in our part)
MFC after: 1 week
|
200797 |
21-Dec-2009 |
jhb |
Use _once() to initialize the pthread key for thread-local storage to hold the results of localtime() instead of using a pthread mutex directly.
MFC after: 1 week
|
199607 |
20-Nov-2009 |
jhb |
Replace gmt_is_set and the gmt_mutex lock with a pthread_once_t variable and an init routine run on the first invocation via _once().
MFC after: 1 week
|
197189 |
14-Sep-2009 |
edwin |
Improve the way failure of pthread_key_create() gets detected.
PR: threads/138603 Submitted by: Mikulas Patocka MFC after: 1 week
|
196752 |
02-Sep-2009 |
ache |
Use (unsigned char) cast for ctype macro
|
195015 |
26-Jun-2009 |
delphij |
Implement %z for strptime.
PR: kern/63064 Submitted by: Stefan `Sec` Zehl <sec 42 org> (with some small changes) MFC after: 1 month
|
194783 |
23-Jun-2009 |
edwin |
Remove duplicate if-statement on gmt_is_set in gmtsub().
MFC after: 1 week
|
193817 |
09-Jun-2009 |
delphij |
Spacing fixes. No actual change.
|
192890 |
27-May-2009 |
edwin |
MFV of tzcode2009h revision r192887
- Clarify the license for the tzcode: public domain
MFC after: 1 month
|
192625 |
23-May-2009 |
edwin |
MFV of tzcode2009e:
Upgrade of the tzcode from 2004a to 2009e.
Changes are numerous, but include...
- New format of the output of zic, which supports both 32 and 64 bit time_t formats.
- zdump on 64 bit platforms will actually produce some output instead of doing nothing for a looooooooong time.
- linux_base-fX, with X >= at least 8, will work without problems related to the local time again.
The original patch, based on the 2008e, has been running for a long time on both my laptop and desktop machine and have been tested by other people.
After the installation of this code and the running of zic(8), you need to run tzsetup(8) again to install the new datafile.
Approved by: wollman@ for usr.sbin/zic MFC after: 1 month
|
184458 |
30-Oct-2008 |
delphij |
Pass a pointer to warn2 so the warn2 == IN_ALL would not be an always-false condition.
|
183405 |
27-Sep-2008 |
edwin |
Bootstrap mergeinfo at r183403
|
179038 |
16-May-2008 |
grog |
Clarify that "ante meridiem" and "post meridiem" mean the same thing as the more commonly used "a.m." and "p.m.".
Tripped over by: Callum Gibson.
MFC after: 2 weeks
|
177824 |
01-Apr-2008 |
davidxu |
Normally, we are often reading local time rather than setting time zone, replace mutex with rwlock, this should eliminate lock contention in most cases.
|
174766 |
19-Dec-2007 |
imp |
Reduce lock contention for simple cases.
# this really should be done with pthread_once, but I've debugged this code.
Reviewed by: arch@
|
170154 |
31-May-2007 |
deischen |
Some libc symbol map cleanups.
net: endhostdnsent is named _endhostdnsent and is private to netdb family of functions.
posix1e: acl_size.c has been never compiled in, so there's no "acl_size".
rpc: "getnetid" is a static function.
stdtime: "gtime" is #ifdef'ed out in the source.
some symbols are specific only to some architectures, e.g., ___tls_get_addr is only defined on i386.
__htonl, __htons, __ntohl and __ntohs are no longer functions, they are now (internal) defines in <machine/endian.h>.
Submitted by: ru
|
169092 |
29-Apr-2007 |
deischen |
Use C comments since we now preprocess these files with CPP.
|
166102 |
19-Jan-2007 |
imp |
On FreeBSD/arm, any value > 50 bits will result in a rediculously huge number being returned for mktime and timegm calls. Choose 48 because that works well. This does reduce the dynamic range of tm_year from about 2 billion years down to "only" about 9 million years. Please contact me if this restriction poses a problem.
Due to the complexity of the code, I admit that I didn't trace down what, exactly, was overflowing with longer bits. This fixes software that we run on the embedded systems we have.
|
165903 |
09-Jan-2007 |
imp |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
165357 |
19-Dec-2006 |
jmg |
add a missing the...
MFC after: 3 days
|
156613 |
13-Mar-2006 |
deischen |
Add each directory's symbol map file to SYM_MAPS.
|
156608 |
13-Mar-2006 |
deischen |
Add symbol maps and initial symbol version definitions to libc.
Reviewed by: davidxu
|
149995 |
11-Sep-2005 |
stefanf |
The arguments for time2posix() and posix2time() are time_t values, not pointers.
|
148580 |
31-Jul-2005 |
keramida |
Fix all the spelling mistakes I could find in the man pages for words that have at least 3 characters.
MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
|
141851 |
13-Feb-2005 |
ru |
Expand contractions.
|
141846 |
13-Feb-2005 |
ru |
Expand *n't contractions.
|
140505 |
20-Jan-2005 |
ru |
Sort sections.
|
140081 |
11-Jan-2005 |
ru |
Scheduled mdoc(7) sweep.
|
137190 |
04-Nov-2004 |
delphij |
Add glibc-style strftime(3) padding specifiers, namely, -(no padding), _(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
|
134231 |
24-Aug-2004 |
peter |
struct tm.tm_year is listed as 'years since 1900', and is signed. On 64 bit systems, years roughly -2^31 through 2^31 can be represented in time_t without any trouble. 32 bit time_t systems only range from roughly 1902 through 2038. As a consequence, none of the date munging code for all the various calendar tweaks before then is present. There are other problems including the fact that there was no 'year zero' and so on. So rather than get excited about trying to figure out when the calendar jumped by two weeks etc, simply disallow negative (ie: prior to 1900) years.
This happens to have an important side effect. If you bzero a 'struct tm', it corresponds to 'Jan 0, 1900, 00:00 GMT'. This happens to be representable (after canonification) in 64 bit time_t space. Zero tm structs are generally an error and mktime normally returns -1 for them. Interestingly, it tries to canonify the 'jan 0' to 'dec 31, 1899', ie: year -1. This conveniently trips the negative year test above, which means we can trivially detect the null 'tm' struct.
This actually tripped up code at work. :-/ (Don't ask)
|
131504 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
130461 |
14-Jun-2004 |
stefanf |
Merge changes from the tzcode2004a import. Wherever possible I tried to bring us closer to the vendor branch.
Requested by: wollman
|
130414 |
13-Jun-2004 |
stefanf |
Remove a stale reference to %Ef and %EF from a comment.
|
130332 |
11-Jun-2004 |
kensmith |
Change defualt time zone from GMT to UTC. This will not be MFC-ed, and was done before 5-STABLE on purpose...
|
130244 |
08-Jun-2004 |
stefanf |
Remove a couple of casts added for an ancient Sun compiler.
Approved by: das (mentor)
|
122830 |
17-Nov-2003 |
nectar |
Detect range errors when using the %s specifier. Previously, LONG_MAX was rejected as a range error, while any values less than LONG_MIN were silently substituted with LONG_MIN. Furthermore, on some platforms `time_t' has less range than `long' (e.g. alpha), which may give incorrect results when parsing some strings.
|
119893 |
08-Sep-2003 |
ru |
mdoc(7): Use the new feature of the .In macro.
|
116274 |
13-Jun-2003 |
jkh |
Fixes to locale code to properly use indirect pointers in order to prevent memory leaks (fixes bugs earlier purported to be fixed). Submitted by: Ed Moy <emoy@apple.com> Obtained from: Apple Computer, Inc. MFC after: 2 weeks
|
114285 |
30-Apr-2003 |
mtm |
Backout my changes in rev. 1.32 and 1.33. There is some code that depends on the previous behaviour. This also brings strptime(3) behaviour back in line with the other BSDs.
Approved by: markm (mentor)
|
113104 |
05-Apr-2003 |
mtm |
Zero out the struct tm supplied by the caller. Otherwise, strange things might happen when garbage values in the struct get passed in to localtime_r() and family.
Noticed by: marcus Approved by: markm (mentor)(implicit)
|
112787 |
29-Mar-2003 |
mtm |
Fill in the rest of the fields in the resulting struct tm from strptime(3). Previously, they would get filled only for the %s specifier and as a side effect of using the the %Z specifier with a GMT time zone.
PR: misc/48993 Approved by: markm (mentor) Silence on: -standards
|
112156 |
12-Mar-2003 |
mtm |
Ditch a static global and the mutex that protected it. Achieve the desired strptime(3) reentrancy by adding an extra argument to _strptime() instead.
Approved by: markm (mentor) MFC: 4 weeks
|
111010 |
16-Feb-2003 |
nectar |
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go). Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled.
Reviewed by: /sbin/md5
|
108653 |
04-Jan-2003 |
tjr |
strptime(), like strftime(), does not handle multibyte characters in the format string correctly.
|
108652 |
04-Jan-2003 |
tjr |
Mention in the BUGS section that strftime() does not handle multibyte characters in the format string correctly.
|
108085 |
19-Dec-2002 |
ru |
mdoc(7) police: Fixed a few .Fa abuses.
|
108083 |
19-Dec-2002 |
ru |
mdoc(7) police: excessive quotes.
|
108037 |
18-Dec-2002 |
ru |
mdoc(7) police: "The .Fn function".
|
108013 |
18-Dec-2002 |
tjr |
Document what happens when the format string contains insufficient conversion specifications to completely specify the resulting struct tm.
PR: 46331 Submitted by: Christian S.J. Peron MFC after: 2 weeks
|
107648 |
05-Dec-2002 |
peter |
Do not guarantee an overflow of tm_year when doing the binary search in localtime/mktime/tmcomp and friends on ia64.
Approved by: re
|
107480 |
02-Dec-2002 |
peter |
Replace rev 1.33 with a real fix. The problem was integer overflows when trying to store the year in a signed int. The maximum time_t on ia64 is around 292 billion years in the future, but 'int' and struct tm.tm_year can only represent then ext 2.1 billion years or so.
This solves the problem of mktime/localtime looping on ia64. Unfortunately, the standards say that tm_year is an 'int', so we are still stuck with a y2147483647 bug. bash2's configure script looks for bugs in mktime() and fails on ia64 because of this. However, mktime() on FreeBSD fails the test normally anyway so this is no big loss.
This change does not affect any other platforms besides ia64.
Approved by: re
|
107052 |
18-Nov-2002 |
ru |
libc_r wasn't so tied to libc for 22 months.
|
105150 |
15-Oct-2002 |
tjr |
Add cross-references to the wide character counterparts of these functions.
|
103012 |
06-Sep-2002 |
tjr |
Style: One space between "restrict" qualifier and "*".
|
102885 |
03-Sep-2002 |
peter |
Fix a nasty bug exposed by mktime() when time_t is significantly bigger than 32 bits. It was trying to figure out things like the day of week of when time_t is roughly 2^62 etc. Make a better guess for the starting point for the binary search that works on both 32 and 64 bit types. I have been using this for a while now.
|
101936 |
15-Aug-2002 |
robert |
Use one line for each function argument to keep the line width smaller than 80 columns.
Thanks to Ruslan for an explanation of multiple ways to achieve this.
|
101888 |
14-Aug-2002 |
robert |
- Add the 'restrict' qualifier to the function definition of 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.
|
101886 |
14-Aug-2002 |
robert |
- Add the C99 'restrict' qualifier using the '__restrict' macro to function prototype and definition of strptime(3). - Update the manual page.
|
101471 |
07-Aug-2002 |
ache |
Style fixes
|
98313 |
17-Jun-2002 |
wollman |
Move dillon's time conversion functions to a new header <timeconv.h>. Since they were never documented and have never appeared in a FreeBSD release, no repo-copy of the header is done. This removes namespace pollution from <time.h>.
|
97682 |
31-May-2002 |
archie |
Grammar nit: treat "contents" as plural.
|
97423 |
28-May-2002 |
alfred |
Remove use of __P() (actually P()) from code now that it's no longer available.
|
97407 |
28-May-2002 |
alfred |
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
|
95989 |
03-May-2002 |
wollman |
Fix fd leak. Threads people: does the call above to `access' need to be underscored as well?
PR: 37717 Submitted by: fred@clift.org (slightly modified by me)
|
92991 |
22-Mar-2002 |
obrien |
Fix the style of the SCM ID's. I believe have made all of libc .h's as consistent as possible.
|
92986 |
22-Mar-2002 |
obrien |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
92889 |
21-Mar-2002 |
obrien |
Remove 'register' keyword.
|
89736 |
24-Jan-2002 |
phantom |
* style(9)'fy * declare prototype for __time_load_locale() in timelocal.h
|
89572 |
19-Jan-2002 |
dillon |
I've been meaning to do this for a while. Add an underscore to the time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee.
|
87659 |
11-Dec-2001 |
phantom |
Add my e-mail to copyrights
|
85636 |
28-Oct-2001 |
dillon |
Add time_to_int(), int_to_time(), time_to_long(), long_to_time().
|
85634 |
28-Oct-2001 |
dillon |
Add routines to convert time_t to/from fixed-bit fields. These routines serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work.
The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038.
These routines are intended to be platform and time_t agnostic.
MFC after: 1 week
|
84306 |
01-Oct-2001 |
ru |
mdoc(7) police: Use the new .In macro for #include statements.
|
81251 |
07-Aug-2001 |
ru |
mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
|
79754 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79664 |
13-Jul-2001 |
dd |
Recognize the %s format.
Submitted by: Thomas Zenker <thz@lennartz-electronic.de> and Maxim Konovalov <maxim@macomnet.ru>, respectively Reviewed by: -audit
|
79531 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
79454 |
09-Jul-2001 |
dd |
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
|
78656 |
23-Jun-2001 |
ru |
Document "normalizing" behavior of mktime(3).
PR: bin/28313 Reviewed by: bde, wollman MFC after: 1 week
|
77785 |
05-Jun-2001 |
wollman |
Don't mung the user's tm_sec field if we don't need to. (Belt-and-suspenders version.)
PR: bin/27630 Submitted by: Arthur David Olson <ado@nci.nih.gov> Obtained from: Timezone mailing-list <tz@elsie.nci.nih.gov> MFC after: 1 month
|
74870 |
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
74578 |
21-Mar-2001 |
ache |
Get rid of non-standard %E[Ff] formats, userland apps already fixed
|
74572 |
21-Mar-2001 |
ache |
Oops, back out prev. change - POSIX require %y in d_fmt Cosmetique - use exact POSIX string for %c
|
74570 |
21-Mar-2001 |
ache |
Replace %y with %Y
|
74414 |
18-Mar-2001 |
ache |
Fix typo in the comment
|
74412 |
18-Mar-2001 |
ache |
Relax local FreeBSD restrictions on 3 chars abbrev. name length and %c format 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
|
74409 |
18-Mar-2001 |
ache |
Make 'A' and 'a', 'B' and 'b' the same, per POSIX
|
73359 |
02-Mar-2001 |
ache |
Implement ampm_fmt (%r) per POSIX
|
73092 |
26-Feb-2001 |
ru |
/^\.St/ s/-iso9945-1/-p1003.1-96/
|
73088 |
26-Feb-2001 |
ru |
.St -ansiC -> .St -isoC
|
72619 |
18-Feb-2001 |
kris |
Back out snprintf -> sprintf change until I have time to look at it.
|
72524 |
15-Feb-2001 |
tegge |
Don't depend on lcl_mutex being a recursive mutex.
Reviewed by: deischen
|
72443 |
13-Feb-2001 |
phantom |
catch up to __part_load_locale() interface change
|
72406 |
12-Feb-2001 |
phantom |
Rewrite __time_load_locale() using ldpart.c::__part_load_locale()
Reviewed by: ache
|
72183 |
08-Feb-2001 |
ache |
Hardcode c_fmt in a different way since used in nl_langinfo now
|
72168 |
08-Feb-2001 |
phantom |
Catch up to latest chanage in timelocal structures exporting.
|
72167 |
08-Feb-2001 |
phantom |
Export internal data structures in same manner as numeric/monetary/messages structures exported. Protect timelocal.h from multiple inclusions.
|
71579 |
24-Jan-2001 |
deischen |
Remove _THREAD_SAFE and make libc thread-safe by default by adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in.
Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo
Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo.
Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible.
Remove uneeded includes of <errno.h> from a few files.
Add $FreeBSD$ to a few files in order to pass commitprep.
Approved by: -arch
|
70974 |
12-Jan-2001 |
ru |
mdoc(7) police: Ft/Vt now accept punctuation-type arguments.
|
70481 |
29-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
70015 |
14-Dec-2000 |
ru |
mdoc(7) police: removed history info from the .Os FreeBSD call.
|
69196 |
26-Nov-2000 |
kris |
sprintf -> snprintf
|
68638 |
12-Nov-2000 |
nik |
Create the links for the reentrant time functions.
PR: docs/22644 Submitted by: andrew@ugh.net.au
|
68575 |
10-Nov-2000 |
ru |
Avoid use of direct troff requests in mdoc(7) manual pages.
|
67658 |
26-Oct-2000 |
ache |
For %c replace reference to asctime(3) with ctime(3) from which %c genetically originates
|
67634 |
26-Oct-2000 |
ache |
Treat c_fmt field as compatibility placeholder
|
67632 |
26-Oct-2000 |
ache |
Force "%c" to be ctime-compatible
Submitted by: ru
|
67623 |
26-Oct-2000 |
ache |
Force %c to be "%a %Ef %T %Y" to eliminate problems with bad c_fmt
Submitted by: ru
|
67498 |
24-Oct-2000 |
ache |
Describe %c better
Submitted by: ru (with modifications)
|
64241 |
04-Aug-2000 |
kris |
Correct factor-of-10 error in INT_STRLEN_MAXIMUM() calculation.
|
62259 |
29-Jun-2000 |
ache |
Fix assigning alt_month in compatibility code
|
59460 |
21-Apr-2000 |
phantom |
Introduce ".Lb" macro to libc manpages.
More libraries manpages updates following.
|
57822 |
08-Mar-2000 |
cracauer |
Temporary cosmetic change to prevent gcc-2.95.2 from doing an optimization that generates code our current as doesn't understand.
The result is bad code that damages dynamic symbol locations at runtime. Ouch. See PR bin/16862 and discussion in -current.
This change will be backed out when gcc and gas are back in sync.
PR: Fixes bin/16862, but not the underlying problem. Submitted by: bde Approved by: jdk
|
57686 |
02-Mar-2000 |
sheldonh |
Remove single-space hard sentence breaks. These degrade the quality of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
|
56756 |
28-Jan-2000 |
joerg |
There were so far only 42 different conversion specifications in 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
|
56698 |
27-Jan-2000 |
jasone |
Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo().
Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo().
Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid().
Make thread cancellation fully POSIX-compliant.
Suggested by: deischen
|
56286 |
19-Jan-2000 |
sheldonh |
Make the quotes in the #include line visible.
|
55837 |
12-Jan-2000 |
jasone |
Add three-tier symbol naming in support of POSIX thread cancellation points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
|
54348 |
09-Dec-1999 |
sheldonh |
Remove discussion of %C in the BUGS section. The limitations on valid centuries are much more serious than those mentioned and this is not the place to discuss the limitations of time_t.
|
54316 |
08-Dec-1999 |
sheldonh |
Prevent digit-gobbling for all but %l and %e, which can't be fixed. Discuss in the BUGS section of the manpage, problems involved with the use of %C, %e, %l, %p, %U and %W.
PR: 13901 Reported by: scott@chronis.pobox.com
|
54301 |
08-Dec-1999 |
sheldonh |
Accept 12 for %l, because it's logical to expect "%l:%M" to work for "12:00" and because strftime(3) does the same.
|
53960 |
30-Nov-1999 |
ache |
%Ex -> %Ef to not conflict with POSIX Add %EF (long months name / day order) Check that O and E not intermixed Add missing POSIX extension to example
|
53959 |
30-Nov-1999 |
ache |
Document %Ex and %OB
|
53942 |
30-Nov-1999 |
ache |
Stricter checking %A vs %a
|
53941 |
30-Nov-1999 |
ache |
Fix %C handling Use locale for %c Add %+ Add %Ex and %OB
|
53940 |
30-Nov-1999 |
ache |
Add %Ex extension to determine "%e %b" or "%b %e" order Separate alternative for O and E cases
|
53083 |
10-Nov-1999 |
sheldonh |
Decremement by 1 the value taken for %j before assigning it to tm_yday, which is zero-based.
Correct the range checking for the value taken for %S.
Add %w for the day of the week (0-6).
Accept (but do nothing with) %U and %W. The comment for this change was taken from NetBSD.
These changes were made after several failed attempts to contact the author of our strptime.c .
PR: 10131 Submitted by: tadf@kt.rim.or.jp (Tadayoshi Funaba)
|
52860 |
04-Nov-1999 |
ache |
Add unsigned char cast to isupper
|
51186 |
11-Sep-1999 |
dt |
Implement new format specifier for strftime: %OB, alternative national representation of the full month name. In the Russian locale, this alternative will be "nominative case", useful when the date designate month as a whole. E.g. month heading in a calendar. I hope it can be useful for some other locales too.
Discussed with: wollman, ache
|
50916 |
04-Sep-1999 |
phantom |
Spelling and grammar error fix. mdoc(7)'fy.
PR: docs/13406 Submitted by: Garret Woolman <woolman@khavrinen.lcs.mit.edu> Reviewed by: mpp
|
50476 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
49754 |
14-Aug-1999 |
chris |
Add $Id$ tag.
|
49753 |
14-Aug-1999 |
chris |
Bad reference time(2) changed to time(3)
|
48794 |
12-Jul-1999 |
nik |
Add $Id$, to make it simpler for members of the translation teams to 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
|
48614 |
06-Jul-1999 |
obrien |
Make the new %Z addition thread-safe.
|
48550 |
04-Jul-1999 |
obrien |
Actually impliment the documented %Z specifier.
|
47812 |
07-Jun-1999 |
steve |
Spell the .St macro correctly.
PR: 11704
|
46051 |
25-Apr-1999 |
wes |
Re-fixed to start at 1969 per the actual Posix requirement. Also fixed a typo on the man page.
|
46042 |
25-Apr-1999 |
wes |
Bring two-digit years up-to-date with POSIX requirements. 70-00 are intepreted in the 20th century; 01-69 in the 21st century. (Yes, 2000 is the last year of the 20th century, not the first year of the 21st.)
Submitted by: Sergey Babkin <babkin@bellatlantic.net>
|
42989 |
21-Jan-1999 |
wollman |
Merge from vendor branch: timezone file structure changes and doco. Fix localtime.c to deal with new magic number field.
Obtained from: ftp://elsie.nci.nih.gov/pub/tzcode1999a.tar.gz
|
42293 |
04-Jan-1999 |
dt |
Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc.
|
42259 |
03-Jan-1999 |
wollman |
Add STANDARDS section. s/bytes/characters/g to be consistent with Standard C terminology. Update date and add RCS Id.
|
42257 |
03-Jan-1999 |
wollman |
Fix grammar in the description of timegm() by totally rewriting it. Remove a potentally inflammatory comment from BUGS, and add a more useful comment about the lack of reentrancy in the timezone-setting interface.
|
41951 |
20-Dec-1998 |
wes |
Added documenation for the existing implementation of asctime_r, ctime_r, gmtime_r, and localtime_r.
|
39327 |
16-Sep-1998 |
imp |
Replace memory leaking instances of realloc with non-leaking reallocf. In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing.
I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
|
39113 |
12-Sep-1998 |
dt |
Change return type of strptime from const char* to char*. const char* was wrong and nonstandard.
|
37299 |
30-Jun-1998 |
bde |
Fixed printf format errors. Don't assume so many things about time_t.
Obtained from: partial merge of ADO version tzcode96h (was fully merged in 1.10 but backed out in 1.11; the FreeBSD code for %s was earlier, prettier but buggier).
|
36854 |
10-Jun-1998 |
danny |
Fix grammar, "null" -> "NUL"
|
35922 |
10-May-1998 |
jb |
Remove 'of type long' from a sentence talking about four 4-byte values because that is wrong on alpha.
|
35436 |
25-Apr-1998 |
ache |
Make asctime_r static if !_THREAD_SAFE to prevent namespace pollution and prototype mismatch
|
35331 |
20-Apr-1998 |
phk |
Add a #ifdef _THREAD_SAFE around ctime_r
|
35322 |
20-Apr-1998 |
ache |
Describe timegm()
|
35285 |
19-Apr-1998 |
phk |
ctime_r and asctime_r are not implemented. prototypes in time.h do not match POSIX.
PR: 6345 Reviewed by: phk Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
|
35026 |
04-Apr-1998 |
jb |
Change in name of the static initializer define.
|
33527 |
18-Feb-1998 |
julian |
Submitted by: Jeremy Allison (jallison@whistle.com) fix a slight confusion about which draft of threads we are supporting. this allows something as big and ugly as samba to be compiled with libc_r and still work! our user-level pthreads seems amazingly robust!
|
30728 |
26-Oct-1997 |
helbig |
Typo.
|
30624 |
21-Oct-1997 |
bde |
Sorted lists.
|
30447 |
15-Oct-1997 |
bde |
Removed the subdirectory paths from the definitions of MAN[1-9]. They were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
|
30089 |
03-Oct-1997 |
helbig |
Merged in better support of ISO 8601 from elsie.nci.nih.gov. Added the conversion specifiers %g and %G, that are replaced by the year which contains the greater part of the week in question.
|
29563 |
18-Sep-1997 |
charnier |
environmental -> environment.
|
28164 |
13-Aug-1997 |
ache |
Add unsigned char cast to all ctype calls
|
28021 |
09-Aug-1997 |
joerg |
Import strptime(3) into libc. We've got permission by Kevin Ruddy to 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].
|
28020 |
09-Aug-1997 |
joerg |
This commit was generated by cvs2svn to compensate for changes in r28019, which included commits to RCS files with non-trunk default branches.
|
25932 |
19-May-1997 |
eivind |
`it's'' -> `its'' where appropriate and typo fixes in time2posix.3.
Closes PR docs/3612.
Submitted by: Josh Gilliam <soil@quick.net>
|
25401 |
03-May-1997 |
jb |
Changed all paths to be relative to src/lib instead of src/lib/libc so that all these makefiles can be used to build libc_r too.
Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too.
Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
|
24429 |
31-Mar-1997 |
bde |
Fixed wording of previous change.
Obtained from: fgets.3 Guided by: ISO C standard
|
24426 |
31-Mar-1997 |
imp |
Revert my last few changes. They were bogus. Replaced them with the original text plus a statement saying that if strftime fails, the results are undefined.
Requested a long time ago by: bde
|
24253 |
25-Mar-1997 |
imp |
Back out 1.14 until I reproduce trouble reports
|
24195 |
24-Mar-1997 |
imp |
Don't open the tz file if we're running setuid or setgid to prevent infomration leakage.
Submitted by: Julian Assange
|
23343 |
03-Mar-1997 |
imp |
Use .Sq Li \&\e0 rather than NUL to describe the character with no bits 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.
|
23296 |
02-Mar-1997 |
imp |
Pendantic change of null to NUL. Also warn that this function does not NUL terminate in the case of buffer overflow.
|
22993 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22402 |
07-Feb-1997 |
ache |
Include "setlocale.h" for _PathLocale like other parts already did
Should go in 2.2
|
22315 |
05-Feb-1997 |
julian |
Submitted by: John Birrell uthreads update from the author.
|
22305 |
05-Feb-1997 |
ache |
Update the comment why range checking is not needed
Should go in 2.2
|
21907 |
20-Jan-1997 |
wosch |
Sort cross references.
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
21659 |
13-Jan-1997 |
wollman |
When attempting to load a `lastditch' timezone (e.g., because the load of the user's timezone failed), don't bail if the specified timezone doesn't have an offset; in this case it isn't going to. (Perhaps it would be better to change the caller to always supply one, but this is quick and clean and fixes the bug in the easiest possible way.)
Should be in 2.2. Fixes (properly) PR#1740.
|
20961 |
28-Dec-1996 |
ache |
Add comment that range checking is already done at upper level Kill snprintf left in collate.c from previous backout
Should go in 2.2
|
19965 |
26-Nov-1996 |
ache |
Move PATH_LOCALE handling to setlocale.c, simplify locale path building, don't treat empty encoding as C encoding
|
19636 |
11-Nov-1996 |
hsu |
Parameters for localtime_r() and gmtime_r() definitions changed. Parameters for pthread_getspecific() call changed. pthread_keycreate() renamed to pthread_key_create().
|
18834 |
09-Oct-1996 |
wollman |
Require that a timezone specified via the TZ envariable be a regular file (and not a directory or a device which might also be readable). Closes PR#1740.
|
17706 |
20-Aug-1996 |
julian |
Submitted by: John Birrell <cimaxp1!jb@werple.net.au>
Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended).
I've created a new header (pthread_np.h) for the non-POSIX stuff.
The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags.
also:
Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc.
also:
I should have sent this diff with the pthread(3) man page. It allows people to type
make -DWANT_LIBC_R world
to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r.
also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
|
17224 |
19-Jul-1996 |
wollman |
Revert to old version of strftime.c; the new one doesn't work right.
|
17209 |
18-Jul-1996 |
wollman |
Merge the recently-imported tzcode96h distribution (libc portion). The part that does zic(8)/zdump(8) is still yet to be imported (but the old zic and zdump will work just fine with these header files and the data format has not changed).
|
17141 |
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
15927 |
27-May-1996 |
scrappy |
Removed false copyrights...
|
15923 |
27-May-1996 |
scrappy |
Added in appropriate Berkeley copyright and RCS Id: string
Closes PR#doc/536
|
15522 |
01-May-1996 |
mpp |
Convert the time2posix man page to mdoc format. This still needs some other cleanup, but it is good enough for now.
|
15313 |
19-Apr-1996 |
bde |
Removed bogus includes of <sys/types.h> from synopses.
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.
|
15082 |
07-Apr-1996 |
mpp |
Correct some man page cross references and file location references.
|
14855 |
27-Mar-1996 |
mpp |
Added missing section numbers to a bunch of .Xr macros, or converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
|
14292 |
28-Feb-1996 |
wosch |
Convert "time zone" to "timezone" in section NAME Submitted by: brien@cs.ucdavis.edu (David E. O'Brien)
|
14038 |
11-Feb-1996 |
mpp |
Correct a bunch of man page cross references and generally try and silence "manck".
ncurses, rpc, and some of the gnu stuff are still a big mess, however.
|
13849 |
02-Feb-1996 |
mpp |
Add some missing manual page links.
|
13545 |
22-Jan-1996 |
julian |
Reviewed by: julian and (hsu?) Submitted by: John Birrel(L?)
changes for threadsafe operations
|
13123 |
30-Dec-1995 |
peter |
This commit was generated by cvs2svn to compensate for changes in r13122, which included commits to RCS files with non-trunk default branches.
|
11735 |
23-Oct-1995 |
ache |
Don't reset LC_TIME to C when it isn't neccessary
|
9989 |
07-Aug-1995 |
ache |
Fix manpage to reflect current sources
|
9988 |
07-Aug-1995 |
ache |
Restore %s format support from previous version
|
9964 |
06-Aug-1995 |
ache |
Fix default %c to be ctime-compatible as supposed (by Solaris too)
|
9936 |
05-Aug-1995 |
wollman |
The European Commission went out and invented a new sort of summer-time changeover, so we have to extend the format of timezone files (in a backward- compatible way, of course). This probably means that libc needs a minor version number bump before 2.2 is released (or maybe not).
|
9912 |
04-Aug-1995 |
wollman |
Implement locale-sensitive strftime () from ADO (heavily modified by me). This probably loses for multibyte characters, but I have no way of telling. I'll let ache decide whether to add this support to startup_setlocale. Note that for this to make any sense at all, the symlinks in /usr/share/locale must go. (For the moment, this doesn't make any difference since there are no locales supplied.)
Obtained from: Arthur David Olson <ado@elsie.nci.nih.gov>
|
8870 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
6815 |
01-Mar-1995 |
joerg |
On snap 950210, format %s (print seconds from the epoch) is missing 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)
|
2741 |
13-Sep-1994 |
wollman |
Use latest Arthur Olson timezone code rather than that supplied with 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.
|
2713 |
13-Sep-1994 |
wollman |
Port to FreeBSD. Not ready for inclusion in libc just yet, but here so we can compile zic.
|
2711 |
13-Sep-1994 |
wollman |
This commit was generated by cvs2svn to compensate for changes in r2710, which included commits to RCS files with non-trunk default branches.
|
2709 |
13-Sep-1994 |
wollman |
This commit was generated by cvs2svn to compensate for changes in r2708, which included commits to RCS files with non-trunk default branches.
|