Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d248a67a
Commit
d248a67a
authored
Apr 30, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timezone library changes to map into our backend code.
parent
6a2b75c2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
src/timezone/asctime.c
src/timezone/asctime.c
+1
-0
src/timezone/difftime.c
src/timezone/difftime.c
+1
-0
src/timezone/localtime.c
src/timezone/localtime.c
+5
-0
src/timezone/zic.c
src/timezone/zic.c
+22
-0
No files found.
src/timezone/asctime.c
View file @
d248a67a
#include "pgtz.h"
/*
** This file is in the public domain, so clarified as of
** 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
...
...
src/timezone/difftime.c
View file @
d248a67a
#include "pgtz.h"
/*
** This file is in the public domain, so clarified as of
** June 5, 1996 by Arthur David Olson (arthur_david_olson@nih.gov).
...
...
src/timezone/localtime.c
View file @
d248a67a
#include "pgtz.h"
#undef open
#define timezone pg_timezone
#define USG_COMPAT
extern
time_t
pg_timezone
;
/*
** This file is in the public domain, so clarified as of
** 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
...
...
src/timezone/zic.c
View file @
d248a67a
static
char
elsieid
[]
=
"@(#)zic.c 7.115"
;
#include "pgtz.h"
#undef unlink
#undef TZDIR
#define TZDIR "data"
#ifdef WIN32
#include <windows.h>
#endif
#include "private.h"
#include "locale.h"
...
...
@@ -7,11 +14,13 @@ static char elsieid[] = "@(#)zic.c 7.115";
#if HAVE_SYS_STAT_H
#include "sys/stat.h"
#endif
#ifndef WIN32
#ifdef S_IRUSR
#define MKDIR_UMASK (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
#else
#define MKDIR_UMASK 0755
#endif
#endif
/*
** On some ancient hosts, predicates like `isspace(C)' are defined
...
...
@@ -2234,3 +2243,16 @@ const int i;
/*
** UNIX was a registered trademark of The Open Group in 2003.
*/
#ifdef WIN32
/*
* To run on win32
*/
int
link
(
const
char
*
oldpath
,
const
char
*
newpath
)
{
if
(
!
CopyFileEx
(
oldpath
,
newpath
,
NULL
,
NULL
,
FALSE
,
0
))
{
return
-
1
;
}
return
0
;
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment