LibC: open() now just returns syscall(SYS_OPEN, ...)
errno is handled in syscall()
This commit is contained in:
		
							parent
							
								
									3d95cf02f3
								
							
						
					
					
						commit
						2a34391b71
					
				|  | @ -5,11 +5,5 @@ | ||||||
| 
 | 
 | ||||||
| int open(const char* path, int oflag, ...) | int open(const char* path, int oflag, ...) | ||||||
| { | { | ||||||
| 	int ret = syscall(SYS_OPEN, path, oflag); | 	return syscall(SYS_OPEN, path, oflag); | ||||||
| 	if (ret < 0) |  | ||||||
| 	{ |  | ||||||
| 		errno = -ret; |  | ||||||
| 		return -1; |  | ||||||
| 	} |  | ||||||
| 	return ret; |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue