7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.4 1996/07/22 23:00:03 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.5 1996/10/31 10:20:09 scrappy Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
45
45
46
46
#if defined(HAS_TEST_AND_SET )
47
47
48
- #if defined (PORTNAME_next )
48
+ #if defined (next )
49
49
/*
50
50
* NEXTSTEP (mach)
51
51
* slock_t is defined as a struct mutex.
74
74
return (lock -> lock == 0 );
75
75
}
76
76
77
- #endif /* PORTNAME_next */
77
+ #endif /* next */
78
78
79
79
80
80
81
- #if defined(PORTNAME_irix5 )
81
+ #if defined(irix5 )
82
82
/*
83
83
* SGI IRIX 5
84
84
* slock_t is defined as a struct abilock_t, which has a single unsigned long
@@ -115,7 +115,7 @@ S_LOCK_FREE(slock_t *lock)
115
115
return (stat_lock (lock )== UNLOCKED );
116
116
}
117
117
118
- #endif /* PORTNAME_irix5 */
118
+ #endif /* irix5 */
119
119
120
120
121
121
/*
@@ -125,7 +125,7 @@ S_LOCK_FREE(slock_t *lock)
125
125
* (see storage/ipc.h).
126
126
*/
127
127
128
- #if defined(PORTNAME_alpha )
128
+ #if defined(alpha )
129
129
130
130
void
131
131
S_LOCK (slock_t * lock )
@@ -152,14 +152,14 @@ S_LOCK_FREE(slock_t *lock)
152
152
return (lock -> msem_state ? 0 : 1 );
153
153
}
154
154
155
- #endif /* PORTNAME_alpha */
155
+ #endif /* alpha */
156
156
157
157
/*
158
158
* Solaris 2
159
159
*/
160
160
161
- #if defined(PORTNAME_i386_solaris ) || \
162
- defined(PORTNAME_sparc_solaris )
161
+ #if defined(i386_solaris ) || \
162
+ defined(sparc_solaris )
163
163
164
164
/* for xxxxx_solaris, this is defined in port/.../tas.s */
165
165
extern int tas (slock_t * lock );
@@ -183,7 +183,7 @@ S_INIT_LOCK(slock_t *lock)
183
183
S_UNLOCK (lock );
184
184
}
185
185
186
- #endif /* PORTNAME_i86pc_solaris || PORTNAME_sparc_solaris */
186
+ #endif /* i86pc_solaris || sparc_solaris */
187
187
188
188
/*
189
189
* AIX (POWER)
@@ -192,7 +192,7 @@ S_INIT_LOCK(slock_t *lock)
192
192
* (see storage/ipc.h).
193
193
*/
194
194
195
- #if defined(PORTNAME_aix )
195
+ #if defined(aix )
196
196
197
197
void
198
198
S_LOCK (slock_t * lock )
@@ -213,7 +213,7 @@ S_INIT_LOCK(slock_t *lock)
213
213
S_UNLOCK (lock );
214
214
}
215
215
216
- #endif /* PORTNAME_aix */
216
+ #endif /* aix */
217
217
218
218
/*
219
219
* HP-UX (PA-RISC)
@@ -222,7 +222,7 @@ S_INIT_LOCK(slock_t *lock)
222
222
* (see storage/ipc.h).
223
223
*/
224
224
225
- #if defined(PORTNAME_hpux )
225
+ #if defined(hpux )
226
226
227
227
/* defined in port/.../tas.s */
228
228
extern int tas (slock_t * lock );
@@ -260,7 +260,7 @@ S_LOCK_FREE(slock_t *lock)
260
260
return (* lock_word != 0 );
261
261
}
262
262
263
- #endif /* PORTNAME_hpux */
263
+ #endif /* hpux */
264
264
265
265
/*
266
266
* sun3
@@ -313,7 +313,7 @@ tas_dummy()
313
313
* SPARC (SunOS 4)
314
314
*/
315
315
316
- #if defined(PORTNAME_sparc )
316
+ #if defined(sparc )
317
317
318
318
/* if we're using -ansi w/ gcc, use __asm__ instead of asm */
319
319
#if defined(__STRICT_ANSI__ )
@@ -375,16 +375,16 @@ S_INIT_LOCK(unsigned char *addr)
375
375
* addr = 0 ;
376
376
}
377
377
378
- #endif /* PORTNAME_sparc */
378
+ #endif /* sparc */
379
379
380
380
/*
381
381
* Linux and friends
382
382
*/
383
383
384
- #if defined(PORTNAME_BSD44_derived ) || \
385
- defined(PORTNAME_bsdi ) || \
386
- defined(PORTNAME_bsdi_2_1 ) || \
387
- defined(PORTNAME_linux )
384
+ #if defined(BSD44_derived ) || \
385
+ defined(bsdi ) || \
386
+ defined(bsdi_2_1 ) || \
387
+ defined(linux )
388
388
389
389
int
390
390
tas (slock_t * m )
0 commit comments