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

Commit0c0a176

Browse files
committed
As we don't use struct dirent, the #define SYSV_DIRENT is useless. If we
every do need it we'd better use AC_HEADER_DIRENT from Autoconf.#define NO_EMPTY_STMTS is completely unused.
1 parent3280cba commit0c0a176

File tree

7 files changed

+2
-27
lines changed

7 files changed

+2
-27
lines changed

‎src/include/libpq/libpq-fs.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: libpq-fs.h,v 1.9 2000/01/26 05:58:12 momjian Exp $
10+
* $Id: libpq-fs.h,v 1.10 2000/10/28 22:53:15 petere Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -28,18 +28,6 @@ struct pgdirent
2828
chard_name[MAXNAMLEN+1];
2929
};
3030

31-
/*
32-
* SysV struct dirent doesn't have d_namlen.
33-
* This counts on d_name being last, which is moderately safe (ha) since
34-
* it's the variable-length part of the structure.
35-
*/
36-
#ifdefSYSV_DIRENT
37-
#defineD_NAMLEN(dp) \
38-
((dp)->d_reclen - offsetof(struct dirent, d_name[0]))
39-
#else/* SYSV_DIRENT */
40-
#defineD_NAMLEN(dp) \
41-
((dp)->d_namlen)
42-
#endif/* SYSV_DIRENT */
4331

4432
/* for stat(2) */
4533
#ifndefS_IRUSR

‎src/include/port/irix5.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#defineUSE_POSIX_TIME
2-
#defineNO_EMPTY_STMTS
3-
#defineSYSV_DIRENT
42
#defineHAS_TEST_AND_SET
53
typedefunsigned longslock_t;

‎src/include/port/sco.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#defineDISABLE_COMPLEX_MACRO
66

77
#defineUSE_POSIX_TIME
8-
#defineNO_EMPTY_STMTS
9-
#defineSYSV_DIRENT
108

119
#defineHAS_TEST_AND_SET
1210
#defineNEED_I386_TAS_ASM
@@ -15,8 +13,6 @@
1513

1614
typedefunsignedcharslock_t;
1715

18-
#defineDISABLE_COMPLEX_MACRO
19-
2016
/***************************************************************
2117
* The following include will get the needed prototype for the
2218
* strcasecmp() function.

‎src/include/port/solaris.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.1 2000/10/10 21:22:26 petere Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.2 2000/10/2822:53:17 petere Exp $ */
22

33
#defineUSE_POSIX_TIME
4-
#defineNO_EMPTY_STMTS
5-
#defineSYSV_DIRENT
64
#defineHAS_TEST_AND_SET
75
typedefunsignedcharslock_t;
86

‎src/include/port/svr4.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#defineUSE_POSIX_TIME
2-
#defineNO_EMPTY_STMTS
3-
#defineSYSV_DIRENT
42

53
#ifndefBYTE_ORDER
64
#ifdefMIPSEB

‎src/include/port/univel.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#defineUSE_POSIX_TIME
2-
#defineNO_EMPTY_STMTS
3-
#defineSYSV_DIRENT
42

53
#defineHAS_TEST_AND_SET
64
#defineNEED_I386_TAS_ASM

‎src/include/port/unixware.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#defineUSE_POSIX_TIME
2-
#defineSYSV_DIRENT
32

43
#defineHAS_TEST_AND_SET
54
#defineNEED_I386_TAS_ASM

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp