1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
2000-04-18  Ulrich Drepper  <drepper@redhat.com>

	* posix/Makefile (tests): Add tst-getaddrinfo.
	* posix/tst-getaddrinfo.c: New file.

	and setresuid from sysdep_routines.
This commit is contained in:
Ulrich Drepper
2000-04-18 07:56:20 +00:00
parent dbacafe52e
commit cd43f797c4
7 changed files with 96 additions and 8 deletions

View File

@@ -38,9 +38,11 @@ testandset (int *spinlock)
/* Memory barrier; default is to do nothing */
/* FIXME: is stbar OK, or should we use the more general membar instruction?
If so, which mode to pass to membar? */
#define MEMORY_BARRIER() __asm__ __volatile__("stbar" : : : "memory")
#define MEMORY_BARRIER() \
__asm__ __volatile__("membar #LoadLoad | #LoadStore | #StoreLoad | #StoreStore" : : : "memory")
/* Read barrier. */
#define READ_MEMORY_BARRIER() \
__asm__ __volatile__("membar #LoadLoad | #LoadStore" : : : "memory")
/* Write barrier. */
#define WRITE_MEMORY_BARRIER() \
__asm__ __volatile__("membar #StoreLoad | #StoreStore" : : : "memory")