timelocal.c (101471) | timelocal.c (116274) |
---|---|
1/*- 2 * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org> 3 * Copyright (c) 1997 FreeBSD Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org> 3 * Copyright (c) 1997 FreeBSD Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/lib/libc/stdtime/timelocal.c 101471 2002-08-07 16:49:20Z ache $"); | 29__FBSDID("$FreeBSD: head/lib/libc/stdtime/timelocal.c 116274 2003-06-13 00:14:07Z jkh $"); |
30 31#include <stddef.h> 32 33#include "ldpart.h" 34#include "timelocal.h" 35 36static struct lc_time_T _time_locale; 37static int _time_using_locale; --- 68 unchanged lines hidden (view full) --- 106 ? &_time_locale 107 : (struct lc_time_T *)&_C_time_locale); 108} 109 110int 111__time_load_locale(const char *name) 112{ 113 return (__part_load_locale(name, &_time_using_locale, | 30 31#include <stddef.h> 32 33#include "ldpart.h" 34#include "timelocal.h" 35 36static struct lc_time_T _time_locale; 37static int _time_using_locale; --- 68 unchanged lines hidden (view full) --- 106 ? &_time_locale 107 : (struct lc_time_T *)&_C_time_locale); 108} 109 110int 111__time_load_locale(const char *name) 112{ 113 return (__part_load_locale(name, &_time_using_locale, |
114 time_locale_buf, "LC_TIME", | 114 &time_locale_buf, "LC_TIME", |
115 LCTIME_SIZE, LCTIME_SIZE, 116 (const char **)&_time_locale)); 117} | 115 LCTIME_SIZE, LCTIME_SIZE, 116 (const char **)&_time_locale)); 117} |