Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
5b79fdad
Commit
5b79fdad
authored
14 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Use __bsdi__ consistently.
parent
5781d96d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/port.h
+2
-2
2 additions, 2 deletions
src/include/port.h
src/port/fseeko.c
+7
-7
7 additions, 7 deletions
src/port/fseeko.c
with
9 additions
and
9 deletions
src/include/port.h
+
2
−
2
View file @
5b79fdad
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.13
2
2010/0
4/23 23:21:44 rhaas
Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.13
3
2010/0
5/15 10:14:20 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -352,7 +352,7 @@ extern char *crypt(const char *key, const char *setting);
/* WIN32 handled in port/win32.h */
#ifndef WIN32
#define pgoff_t off_t
#if defined(bsdi) || defined(netbsd)
#if defined(
__
bsdi
__
) || defined(netbsd)
extern
int
fseeko
(
FILE
*
stream
,
off_t
offset
,
int
whence
);
extern
off_t
ftello
(
FILE
*
stream
);
#endif
...
...
This diff is collapsed.
Click to expand it.
src/port/fseeko.c
+
7
−
7
View file @
5b79fdad
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/fseeko.c,v 1.2
4
2010/0
1/02 16:58:13
momjian Exp $
* $PostgreSQL: pgsql/src/port/fseeko.c,v 1.2
5
2010/0
5/15 10:14:20
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,7 +21,7 @@
#include
"c.h"
#ifdef bsdi
#ifdef
__
bsdi
__
#include
<pthread.h>
#endif
#include
<sys/stat.h>
...
...
@@ -44,7 +44,7 @@ fseeko(FILE *stream, off_t offset, int whence)
switch
(
whence
)
{
case
SEEK_CUR
:
#ifdef bsdi
#ifdef
__
bsdi
__
flockfile
(
stream
);
#endif
if
(
fgetpos
(
stream
,
&
floc
)
!=
0
)
...
...
@@ -52,7 +52,7 @@ fseeko(FILE *stream, off_t offset, int whence)
floc
+=
offset
;
if
(
fsetpos
(
stream
,
&
floc
)
!=
0
)
goto
failure
;
#ifdef bsdi
#ifdef
__
bsdi
__
funlockfile
(
stream
);
#endif
return
0
;
...
...
@@ -63,7 +63,7 @@ fseeko(FILE *stream, off_t offset, int whence)
return
0
;
break
;
case
SEEK_END
:
#ifdef bsdi
#ifdef
__
bsdi
__
flockfile
(
stream
);
#endif
fflush
(
stream
);
/* force writes to fd for stat() */
...
...
@@ -73,7 +73,7 @@ fseeko(FILE *stream, off_t offset, int whence)
floc
+=
offset
;
if
(
fsetpos
(
stream
,
&
floc
)
!=
0
)
goto
failure
;
#ifdef bsdi
#ifdef
__
bsdi
__
funlockfile
(
stream
);
#endif
return
0
;
...
...
@@ -84,7 +84,7 @@ fseeko(FILE *stream, off_t offset, int whence)
}
failure:
#ifdef bsdi
#ifdef
__
bsdi
__
funlockfile
(
stream
);
#endif
return
-
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment