VirtualBox

Changeset 1222 in kBuild for trunk/src/kash/shfile.c


Ignore:
Timestamp:
Oct 8, 2007 12:24:31 AM (17 years ago)
Author:
bird
Message:

more fixes - it all compiles now (linking fails of course).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shfile.c

    r1218 r1222  
    22/** @file
    33 *
    4  * File management. 
     4 * File management.
    55 *
    66 * Copyright (c) 2007 knut st. osmundsen <[email protected]>
     
    2626
    2727#include "shfile.h"
     28#include <stdlib.h>
    2829
    29 #include <stdlib.h>
    30 #include <unistd.h>
     30#ifdef KBUILD_OS_WINDOWS
     31//# include <io.h>
     32#else
     33# include <unistd.h>
     34# include <fcntl.h>
     35#endif
    3136
    3237
    33 int shfile_open(shfdtab *pfdtab, const char *name, unsigned flags)
     38int shfile_open(shfdtab *pfdtab, const char *name, unsigned flags, mode_t mode)
    3439{
    35     return open(name, flags);
     40//    return open(name, flags);
     41    return -1;
    3642}
    3743
     
    3945int shfile_close(shfdtab *pfdtab, unsigned fd)
    4046{
    41     return close(fd);
     47//    return close(fd);
     48    return -1;
    4249}
    4350
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette