OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [libposix/] [errno.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#include <errno.h>
2
#include <stdio.h>
3
#include <libposix.h>
4
 
5
int errno_variable;
6
 
7
void perror(const char *str)
8
{
9
        print_err("%s: %d\n", str, errno);
10
}
11
 
12
int *__errno_location(void)
13
{
14
        return &errno_variable;
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.