[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qemu-thread-posix: Fix build against older glib
From: |
Ed Maste |
Subject: |
Re: [Qemu-devel] [PATCH] qemu-thread-posix: Fix build against older glibc version |
Date: |
Wed, 2 Apr 2014 10:18:04 -0400 |
On 11 March 2014 12:13, Dr. David Alan Gilbert <address@hidden> wrote:
> Except pthread_setname_np is not portable and was previously
> ifdef'd _GNU_SOURCE anyway, and the parameters on other OSs
> maybe different (freebsd has got a 3rd parameter for no
> apparent reason).
No, glibc's arguments are identical to FreeBSD's. The difference is
that it's pthread_set_name_np (with an extra underscore).
FreeBSD: void pthread_set_name_np(pthread_t, const char *);
glibc: int pthread_setname_np(pthread_t, const char *);
NetBSD: int pthread_setname_np(pthread_t, const char *, void *);
Darwin: pthread_setname_np(const char *);
- Re: [Qemu-devel] [PATCH] qemu-thread-posix: Fix build against older glibc version,
Ed Maste <=