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

Commit9b7c6ee

Browse files
committed
Fixes for Irix from Robert Bruccoleri
1 parent731ea80 commit9b7c6ee

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

‎src/backend/port/snprintf.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
# include<sys/ioctl.h>
4949
# include<sys/param.h>
5050

51+
/* IRIX doesn't do 'long long' in va_arg(), so use a typedef */
52+
typedeflong longlong_long;
53+
5154
/*
5255
** SNPRINTF, VSNPRINT -- counted versions of printf
5356
**
@@ -70,7 +73,7 @@
7073
* causing nast effects.
7174
**************************************************************/
7275

73-
/*static char _id[] = "$Id: snprintf.c,v 1.7 1998/09/23 03:11:24 scrappy Exp $";*/
76+
/*static char _id[] = "$Id: snprintf.c,v 1.8 1998/10/02 15:38:01 momjian Exp $";*/
7477
staticchar*end;
7578
staticintSnprfOverflow;
7679

@@ -192,7 +195,7 @@ dopr (char *buffer, const char *format, ... )
192195
case'd':case'D':
193196
if(longflag ){
194197
if(longlongflag ) {
195-
value=va_arg(args,longlong );
198+
value=va_arg(args,long_long );
196199
}else {
197200
value=va_arg(args,long );
198201
}

‎src/include/port/irix5.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
#defineNO_EMPTY_STMTS
44
#defineSYSV_DIRENT
55
#defineHAS_TEST_AND_SET
6-
#include<abi_mutex.h>
7-
typedefabilock_tslock_t;
6+
typedefunsigned longslock_t;

‎src/include/storage/s_lock.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.52 1998/10/02 15:23:08 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.53 1998/10/02 15:38:04 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -261,8 +261,11 @@ tas(slock_t *s_lock)
261261
#if defined(__sgi)
262262
/*
263263
* SGI IRIX 5
264-
* slock_t is defined as a struct abilock_t, which has a single unsigned long
265-
* member.
264+
* slock_t is defined as a unsigned long. We use the standard SGI
265+
* mutex API.
266+
*
267+
* The following comment is left for historical reasons, but is probably
268+
* not a good idea since the mutex ABI is supported.
266269
*
267270
* This stuff may be supplemented in the future with Masato Kataoka's MIPS-II
268271
* assembly from his NECEWS SVR4 port, but we probably ought to retain this

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp