Use pal api interface without prefix of libos type.
Signed-off-by: jack.wxz <wangxiaozhe@linux.alibaba.com>
This commit is contained in:
		
							parent
							
								
									a0d7b96a8f
								
							
						
					
					
						commit
						cfbab68a9d
					
				| @ -6,6 +6,12 @@ | |||||||
|         occlum_pal_exec; |         occlum_pal_exec; | ||||||
|         occlum_pal_kill; |         occlum_pal_kill; | ||||||
|         occlum_pal_destroy; |         occlum_pal_destroy; | ||||||
|  |         pal_get_version; | ||||||
|  |         pal_init; | ||||||
|  |         pal_create_process; | ||||||
|  |         pal_exec; | ||||||
|  |         pal_kill; | ||||||
|  |         pal_destroy; | ||||||
|     local: |     local: | ||||||
|         *; |         *; | ||||||
| }; | }; | ||||||
|  | |||||||
| @ -157,3 +157,18 @@ int occlum_pal_destroy(void) { | |||||||
|     } |     } | ||||||
|     return 0; |     return 0; | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | int pal_get_version(void) __attribute__((weak, alias ("occlum_pal_get_version"))); | ||||||
|  | 
 | ||||||
|  | int pal_init(const struct occlum_pal_attr *attr)\ | ||||||
|  | __attribute__ ((weak, alias ("occlum_pal_init"))); | ||||||
|  | 
 | ||||||
|  | int pal_create_process(struct occlum_pal_create_process_args *args)\ | ||||||
|  | __attribute__ ((weak, alias ("occlum_pal_create_process"))); | ||||||
|  | 
 | ||||||
|  | int pal_exec(struct occlum_pal_exec_args *args)\ | ||||||
|  | __attribute__ ((weak, alias ("occlum_pal_exec"))); | ||||||
|  | 
 | ||||||
|  | int pal_kill(int pid, int sig) __attribute__ ((weak, alias ("occlum_pal_kill"))); | ||||||
|  | 
 | ||||||
|  | int pal_destroy(void) __attribute__ ((weak, alias ("occlum_pal_destroy"))); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user