Changeset 37458472 in mainline


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

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rbb51e9a8 r37458472  
    5555        DIRS += kbd
    5656endif
     57ifeq ($(ARCH), ia64)
     58        DIRS += kbd
     59endif
    5760
    5861BUILDS := $(addsuffix .build,$(DIRS))
  • kbd/generic/kbd.c

    rbb51e9a8 r37458472  
    3232#include <unistd.h>
    3333#include <stdlib.h>
     34#include <stdio.h>
    3435#include <ipc/ns.h>
    3536#include <errno.h>
     
    4748        int res;
    4849        ipcarg_t phonead;
    49         int phoneid;
     50        ipcarg_t phoneid;
    5051        char connected = 0;
    5152        keybuffer_t keybuffer; 
    5253        ipcarg_t retval, arg1, arg2;
    53 
     54       
     55        //open("null",0);
     56        //open("stdout",0);
     57       
    5458        /* Initialize arch dependent parts */
    5559        if (!(res = kbd_arch_init())) {
     
    6569                return -1;
    6670        };
    67        
    6871        while (1) {
    6972                callid = ipc_wait_for_call(&call);
  • 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
  • libc/include/stdio.h

    rbb51e9a8 r37458472  
    3535#define EOF (-1)
    3636
     37#include <io/stream.h>
     38
    3739extern int getchar(void);
    3840
Note: See TracChangeset for help on using the changeset viewer.