svn_rev_181
add perror function (which does not do much yet)
This commit is contained in:
parent
d8c247e00d
commit
f9a07ee39b
|
@ -30,3 +30,9 @@ void *sbrk (ptrdiff_t increment)
|
|||
|
||||
return ((void *) old);
|
||||
}
|
||||
|
||||
void perror(char *s, int errno)
|
||||
{
|
||||
printf("%s failed with %d\n", s, errno);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef __ERRNO_H
|
||||
#define __ERRNO_H
|
||||
|
||||
void perror(const char *s, int errno);
|
||||
|
||||
#endif /* __ERRNO_H */
|
Loading…
Reference in New Issue