Last change
on this file since 522 was 305, checked in by Paul Smedley, 17 years ago |
Update source to ALSA 1.0.16 level
|
File size:
433 bytes
|
Line | |
---|
1 | /* $Id: err.h,v 1.1.1.1 2003/07/02 13:57:00 eleph Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _LINUX_ERR_H
|
---|
4 | #define _LINUX_ERR_H
|
---|
5 | #define IS_ERR_VALUE(x) ((x) > (unsigned long)-1000L)
|
---|
6 |
|
---|
7 | static inline void *ERR_PTR(long error)
|
---|
8 | {
|
---|
9 | return (void *) error;
|
---|
10 | }
|
---|
11 |
|
---|
12 | static inline long PTR_ERR(const void *ptr)
|
---|
13 | {
|
---|
14 | return (long) ptr;
|
---|
15 | }
|
---|
16 |
|
---|
17 | static inline long IS_ERR(const void *ptr)
|
---|
18 | {
|
---|
19 | return IS_ERR_VALUE((unsigned long)ptr);
|
---|
20 | }
|
---|
21 |
|
---|
22 | #endif /* _LINUX_ERR_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.