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
9b7c6ee0
Commit
9b7c6ee0
authored
26 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for Irix from Robert Bruccoleri
parent
731ea807
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/backend/port/snprintf.c
+5
-2
5 additions, 2 deletions
src/backend/port/snprintf.c
src/include/port/irix5.h
+1
-2
1 addition, 2 deletions
src/include/port/irix5.h
src/include/storage/s_lock.h
+6
-3
6 additions, 3 deletions
src/include/storage/s_lock.h
with
12 additions
and
7 deletions
src/backend/port/snprintf.c
+
5
−
2
View file @
9b7c6ee0
...
...
@@ -48,6 +48,9 @@
# include <sys/ioctl.h>
# include <sys/param.h>
/* IRIX doesn't do 'long long' in va_arg(), so use a typedef */
typedef
long
long
long_long
;
/*
** SNPRINTF, VSNPRINT -- counted versions of printf
**
...
...
@@ -70,7 +73,7 @@
* causing nast effects.
**************************************************************/
/*static char _id[] = "$Id: snprintf.c,v 1.
7
1998/
09/23 03:11:24 scrappy
Exp $";*/
/*static char _id[] = "$Id: snprintf.c,v 1.
8
1998/
10/02 15:38:01 momjian
Exp $";*/
static
char
*
end
;
static
int
SnprfOverflow
;
...
...
@@ -192,7 +195,7 @@ dopr (char *buffer, const char *format, ... )
case
'd'
:
case
'D'
:
if
(
longflag
){
if
(
longlongflag
)
{
value
=
va_arg
(
args
,
long
long
);
value
=
va_arg
(
args
,
long
_
long
);
}
else
{
value
=
va_arg
(
args
,
long
);
}
...
...
This diff is collapsed.
Click to expand it.
src/include/port/irix5.h
+
1
−
2
View file @
9b7c6ee0
...
...
@@ -3,5 +3,4 @@
#define NO_EMPTY_STMTS
#define SYSV_DIRENT
#define HAS_TEST_AND_SET
#include
<abi_mutex.h>
typedef
abilock_t
slock_t
;
typedef
unsigned
long
slock_t
;
This diff is collapsed.
Click to expand it.
src/include/storage/s_lock.h
+
6
−
3
View file @
9b7c6ee0
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.5
2
1998/10/02 15:
2
3:0
8
momjian Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.5
3
1998/10/02 15:3
8
:0
4
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -261,8 +261,11 @@ tas(slock_t *s_lock)
#if defined(__sgi)
/*
* SGI IRIX 5
* slock_t is defined as a struct abilock_t, which has a single unsigned long
* member.
* slock_t is defined as a unsigned long. We use the standard SGI
* mutex API.
*
* The following comment is left for historical reasons, but is probably
* not a good idea since the mutex ABI is supported.
*
* This stuff may be supplemented in the future with Masato Kataoka's MIPS-II
* assembly from his NECEWS SVR4 port, but we probably ought to retain this
...
...
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