[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Linux-cluster] [PATCH] Get rid of non portable _syscall0
- From: "Adam Conrad" <adconrad ubuntu com>
- To: "linux clustering" <linux-cluster redhat com>
- Cc: Jeff Bailey <jbailey ubuntu com>, Adam Conrad <adconrad ubuntu com>
- Subject: Re: [Linux-cluster] [PATCH] Get rid of non portable _syscall0
- Date: Sat, 11 Jun 2005 02:37:02 +1000 (EST)
Lon Hohberger wrote:
>
> Similarly, the code is written to rely on the documented behavior. So,
> when it's not available, maybe the wrapper should return
> (pid_t)pthread_self() instead of -ENOSYS?
I threw -ENOSYS in mostly as a sanity check. If the suite is meant to be
portable to other POSIX systems, you'll certainly want to do something
else if gettid() doesn't exist, since it's linux-specific. The only aim
of the patch was to shoot for portability accross all Linux platforms
(many of which don't have _syscall magic macros, and word on the street is
that we may not have them on any arches in the future).
... Adam
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]