Changeset 37458472 in mainline
- Timestamp:
- 2006-06-02T14:11:10Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b5111a
- Parents:
- bb51e9a8
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rbb51e9a8 r37458472 55 55 DIRS += kbd 56 56 endif 57 ifeq ($(ARCH), ia64) 58 DIRS += kbd 59 endif 57 60 58 61 BUILDS := $(addsuffix .build,$(DIRS)) -
kbd/generic/kbd.c
rbb51e9a8 r37458472 32 32 #include <unistd.h> 33 33 #include <stdlib.h> 34 #include <stdio.h> 34 35 #include <ipc/ns.h> 35 36 #include <errno.h> … … 47 48 int res; 48 49 ipcarg_t phonead; 49 i nt phoneid;50 ipcarg_t phoneid; 50 51 char connected = 0; 51 52 keybuffer_t keybuffer; 52 53 ipcarg_t retval, arg1, arg2; 53 54 55 //open("null",0); 56 //open("stdout",0); 57 54 58 /* Initialize arch dependent parts */ 55 59 if (!(res = kbd_arch_init())) { … … 65 69 return -1; 66 70 }; 67 68 71 while (1) { 69 72 callid = ipc_wait_for_call(&call); -
libc/generic/io/stream.c
rbb51e9a8 r37458472 118 118 } 119 119 120 static ssize_t write_null(void *param, const void *buf, size_t count) 121 { 122 return count; 123 } 124 125 120 126 fd_t open(const char *fname, int flags) 121 127 { … … 143 149 return c; 144 150 } 151 if (!strcmp(fname, "null")) { 152 streams[c].w = write_null; 153 return c; 154 } 145 155 } 146 156 -
libc/include/stdio.h
rbb51e9a8 r37458472 35 35 #define EOF (-1) 36 36 37 #include <io/stream.h> 38 37 39 extern int getchar(void); 38 40
Note:
See TracChangeset
for help on using the changeset viewer.