1 --- glibc-2.3.1.orig/sysdeps/hppa/atomicity.h 1969-12-31 19:00:00.000000000 -0500
2 +++ glibc-2.3.1/sysdeps/hppa/atomicity.h 2002-11-07 08:35:55.000000000 -0500
4 +/* Low-level functions for atomic operations. HP-PARISC version.
5 + Copyright (C) 1997,2001 Free Software Foundation, Inc.
6 + This file is part of the GNU C Library.
8 + The GNU C Library is free software; you can redistribute it and/or
9 + modify it under the terms of the GNU Lesser General Public
10 + License as published by the Free Software Foundation; either
11 + version 2.1 of the License, or (at your option) any later version.
13 + The GNU C Library is distributed in the hope that it will be useful,
14 + but WITHOUT ANY WARRANTY; without even the implied warranty of
15 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 + Lesser General Public License for more details.
18 + You should have received a copy of the GNU Lesser General Public
19 + License along with the GNU C Library; if not, write to the Free
20 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24 +#define _ATOMICITY_H 1
26 +#include <inttypes.h>
28 +#warning stub atomicity functions are not atomic
29 +#warning CAO This will get implemented soon
32 +__attribute__ ((unused))
33 +exchange_and_add (volatile uint32_t *mem, int val)
41 +__attribute__ ((unused))
42 +atomic_add (volatile uint32_t *mem, int val)
48 +__attribute__ ((unused))
49 +compare_and_swap (volatile long int *p, long int oldval, long int newval)
58 +#endif /* atomicity.h */