 2fe8fb192f
			
		
	
	
		2fe8fb192f
		
	
	
	
	
		
			
			There is important information about booting non-ack images in docs/UPDATING. ack/aout-format images can't be built any more, and booting clang/ELF-format ones is a little different. Updating to the new boot monitor is recommended. Changes in this commit: . drop boot monitor -> allowing dropping ack support . facility to copy ELF boot files to /boot so that old boot monitor can still boot fairly easily, see UPDATING . no more ack-format libraries -> single-case libraries . some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases . drop several ack toolchain commands, but not all support commands (e.g. aal is gone but acksize is not yet). . a few libc files moved to netbsd libc dir . new /bin/date as minix date used code in libc/ . test compile fix . harmonize includes . /usr/lib is no longer special: without ack, /usr/lib plays no kind of special bootstrapping role any more and bootstrapping is done exclusively through packages, so releases depend even less on the state of the machine making them now. . rename nbsd_lib* to lib* . reduce mtree
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*	$NetBSD: rmt.h,v 1.6 2010/08/31 05:12:35 enami Exp $	*/
 | |
| 
 | |
| /*
 | |
|  *	rmt.h
 | |
|  *
 | |
|  *	Added routines to replace open(), close(), lseek(), ioctl(), etc.
 | |
|  *	The preprocessor can be used to remap these the rmtopen(), etc
 | |
|  *	thus minimizing source changes.
 | |
|  *
 | |
|  *	This file must be included before <sys/stat.h>, since it redefines
 | |
|  *	stat to be rmtstat, so that struct stat xyzzy; declarations work
 | |
|  *	properly.
 | |
|  *
 | |
|  *	-- Fred Fish (w/some changes by Arnold Robbins)
 | |
|  */
 | |
| 
 | |
| #ifndef _RMT_H_
 | |
| #define _RMT_H_
 | |
| 
 | |
| #include <sys/cdefs.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| int	isrmt(int);
 | |
| int	rmtaccess(const char *, int);
 | |
| int	rmtclose(int);
 | |
| int	rmtcreat(const char *, mode_t);
 | |
| int	rmtdup(int);
 | |
| int	rmtfcntl(int, int, ...);
 | |
| int	rmtfstat(int, struct stat *);
 | |
| int	rmtioctl(int, unsigned long, ...);
 | |
| int	rmtisatty(int);
 | |
| off_t	rmtlseek(int, off_t, int);
 | |
| int	rmtlstat(const char *, struct stat *);
 | |
| int	rmtopen(const char *, int, ...);
 | |
| ssize_t	rmtread(int, void *, size_t);
 | |
| int	rmtstat(const char *, struct stat *);
 | |
| ssize_t	rmtwrite(int, const void *, size_t);
 | |
| __END_DECLS
 | |
| 
 | |
| #ifndef __RMTLIB_PRIVATE	/* don't remap if building librmt */
 | |
| #define access rmtaccess
 | |
| #define close rmtclose
 | |
| #define creat rmtcreat
 | |
| #define dup rmtdup
 | |
| #define fcntl rmtfcntl
 | |
| #define fstat rmtfstat
 | |
| #define ioctl rmtioctl
 | |
| #define isatty rmtisatty
 | |
| #define lseek rmtlseek
 | |
| #define lstat rmtlstat
 | |
| #define open rmtopen
 | |
| #define read rmtread
 | |
| #define stat rmtstat
 | |
| #define write rmtwrite
 | |
| #endif /* __RMTLIB_PRIVATE */
 | |
| 
 | |
| #endif /* _RMT_H_ */
 |