Changeset 76f566d in mainline
- Timestamp:
- 2018-07-05T09:32:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 984a9ba
- Parents:
- 5e904dd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/cap.h
r5e904dd r76f566d 36 36 #define ABI_CAP_H_ 37 37 38 #define CAP_NIL 38 #define CAP_NIL 0 39 39 40 #define CAP_HANDLE_VALID(handle) 41 #define CAP_HANDLE_RAW(handle) 40 #define CAP_HANDLE_VALID(handle) ((handle) != CAP_NIL) 41 #define CAP_HANDLE_RAW(handle) ((intptr_t) (handle)) 42 42 43 43 typedef void *cap_handle_t; … … 45 45 typedef struct { 46 46 } *cap_call_handle_t; 47 47 48 typedef struct { 48 49 } *cap_phone_handle_t; 50 49 51 typedef struct { 50 52 } *cap_irq_handle_t; -
uspace/app/trace/ipcp.h
r5e904dd r76f566d 38 38 #include "proto.h" 39 39 40 void ipcp_init(void);41 void ipcp_cleanup(void);40 extern void ipcp_init(void); 41 extern void ipcp_cleanup(void); 42 42 43 void ipcp_call_out(cap_phone_handle_t, ipc_call_t *, cap_call_handle_t);44 void ipcp_call_sync(cap_phone_handle_t, ipc_call_t *call, ipc_call_t *answer);45 void ipcp_call_in(ipc_call_t *call, cap_call_handle_t);46 void ipcp_hangup(cap_phone_handle_t, errno_t);43 extern void ipcp_call_out(cap_phone_handle_t, ipc_call_t *, cap_call_handle_t); 44 extern void ipcp_call_sync(cap_phone_handle_t, ipc_call_t *, ipc_call_t *); 45 extern void ipcp_call_in(ipc_call_t *, cap_call_handle_t); 46 extern void ipcp_hangup(cap_phone_handle_t, errno_t); 47 47 48 void ipcp_connection_set(cap_phone_handle_t, int server, proto_t *proto);49 void ipcp_connection_clear(cap_phone_handle_t);48 extern void ipcp_connection_set(cap_phone_handle_t, int, proto_t *); 49 extern void ipcp_connection_clear(cap_phone_handle_t); 50 50 51 51 #endif -
uspace/lib/usbhost/include/usb/host/ddf_helpers.h
r5e904dd r76f566d 46 46 47 47 48 e rrno_t hcd_ddf_setup_hc(ddf_dev_t *, size_t);49 void hcd_ddf_clean_hc(hc_device_t *);48 extern errno_t hcd_ddf_setup_hc(ddf_dev_t *, size_t); 49 extern void hcd_ddf_clean_hc(hc_device_t *); 50 50 51 extern device_t *hcd_ddf_fun_create(hc_device_t *, usb_speed_t); 52 extern void hcd_ddf_fun_destroy(device_t *); 51 53 52 device_t *hcd_ddf_fun_create(hc_device_t *, usb_speed_t); 53 void hcd_ddf_fun_destroy(device_t *);54 extern errno_t hcd_ddf_setup_match_ids(device_t *, 55 usb_standard_device_descriptor_t *); 54 56 55 errno_t hcd_ddf_setup_match_ids(device_t *, usb_standard_device_descriptor_t *); 56 57 errno_t hcd_ddf_enable_interrupt(hc_device_t *hcd, int); 58 errno_t hcd_ddf_get_registers(hc_device_t *hcd, hw_res_list_parsed_t *hw_res); 59 60 void hcd_ddf_gen_irq_handler(cap_call_handle_t icall_handle, ipc_call_t *call, ddf_dev_t *dev); 57 extern errno_t hcd_ddf_enable_interrupt(hc_device_t *, int); 58 extern errno_t hcd_ddf_get_registers(hc_device_t *, hw_res_list_parsed_t *); 61 59 62 60 #endif -
uspace/srv/fs/tmpfs/tmpfs.c
r5e904dd r76f566d 53 53 #include "../../vfs/vfs.h" 54 54 55 #define NAME "tmpfs" 56 55 #define NAME "tmpfs" 57 56 58 57 vfs_info_t tmpfs_vfs_info = { … … 65 64 int main(int argc, char **argv) 66 65 { 67 printf( NAME ": HelenOS TMPFS file system server\n");66 printf("%s: HelenOS TMPFS file system server\n", NAME); 68 67 69 68 if (argc == 3) { … … 71 70 tmpfs_vfs_info.instance = strtol(argv[2], NULL, 10); 72 71 else { 73 printf( NAME " Unrecognized parameters");72 printf("%s: Unrecognized parameters", NAME); 74 73 return -1; 75 74 } … … 77 76 78 77 if (!tmpfs_init()) { 79 printf( NAME ": failed to initialize TMPFS\n");78 printf("%s: Failed to initialize TMPFS\n", NAME); 80 79 return -1; 81 80 } … … 84 83 INTERFACE_VFS_DRIVER, 0); 85 84 if (!vfs_sess) { 86 printf( NAME ": Unable to connect to VFS\n");85 printf("%s: Unable to connect to VFS\n", NAME); 87 86 return -1; 88 87 } … … 91 90 &tmpfs_libfs_ops); 92 91 if (rc != EOK) { 93 printf(NAME ": Failed to register file system: %s\n", str_error(rc)); 92 printf("%s: Failed to register file system: %s\n", NAME, 93 str_error(rc)); 94 94 return rc; 95 95 } 96 96 97 printf( NAME ": Accepting connections\n");97 printf("%s: Accepting connections\n", NAME); 98 98 task_retval(0); 99 99 async_manager();
Note:
See TracChangeset
for help on using the changeset viewer.