summaryrefslogtreecommitdiff
path: root/src/port/dirmod.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-06-11 14:49:15 +0000
committerBruce Momjian <bruce@momjian.us>2009-06-11 14:49:15 +0000
commitd7471402794266078953f1bd113dab4913d631a1 (patch)
tree618e392a84eaf837e00bf78f8694097b78fec227 /src/port/dirmod.c
parent4e86efb4e51b66ef57b3fe6f28576de23a1bf1c6 (diff)
downloadpostgresql-d7471402794266078953f1bd113dab4913d631a1.tar.gz
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
Diffstat (limited to 'src/port/dirmod.c')
-rw-r--r--src/port/dirmod.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c
index 5bda09b92c..a31e74cbd3 100644
--- a/src/port/dirmod.c
+++ b/src/port/dirmod.c
@@ -10,7 +10,7 @@
* Win32 (NT4 and newer).
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.57 2009/05/04 09:30:06 mha Exp $
+ * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.58 2009/06/11 14:49:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -195,7 +195,7 @@ typedef struct
WORD PrintNameOffset;
WORD PrintNameLength;
WCHAR PathBuffer[1];
-} REPARSE_JUNCTION_DATA_BUFFER;
+} REPARSE_JUNCTION_DATA_BUFFER;
#define REPARSE_JUNCTION_DATA_BUFFER_HEADER_SIZE \
FIELD_OFFSET(REPARSE_JUNCTION_DATA_BUFFER, SubstituteNameOffset)
@@ -260,7 +260,7 @@ pgsymlink(const char *oldpath, const char *newpath)
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, GetLastError(),
MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
- (LPSTR) & msg, 0, NULL);
+ (LPSTR) &msg, 0, NULL);
#ifndef FRONTEND
ereport(ERROR,
(errcode_for_file_access(),
@@ -291,7 +291,7 @@ pgsymlink(const char *oldpath, const char *newpath)
* must call pgfnames_cleanup later to free the memory allocated by this
* function.
*/
-char **
+char **
pgfnames(const char *path)
{
DIR *dir;
@@ -412,11 +412,11 @@ rmtree(const char *path, bool rmtopdir)
* delete it anyway.
*
* This is not an academic possibility. One scenario where this
- * happens is when bgwriter has a pending unlink request for a file
- * in a database that's being dropped. In dropdb(), we call
+ * happens is when bgwriter has a pending unlink request for a file in
+ * a database that's being dropped. In dropdb(), we call
* ForgetDatabaseFsyncRequests() to flush out any such pending unlink
- * requests, but because that's asynchronous, it's not guaranteed
- * that the bgwriter receives the message in time.
+ * requests, but because that's asynchronous, it's not guaranteed that
+ * the bgwriter receives the message in time.
*/
if (lstat(pathbuf, &statbuf) != 0)
{
@@ -492,10 +492,10 @@ rmtree(const char *path, bool rmtopdir)
* field when run. So we define our own version that uses the Win32 API
* to update this field.
*/
-int
-pgwin32_safestat(const char *path, struct stat *buf)
+int
+pgwin32_safestat(const char *path, struct stat * buf)
{
- int r;
+ int r;
WIN32_FILE_ATTRIBUTE_DATA attr;
r = stat(path, buf);
@@ -509,8 +509,8 @@ pgwin32_safestat(const char *path, struct stat *buf)
}
/*
- * XXX no support for large files here, but we don't do that in
- * general on Win32 yet.
+ * XXX no support for large files here, but we don't do that in general on
+ * Win32 yet.
*/
buf->st_size = attr.nFileSizeLow;