Changeset 37458472 in mainline for libc/generic/io/stream.c


Ignore:
Timestamp:
2006-06-02T14:11:10Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b5111a
Parents:
bb51e9a8
Message:

Ia64 uspace keuboard uspace part

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/io/stream.c

    rbb51e9a8 r37458472  
    118118}
    119119
     120static ssize_t write_null(void *param, const void *buf, size_t count)
     121{
     122        return count;
     123}
     124
     125
    120126fd_t open(const char *fname, int flags)
    121127{
     
    143149                return c;
    144150        }
     151        if (!strcmp(fname, "null")) {
     152                streams[c].w = write_null;
     153                return c;
     154        }
    145155}
    146156
Note: See TracChangeset for help on using the changeset viewer.