which can be emulated using qemu (for, hopefully, a test suite). Currently it generates images which won't run because there's no RAM.
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			152 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			152 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* $Source$
 | |
|  * $State$
 | |
|  * $Revision$
 | |
|  */
 | |
| 
 | |
| #include <stdlib.h>
 | |
| #include <errno.h>
 | |
| #include <unistd.h>
 | |
| 
 | |
| int close(int fd)
 | |
| {
 | |
| 	errno = EBADF;
 | |
| 	return -1;
 | |
| }
 |