Changeset 0eb58f1 in mainline
- Timestamp:
- 2007-06-20T20:53:19Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6765c07
- Parents:
- 84947a4
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/errno.h
r84947a4 r0eb58f1 38 38 /* 1-255 are kernel error codes, 256-512 are user error codes */ 39 39 40 #define EOK 40 #define EOK 0 /* No error */ 41 41 #define ENOENT -1 /* No such entry */ 42 42 #define ENOMEM -2 /* Not enough memory */ … … 45 45 #define EFORWARD -5 /* Forward error */ 46 46 #define EPERM -6 /* Permission denied */ 47 #define EHANGUP -7 /* Answerbox closed connection, call sys_ipc_hangup 48 * to close the connection. Used by answerbox 49 * to close the connection. */ 47 #define EHANGUP -7 /* Answerbox closed connection, call 48 * sys_ipc_hangup() to close the connection. 49 * Used by answerbox to close the connection. 50 */ 50 51 #define EEXISTS -8 /* Entry already exists */ 51 52 #define EBADMEM -9 /* Bad memory pointer */ -
uspace/fb/ega.h
r84947a4 r0eb58f1 35 35 */ 36 36 37 #ifndef _EGA_H_38 #define _EGA_H_37 #ifndef FB_EGA_H_ 38 #define FB_EGA_H_ 39 39 40 int ega_init(void);40 extern int ega_init(void); 41 41 42 42 #endif -
uspace/fb/fb.h
r84947a4 r0eb58f1 34 34 */ 35 35 36 #ifndef _FB_H_37 #define _FB_H_36 #ifndef FB_FB_H_ 37 #define FB_FB_H_ 38 38 39 typedef void (* putpixel_cb_t)(void *, unsigned int, unsigned int, int);39 typedef void (* putpixel_cb_t)(void *, unsigned int, unsigned int, int); 40 40 41 int fb_init(void);41 extern int fb_init(void); 42 42 43 43 #endif … … 45 45 /** @} 46 46 */ 47 -
uspace/fb/font-8x16.h
r84947a4 r0eb58f1 27 27 */ 28 28 29 #ifndef __FONT_8X16_H__30 #define __FONT_8X16_H__29 #ifndef FB_FONT_8X16_H_ 30 #define FB_FONT_8X16_H_ 31 31 32 #define FONT_GLIPHS 32 #define FONT_GLIPHS 256 33 33 #define FONT_SCANLINES 16 34 34 -
uspace/fb/main.h
r84947a4 r0eb58f1 27 27 */ 28 28 29 #ifndef __MAIN_H_30 #define __MAIN_H_29 #ifndef FB_MAIN_H_ 30 #define FB_MAIN_H_ 31 31 32 void receive_comm_area(ipc_callid_t callid, ipc_call_t *call, void **area);32 extern void receive_comm_area(ipc_callid_t, ipc_call_t *, void **); 33 33 34 34 #endif -
uspace/fb/ppm.h
r84947a4 r0eb58f1 27 27 */ 28 28 29 #ifndef _PPM_H_30 #define _PPM_H_29 #ifndef FB_PPM_H_ 30 #define FB_PPM_H_ 31 31 32 32 #include "fb.h" 33 33 34 int ppm_draw(unsigned char *data, size_t datasz, unsigned int sx, 35 unsigned int sy, 36 unsigned int maxwidth, unsigned int maxheight, 37 putpixel_cb_t fnc,void *); 38 int ppm_get_data(unsigned char *data, size_t dtsz, unsigned int *width, unsigned int *height); 34 extern int ppm_draw(unsigned char *, size_t, unsigned int, unsigned int, 35 unsigned int, unsigned int, putpixel_cb_t, void *); 36 extern int ppm_get_data(unsigned char *, size_t, unsigned int *, unsigned int *); 39 37 40 38 #endif -
uspace/fb/sysio.h
r84947a4 r0eb58f1 35 35 */ 36 36 37 #ifndef _SYSIO_H_38 #define _SYSIO_H_37 #ifndef FB_SYSIO_H_ 38 #define FB_SYSIO_H_ 39 39 40 void sysio_init(void);40 extern void sysio_init(void); 41 41 42 42 #endif … … 44 44 /** @} 45 45 */ 46 -
uspace/ns/ns.c
r84947a4 r0eb58f1 56 56 57 57 static int register_service(ipcarg_t service, ipcarg_t phone, ipc_call_t *call); 58 static int connect_to_service(ipcarg_t service, ipc_call_t *call, ipc_callid_t callid); 58 static int connect_to_service(ipcarg_t service, ipc_call_t *call, 59 ipc_callid_t callid); 59 60 60 61 /* Static functions implementing NS hash table operations. */ … … 84 85 static void *klogaddr = NULL; 85 86 86 static void get_as_area(ipc_callid_t callid, ipc_call_t *call, char *name, void **addr) 87 static void get_as_area(ipc_callid_t callid, ipc_call_t *call, char *name, 88 void **addr) 87 89 { 88 90 void *ph_addr; … … 107 109 ipcarg_t retval; 108 110 109 if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, &ns_hash_table_ops)) { 111 if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, 112 &ns_hash_table_ops)) { 110 113 return ENOMEM; 111 114 } … … 135 138 * Server requests service registration. 136 139 */ 137 retval = register_service(IPC_GET_ARG1(call), IPC_GET_ARG3(call), &call); 140 retval = register_service(IPC_GET_ARG1(call), 141 IPC_GET_ARG3(call), &call); 138 142 break; 139 143 case IPC_M_CONNECT_ME_TO: … … 141 145 * Client requests to be connected to a service. 142 146 */ 143 retval = connect_to_service(IPC_GET_ARG1(call), &call, callid); 147 retval = connect_to_service(IPC_GET_ARG1(call), &call, 148 callid); 144 149 break; 145 150 default: … … 147 152 break; 148 153 } 149 if (! 154 if (!(callid & IPC_CALLID_NOTIFICATION)) { 150 155 ipc_answer_fast(callid, retval, 0, 0); 151 156 } … … 163 168 int register_service(ipcarg_t service, ipcarg_t phone, ipc_call_t *call) 164 169 { 165 unsigned long keys[3] = { service, call->in_phone_hash, 0 }; 170 unsigned long keys[3] = { 171 service, 172 call->in_phone_hash, 173 0 174 }; 166 175 hashed_service_t *hs; 167 176
Note:
See TracChangeset
for help on using the changeset viewer.