Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit794397a

Browse files
committed
Move tar function headers to pgtar.h
This makes it possible to include them only where they are used, sowe can avoid the conflict of the uid_t and gid_t datatypes that happenedin plperl (since plperl doesn't need the tar functions)
1 parentdfbba2c commit794397a

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

‎src/backend/replication/basebackup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include"utils/builtins.h"
3333
#include"utils/elog.h"
3434
#include"utils/ps_status.h"
35+
#include"pgtar.h"
3536

3637
typedefstruct
3738
{

‎src/bin/pg_dump/pg_backup_tar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include"pg_backup_tar.h"
3131
#include"dumpmem.h"
3232
#include"dumputils.h"
33+
#include"pgtar.h"
3334

3435
#include<sys/stat.h>
3536
#include<ctype.h>

‎src/include/pgtar.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* pgtar.h
4+
* Functions for manipulating tarfile datastructures (src/port/tar.c)
5+
*
6+
*
7+
* Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
8+
* Portions Copyright (c) 1994, Regents of the University of California
9+
*
10+
* src/include/pgtar.h
11+
*
12+
*-------------------------------------------------------------------------
13+
*/
14+
externvoidtarCreateHeader(char*h,constchar*filename,constchar*linktarget,size_tsize,mode_tmode,uid_tuid,gid_tgid,time_tmtime);
15+
externinttarChecksum(char*header);

‎src/include/port.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,4 @@ extern intpg_check_dir(const char *dir);
465465
/* port/pgmkdirp.c */
466466
externintpg_mkdir_p(char*path,intomode);
467467

468-
/* port/tar.c */
469-
voidtarCreateHeader(char*h,constchar*filename,constchar*linktarget,size_tsize,mode_tmode,uid_tuid,gid_tgid,time_tmtime);
470-
inttarChecksum(char*header);
471-
472468
#endif/* PG_PORT_H */

‎src/port/tar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include"c.h"
2+
#include"pgtar.h"
23
#include<sys/stat.h>
34

45
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp