Add unlink system call.
This commit is contained in:
		
							parent
							
								
									56e13e24e0
								
							
						
					
					
						commit
						8c94b1316c
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		
							
								
								
									
										8
									
								
								plat/linux/libsys/unlink.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								plat/linux/libsys/unlink.c
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | ||||||
|  | #include <unistd.h> | ||||||
|  | #include "libsys.h" | ||||||
|  | 
 | ||||||
|  | int unlink(const char* pathname) | ||||||
|  | { | ||||||
|  |     return _syscall(__NR_unlink, (quad) pathname, 0, 0); | ||||||
|  | } | ||||||
|  | 
 | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue