| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Licensed Materials - Property of IBM | 3 * Licensed Materials - Property of IBM |
| 4 * | 4 * |
| 5 * trousers - An open source TCG Software Stack | 5 * trousers - An open source TCG Software Stack |
| 6 * | 6 * |
| 7 * (C) Copyright International Business Machines Corp. 2004 | 7 * (C) Copyright International Business Machines Corp. 2004 |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 TSS_RESULT conf_file_init(struct tcsd_config *); | 127 TSS_RESULT conf_file_init(struct tcsd_config *); |
| 128 void conf_file_final(struct tcsd_config *); | 128 void conf_file_final(struct tcsd_config *); |
| 129 TSS_RESULT ps_dirs_init(); | 129 TSS_RESULT ps_dirs_init(); |
| 130 void tcsd_signal_handler(int); | 130 void tcsd_signal_handler(int); |
| 131 | 131 |
| 132 /* threading structures */ | 132 /* threading structures */ |
| 133 struct tcsd_thread_data | 133 struct tcsd_thread_data |
| 134 { | 134 { |
| 135 int sock; | 135 int sock; |
| 136 UINT32 context; | 136 UINT32 context; |
| 137 » THREAD_TYPE thread_id; | 137 » THREAD_TYPE *thread_id; |
| 138 char *hostname; | 138 char *hostname; |
| 139 struct tcsd_comm_data comm; | 139 struct tcsd_comm_data comm; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 struct tcsd_thread_mgr | 142 struct tcsd_thread_mgr |
| 143 { | 143 { |
| 144 MUTEX_DECLARE(lock); | 144 MUTEX_DECLARE(lock); |
| 145 struct tcsd_thread_data *thread_data; | 145 struct tcsd_thread_data *thread_data; |
| 146 | 146 |
| 147 int shutdown; | 147 int shutdown; |
| 148 UINT32 num_active_threads; | 148 UINT32 num_active_threads; |
| 149 UINT32 max_threads; | 149 UINT32 max_threads; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 TSS_RESULT tcsd_threads_init(); | 152 TSS_RESULT tcsd_threads_init(); |
| 153 TSS_RESULT tcsd_threads_final(); | 153 TSS_RESULT tcsd_threads_final(); |
| 154 TSS_RESULT tcsd_thread_create(int, char *); | 154 TSS_RESULT tcsd_thread_create(int, char *); |
| 155 void *tcsd_thread_run(void *); | 155 void *tcsd_thread_run(void *); |
| 156 void thread_signal_init(); | 156 void thread_signal_init(); |
| 157 | 157 |
| 158 /* signal handling */ | 158 /* signal handling */ |
| 159 struct sigaction tcsd_sa_int; | 159 struct sigaction tcsd_sa_int; |
| 160 struct sigaction tcsd_sa_chld; | 160 struct sigaction tcsd_sa_chld; |
| 161 | 161 |
| 162 #endif | 162 #endif |
| OLD | NEW |