PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
private.h File Reference
#include <limits.h>
#include <sys/wait.h>
#include <unistd.h>
#include "pgtime.h"
Include dependency graph for private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GRANDPARENTED   "Local time zone must be set--see zic manual page"
 
#define ENOTSUP   EINVAL
 
#define EOVERFLOW   EINVAL
 
#define WIFEXITED(status)   (((status) & 0xff) == 0)
 
#define WEXITSTATUS(status)   (((status) >> 8) & 0xff)
 
#define is_digit(c)   ((unsigned)(c) - '0' <= 9)
 
#define SIZE_MAX   ((size_t) -1)
 
#define remove   unlink
 
#define TYPE_BIT(type)   (sizeof (type) * CHAR_BIT)
 
#define TYPE_SIGNED(type)   (((type) -1) < 0)
 
#define TWOS_COMPLEMENT(t)   ((t) ~ (t) 0 < 0)
 
#define MAXVAL(t, b)
 
#define MINVAL(t, b)   ((t) (TYPE_SIGNED(t) ? - TWOS_COMPLEMENT(t) - MAXVAL(t, b) : 0))
 
#define INT_STRLEN_MAXIMUM(type)
 
#define INITIALIZE(x)   ((x) = 0)
 
#define _(msgid)   (msgid)
 
#define YEARSPERREPEAT   400 /* years before a Gregorian repeat */
 
#define AVGSECSPERYEAR   31556952L
 
#define SECSPERREPEAT   ((int64) YEARSPERREPEAT * (int64) AVGSECSPERYEAR)
 
#define SECSPERREPEAT_BITS   34 /* ceil(log2(SECSPERREPEAT)) */
 

Functions

int unlink (const char *filename)
 

Macro Definition Documentation

#define _ (   msgid)    (msgid)

Definition at line 109 of file private.h.

#define AVGSECSPERYEAR   31556952L

Definition at line 120 of file private.h.

Referenced by localsub(), and pg_next_dst_boundary().

#define ENOTSUP   EINVAL

Definition at line 35 of file private.h.

Referenced by dolink(), and get_errno_symbol().

#define EOVERFLOW   EINVAL

Definition at line 38 of file private.h.

Referenced by get_errno_symbol(), itsdir(), and timesub().

#define GRANDPARENTED   "Local time zone must be set--see zic manual page"

Definition at line 27 of file private.h.

Referenced by newabbr(), and writezone().

#define INITIALIZE (   x)    ((x) = 0)

Definition at line 106 of file private.h.

Referenced by outzone(), and transtime().

#define INT_STRLEN_MAXIMUM (   type)
Value:
((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + \
1 + TYPE_SIGNED(type))
#define TYPE_BIT(type)
Definition: private.h:71
#define TYPE_SIGNED(type)
Definition: private.h:75

Definition at line 98 of file private.h.

Referenced by _conv(), and yearistype().

#define is_digit (   c)    ((unsigned)(c) - '0' <= 9)

Definition at line 49 of file private.h.

Referenced by getnum(), getrule(), and getzname().

#define MAXVAL (   t,
 
)
Value:
((t) (((t) 1 << ((b) - 1 - TYPE_SIGNED(t))) \
- 1 + ((t) 1 << ((b) - 1 - TYPE_SIGNED(t)))))
#define TYPE_SIGNED(type)
Definition: private.h:75

Definition at line 85 of file private.h.

#define MINVAL (   t,
 
)    ((t) (TYPE_SIGNED(t) ? - TWOS_COMPLEMENT(t) - MAXVAL(t, b) : 0))

Definition at line 88 of file private.h.

#define remove   unlink

Definition at line 62 of file private.h.

#define SECSPERREPEAT   ((int64) YEARSPERREPEAT * (int64) AVGSECSPERYEAR)

Definition at line 124 of file private.h.

Referenced by differ_by_repeat(), and localsub().

#define SECSPERREPEAT_BITS   34 /* ceil(log2(SECSPERREPEAT)) */

Definition at line 128 of file private.h.

Referenced by differ_by_repeat().

#define SIZE_MAX   ((size_t) -1)

Definition at line 52 of file private.h.

Referenced by size_product().

#define TWOS_COMPLEMENT (   t)    ((t) ~ (t) 0 < 0)

Definition at line 78 of file private.h.

Referenced by detzcode(), and detzcode64().

#define TYPE_BIT (   type)    (sizeof (type) * CHAR_BIT)

Definition at line 71 of file private.h.

Referenced by differ_by_repeat(), and main().

#define TYPE_SIGNED (   type)    (((type) -1) < 0)

Definition at line 75 of file private.h.

Referenced by differ_by_repeat(), increment_overflow_time(), timesub(), and tzloadbody().

#define WEXITSTATUS (   status)    (((status) >> 8) & 0xff)

Definition at line 45 of file private.h.

#define WIFEXITED (   status)    (((status) & 0xff) == 0)

Definition at line 42 of file private.h.

#define YEARSPERREPEAT   400 /* years before a Gregorian repeat */

Definition at line 112 of file private.h.

Referenced by localsub(), outzone(), pg_next_dst_boundary(), and tzparse().

Function Documentation

int unlink ( const char *  filename)

Referenced by AlterSystemSetConfigFile(), AtEOXact_Snapshot(), CancelBackup(), check_hard_link(), CheckForStandbyTrigger(), CheckPointLogicalRewriteHeap(), CheckPointReplicationOrigin(), CheckPointSnapBuild(), cleanup(), CleanupBackupHistory(), CleanupPriorWALFiles(), create_script_for_old_cluster_deletion(), CreateLockFile(), CustomizableCleanupPriorWALFiles(), DeleteAllExportedSnapshotFiles(), destroy_tablespace_directories(), dir_close(), do_pg_stop_backup(), do_promote(), dsm_cleanup_for_mmap(), dsm_impl_mmap(), durable_link_or_rename(), exitArchiveRecovery(), FileClose(), gc_qtexts(), InstallXLogFileSegment(), KeepFileRestoredFromArchive(), KillExistingArchiveStatus(), KillExistingXLOG(), main(), mdpostckpt(), mdunlinkfork(), pg_file_unlink(), pgss_shmem_shutdown(), pgss_shmem_startup(), pgstat_read_db_statsfile(), pgstat_read_statsfiles(), pgstat_recv_dropdb(), pgstat_reset_remove_files(), pgstat_write_db_statsfile(), pgstat_write_statsfiles(), regression_main(), RelationCacheInitFilePreInvalidate(), remove_tablespace_symlink(), remove_target_file(), remove_target_symlink(), RemovePgTempFilesInDir(), RemovePgTempRelationFilesInDbspace(), RemovePromoteSignalFiles(), RemoveSocketFiles(), RemoveTwoPhaseFile(), RemoveXlogFile(), ReorderBufferRestoreCleanup(), ResetUnloggedRelationsInDbspaceDir(), RestoreArchivedFile(), RestoreSlotFromDisk(), results_differ(), RewriteControlFile(), rmtree(), signal_cleanup(), SlruDeleteSegment(), SlruInternalDeleteSegment(), SnapBuildSerialize(), StartupReorderBuffer(), StartupXLOG(), transfer_relfile(), unlink_external_pid_file(), unlink_initfile(), UnlinkLockFiles(), write_relcache_init_file(), WriteEmptyXLOG(), writeTimeLineHistory(), writeTimeLineHistoryFile(), XLogArchiveCleanup(), XLogFileCopy(), and XLogFileInit().