/[base]/stable/9/contrib/tzcode/stdtime/localtime.c
ViewVC logotype

Log of /stable/9/contrib/tzcode/stdtime/localtime.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 226929 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 30 08:35:19 2011 UTC (12 years, 11 months ago) by trociny
File length: 53378 byte(s)
Diff to previous 225736
MFC r226828:

Fix a memory leak in tzload().

PR:		bin/161425
Reviewed by:	kib
Approved by:	re (kib)


Revision 225736 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 23 00:51:37 2011 UTC (13 years ago) by kensmith
File length: 53360 byte(s)
Diff to previous 225677
Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)


Revision 225677 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 19 22:35:54 2011 UTC (13 years ago) by kib
Original Path: head/contrib/tzcode/stdtime/localtime.c
File length: 53360 byte(s)
Diff to previous 214411
Do not overallocate on the stack. Threaded code might use custom stack
size.

Reported by:	many
Tested by:	Jeremie Le Hen <jeremie@le-hen.org> (previous version)
Reviewed by:	jilles
Approved by:	re (bz)
MFC after:	2 weeks


Revision 214411 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 27 07:14:46 2010 UTC (13 years, 11 months ago) by edwin
Original Path: head/contrib/tzcode/stdtime/localtime.c
File length: 52973 byte(s)
Diff to previous 204333
Sync code with tzcode2010m

asctime.c:
* Set errno to EINVAL and return "??? ??? ?? ??:??:?? ????\n" if
  asctime_r is called with a NULL struct tm pointer.  (Note that
  asctime_r is called by ctime_r and asctime; asctime is called by
  ctime.)

localtime.c:
* Set errno to EINVAL and return WRONG if time1 is called with a
  NULL struct tm pointer; avoid dereference if a NULL struct tm
  pointer is passed to timelocal, timegm, or timeoff.  (Note that
  time1 is called by mktime, timegm, and timeoff; mktime is called
  by timelocal.)
* more core-avoidance work
* Change to set timezone and altzone based on time types with
  greatest transition times (for the benefit of Asia/Seoul).

zic.8:
* Warning about case-sensitivity of names, but not of abbrevations

zic.c:
* Conditionally output extra types with most-recently-use offsets
  last (for use by systems with pre-2011 versions of localtime.c,
  helping to ensure that globals "altzone and "timezone" get set
  correctly).

The code has been running for nearly four weeks on my laptop running
FreeBSD 8.1 without a problem.

MFC after:	1 month


Revision 204333 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 25 21:21:34 2010 UTC (14 years, 7 months ago) by edwin
Original Path: head/contrib/tzcode/stdtime/localtime.c
File length: 53038 byte(s)
Diff to previous 201669
Copy lib/libc/stdtime to contrib/tzcode/stdtime for the proper split
of contributed code and FreeBSD specific code.


Revision 201669 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 6 20:43:40 2010 UTC (14 years, 8 months ago) by jhb
Original Path: head/lib/libc/stdtime/localtime.c
File length: 53038 byte(s)
Diff to previous 201270
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


Revision 201270 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 30 19:06:16 2009 UTC (14 years, 9 months ago) by jhb
Original Path: head/lib/libc/stdtime/localtime.c
File length: 53022 byte(s)
Diff to previous 200797
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


Revision 200797 - (view) (download) (annotate) - [select for diffs]
Modified Mon Dec 21 19:43:23 2009 UTC (14 years, 9 months ago) by jhb
Original Path: head/lib/libc/stdtime/localtime.c
File length: 53087 byte(s)
Diff to previous 199607
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


Revision 199607 - (view) (download) (annotate) - [select for diffs]
Modified Fri Nov 20 19:21:33 2009 UTC (14 years, 10 months ago) by jhb
Original Path: head/lib/libc/stdtime/localtime.c
File length: 53146 byte(s)
Diff to previous 197189
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


Revision 197189 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 14 11:20:45 2009 UTC (15 years ago) by edwin
Original Path: head/lib/libc/stdtime/localtime.c
File length: 53219 byte(s)
Diff to previous 194783
Improve the way failure of pthread_key_create() gets detected.

PR:		threads/138603
Submitted by:	Mikulas Patocka
MFC after:	1 week


Revision 194783 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 23 22:28:44 2009 UTC (15 years, 3 months ago) by edwin
Original Path: head/lib/libc/stdtime/localtime.c
File length: 53122 byte(s)
Diff to previous 192625
Remove duplicate if-statement on gmt_is_set in gmtsub().

MFC after:	1 week


Revision 192625 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 23 06:31:50 2009 UTC (15 years, 4 months ago) by edwin
Original Path: head/lib/libc/stdtime/localtime.c
File length: 53153 byte(s)
Diff to previous 177824
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


Revision 177824 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 1 06:56:11 2008 UTC (16 years, 6 months ago) by davidxu
Original Path: head/lib/libc/stdtime/localtime.c
File length: 44118 byte(s)
Diff to previous 174766
Normally, we are often reading local time rather than setting time zone,
replace mutex with rwlock, this should eliminate lock contention in
most cases.


Revision 174766 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 19 04:30:10 2007 UTC (16 years, 9 months ago) by imp
Original Path: head/lib/libc/stdtime/localtime.c
File length: 43210 byte(s)
Diff to previous 166102
Reduce lock contention for simple cases.

# this really should be done with pthread_once, but I've debugged this code.

Reviewed by: arch@


Revision 166102 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 19 01:16:35 2007 UTC (17 years, 8 months ago) by imp
Original Path: head/lib/libc/stdtime/localtime.c
File length: 43104 byte(s)
Diff to previous 134231
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.


Revision 134231 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 24 00:15:37 2004 UTC (20 years, 1 month ago) by peter
Original Path: head/lib/libc/stdtime/localtime.c
File length: 43104 byte(s)
Diff to previous 130461
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)


Revision 130461 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 14 10:31:52 2004 UTC (20 years, 3 months ago) by stefanf
Original Path: head/lib/libc/stdtime/localtime.c
File length: 43027 byte(s)
Diff to previous 130332
Merge changes from the tzcode2004a import.  Wherever possible I tried to bring
us closer to the vendor branch.

Requested by:	wollman


Revision 130332 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 11 03:34:02 2004 UTC (20 years, 3 months ago) by kensmith
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41234 byte(s)
Diff to previous 130244
Change defualt time zone from GMT to UTC.  This will not be MFC-ed, and
was done before 5-STABLE on purpose...


Revision 130244 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 8 12:20:40 2004 UTC (20 years, 3 months ago) by stefanf
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41137 byte(s)
Diff to previous 111010
Remove a couple of casts added for an ancient Sun compiler.

Approved by:	das (mentor)


Revision 111010 - (view) (download) (annotate) - [select for diffs]
Modified Sun Feb 16 17:29:11 2003 UTC (21 years, 7 months ago) by nectar
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41378 byte(s)
Diff to previous 107648
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


Revision 107648 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 5 19:54:47 2002 UTC (21 years, 10 months ago) by peter
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41369 byte(s)
Diff to previous 107480
Do not guarantee an overflow of tm_year when doing the binary search in
localtime/mktime/tmcomp and friends on ia64.

Approved by:	re


Revision 107480 - (view) (download) (annotate) - [select for diffs]
Modified Mon Dec 2 01:05:08 2002 UTC (21 years, 10 months ago) by peter
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41198 byte(s)
Diff to previous 102885
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


Revision 102885 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 3 04:34:10 2002 UTC (22 years, 1 month ago) by peter
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41331 byte(s)
Diff to previous 97423
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.


Revision 97423 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 28 20:12:42 2002 UTC (22 years, 4 months ago) by alfred
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41196 byte(s)
Diff to previous 95989
Remove use of __P() (actually P()) from code now that it's no longer
available.


Revision 95989 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 3 17:28:28 2002 UTC (22 years, 5 months ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41298 byte(s)
Diff to previous 92986
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)


Revision 92986 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 22 21:53:29 2002 UTC (22 years, 6 months ago) by obrien
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41276 byte(s)
Diff to previous 92889
Fix the style of the SCM ID's.
I believe have made all of libc .c's as consistent as possible.


Revision 92889 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 21 18:49:23 2002 UTC (22 years, 6 months ago) by obrien
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41246 byte(s)
Diff to previous 77785
Remove 'register' keyword.


Revision 77785 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 5 20:13:28 2001 UTC (23 years, 4 months ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41903 byte(s)
Diff to previous 72524
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


Revision 72524 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 15 22:17:04 2001 UTC (23 years, 7 months ago) by tegge
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41822 byte(s)
Diff to previous 71579
Don't depend on lcl_mutex being a recursive mutex.

Reviewed by:	deischen


Revision 71579 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 24 13:01:12 2001 UTC (23 years, 8 months ago) by deischen
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41792 byte(s)
Diff to previous 57822
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


Revision 57822 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 8 12:46:25 2000 UTC (24 years, 7 months ago) by cracauer
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42449 byte(s)
Diff to previous 56698
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


Revision 56698 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 27 23:07:25 2000 UTC (24 years, 8 months ago) by jasone
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42454 byte(s)
Diff to previous 55837
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


Revision 55837 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 12 09:23:48 2000 UTC (24 years, 8 months ago) by jasone
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42469 byte(s)
Diff to previous 42989
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().


Revision 42989 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 21 17:22:59 1999 UTC (25 years, 8 months ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42435 byte(s)
Diff to previous 42293
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


Revision 42293 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 4 20:45:20 1999 UTC (25 years, 9 months ago) by dt
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42406 byte(s)
Diff to previous 39327
Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc.


Revision 39327 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 16 04:17:47 1998 UTC (26 years ago) by imp
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42433 byte(s)
Diff to previous 35331
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...


Revision 35331 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 20 10:09:37 1998 UTC (26 years, 5 months ago) by phk
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42208 byte(s)
Diff to previous 35285
Add a #ifdef _THREAD_SAFE around ctime_r


Revision 35285 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 19 06:47:25 1998 UTC (26 years, 5 months ago) by phk
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42181 byte(s)
Diff to previous 35026
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>


Revision 35026 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 4 11:03:07 1998 UTC (26 years, 6 months ago) by jb
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42039 byte(s)
Diff to previous 33527
Change in name of the static initializer define.


Revision 33527 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 18 01:20:33 1998 UTC (26 years, 7 months ago) by julian
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42011 byte(s)
Diff to previous 24253
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!


Revision 24253 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 25 05:34:31 1997 UTC (27 years, 6 months ago) by imp
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41957 byte(s)
Diff to previous 24195
Back out 1.14 until I reproduce trouble reports


Revision 24195 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 24 06:09:50 1997 UTC (27 years, 6 months ago) by imp
Original Path: head/lib/libc/stdtime/localtime.c
File length: 42057 byte(s)
Diff to previous 22315
Don't open the tz file if we're running setuid or setgid to prevent infomration
leakage.

Submitted by:	Julian Assange


Revision 22315 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 5 23:26:09 1997 UTC (27 years, 8 months ago) by julian
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41957 byte(s)
Diff to previous 21659
Submitted by:	 John Birrell
uthreads update from the author.


Revision 21659 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 13 17:12:23 1997 UTC (27 years, 8 months ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41999 byte(s)
Diff to previous 19636
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.


Revision 19636 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 11 09:14:24 1996 UTC (27 years, 10 months ago) by hsu
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41975 byte(s)
Diff to previous 18834
Parameters for localtime_r() and gmtime_r() definitions changed.
Parameters for pthread_getspecific() call changed.
pthread_keycreate() renamed to pthread_key_create().


Revision 18834 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 9 17:39:37 1996 UTC (27 years, 11 months ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41967 byte(s)
Diff to previous 17706
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.


Revision 17706 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 20 08:22:01 1996 UTC (28 years, 1 month ago) by julian
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41829 byte(s)
Diff to previous 17209
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.


Revision 17209 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 18 18:53:15 1996 UTC (28 years, 2 months ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41589 byte(s)
Diff to previous 15927
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).


Revision 15927 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 27 06:54:03 1996 UTC (28 years, 4 months ago) by scrappy
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41357 byte(s)
Diff to previous 15923
Removed false copyrights...


Revision 15923 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 27 04:10:28 1996 UTC (28 years, 4 months ago) by scrappy
Original Path: head/lib/libc/stdtime/localtime.c
File length: 43221 byte(s)
Diff to previous 13545
Added in appropriate Berkeley copyright and RCS Id: string

Closes PR#doc/536


Revision 13545 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 22 00:02:33 1996 UTC (28 years, 8 months ago) by julian
Original Path: head/lib/libc/stdtime/localtime.c
File length: 41355 byte(s)
Diff to previous 9936
Reviewed by:	julian and (hsu?)
Submitted by:	 John Birrel(L?)

changes for threadsafe operations


Revision 9936 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 5 20:28:08 1995 UTC (29 years, 2 months ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 38653 byte(s)
Diff to previous 8870
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).


Revision 8870 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 30 05:51:47 1995 UTC (29 years, 4 months ago) by rgrimes
Original Path: head/lib/libc/stdtime/localtime.c
File length: 36435 byte(s)
Diff to previous 2713
Remove trailing whitespace.


Revision 2713 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 13 03:50:58 1994 UTC (30 years ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 36436 byte(s)
Diff to previous 2711
Port to FreeBSD.  Not ready for inclusion in libc just yet, but here
so we can compile zic.


Revision 2711 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 13 03:44:49 1994 UTC (30 years ago) by wollman
Original Path: head/lib/libc/stdtime/localtime.c
File length: 36428 byte(s)
Copied from: vendor/tzcode/dist/lib/libc/stdtime/localtime.c revision 2710
Diff to previous 2710
This commit was generated by cvs2svn to compensate for changes in r2710,
which included commits to RCS files with non-trunk default branches.


Revision 2710 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 13 03:44:49 1994 UTC (30 years ago) by wollman
Original Path: vendor/tzcode/dist/lib/libc/stdtime/localtime.c
File length: 36428 byte(s)
Diff to previous 2708
One more try, and if it doesn't work this time I'm giving up.
(Check in original localtime.c.)


Revision 2708 - (view) (download) (annotate) - [select for diffs]
Added Tue Sep 13 03:39:01 1994 UTC (30 years ago) by wollman
Original Path: vendor/tzcode/dist/lib/libc/stdtime/localtime.c
File length: 36436 byte(s)
The rest of tzcode94g from Arthur David Olson.

Obtained From: Arthur David Olson, ftp://elsie.nci.nih.gov/pub/tzcode94g.tar.gz


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.27