 ac9ab099c8
			
		
	
	
		ac9ab099c8
		
	
	
	
	
		
			
			- clean up kernel section of minix/com.h somewhat - remove ALLOCMEM and VM_ALLOCMEM calls - remove non-safecopy and minix-vmd support from Inet - remove SYS_VIRVCOPY and SYS_PHYSVCOPY calls - remove obsolete segment encoding in SYS_SAFECOPY* - remove DEVCTL call, svrctl(FSDEVUNMAP), map_driverX - remove declarations of unimplemented svrctl requests - remove everything related to swapping to disk - remove floppysetup.sh - remove traces of rescue device - update DESCRIBE.sh with new devices - some other small changes
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| 
 | |
| #include "syslib.h"
 | |
| 
 | |
| #include <minix/safecopies.h>
 | |
| 
 | |
| PUBLIC int sys_safecopyfrom(endpoint_t src_e,
 | |
| 	cp_grant_id_t gr_id, vir_bytes offset,
 | |
| 	vir_bytes address, size_t bytes,
 | |
| 	int my_seg)
 | |
| {
 | |
| /* Transfer a block of data for which the other process has previously
 | |
|  * given permission. 
 | |
|  */
 | |
| 
 | |
|   message copy_mess;
 | |
| 
 | |
|   copy_mess.SCP_FROM_TO = src_e;
 | |
|   copy_mess.SCP_SEG = my_seg;
 | |
|   copy_mess.SCP_GID = gr_id;
 | |
|   copy_mess.SCP_OFFSET = (long) offset;
 | |
|   copy_mess.SCP_ADDRESS = (char *) address;
 | |
|   copy_mess.SCP_BYTES = (long) bytes;
 | |
| 
 | |
|   return(_taskcall(SYSTASK, SYS_SAFECOPYFROM, ©_mess));
 | |
| 
 | |
| }
 | |
| 
 | |
| PUBLIC int sys_safecopyto(endpoint_t dst_e,
 | |
| 	cp_grant_id_t gr_id, vir_bytes offset,
 | |
| 	vir_bytes address, size_t bytes,
 | |
| 	int my_seg)
 | |
| {
 | |
| /* Transfer a block of data for which the other process has previously
 | |
|  * given permission. 
 | |
|  */
 | |
| 
 | |
|   message copy_mess;
 | |
| 
 | |
|   copy_mess.SCP_FROM_TO = dst_e;
 | |
|   copy_mess.SCP_SEG = my_seg;
 | |
|   copy_mess.SCP_GID = gr_id;
 | |
|   copy_mess.SCP_OFFSET = (long) offset;
 | |
|   copy_mess.SCP_ADDRESS = (char *) address;
 | |
|   copy_mess.SCP_BYTES = (long) bytes;
 | |
| 
 | |
|   return(_taskcall(SYSTASK, SYS_SAFECOPYTO, ©_mess));
 | |
| 
 | |
| }
 |