Annotation of linux/lib/open.c, revision 1.1.1.1

1.1       root        1: #define __LIBRARY__
                      2: #include <unistd.h>
                      3: #include <stdarg.h>
                      4: 
                      5: int open(const char * filename, int flag, ...)
                      6: {
                      7:        register int res;
                      8:        va_list arg;
                      9: 
                     10:        va_start(arg,flag);
                     11:        __asm__("int $0x80"
                     12:                :"=a" (res)
                     13:                :"0" (__NR_open),"b" (filename),"c" (flag),
                     14:                "d" (va_arg(arg,int)));
                     15:        if (res>=0)
                     16:                return res;
                     17:        errno = -res;
                     18:        return -1;
                     19: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.