Changed stat() interface
This commit is contained in:
		
							parent
							
								
									1903555355
								
							
						
					
					
						commit
						9d3696befe
					
				
					 6 changed files with 48 additions and 8 deletions
				
			
		|  | @ -36,9 +36,8 @@ fcntl.s | ||||||
| flock.s | flock.s | ||||||
| fork.s | fork.s | ||||||
| _fork.s | _fork.s | ||||||
| Xstat.c |  | ||||||
| _Xstat.c |  | ||||||
| fstat.s | fstat.s | ||||||
|  | _fstat.s | ||||||
| fstatfs.s | fstatfs.s | ||||||
| fsync.s | fsync.s | ||||||
| ftime.c | ftime.c | ||||||
|  | @ -192,3 +191,4 @@ uname.c | ||||||
| vadvise.s | vadvise.s | ||||||
| vfork.s | vfork.s | ||||||
| wait3.s | wait3.s | ||||||
|  | __statcvt.s | ||||||
|  |  | ||||||
							
								
								
									
										27
									
								
								mach/sun3/libsys/__statcvt.s
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								mach/sun3/libsys/__statcvt.s
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,27 @@ | ||||||
|  | .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
 | ||||||
|  | .define ___statcvt
 | ||||||
|  | ___statcvt: | ||||||
|  | move.l (4,sp),a0 | ||||||
|  | lea (60,a0),a0 | ||||||
|  | lea (4,a0),a1 | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.w -(a0),-(a1) | ||||||
|  | clr.w -(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.l -(a0),-(a1) | ||||||
|  | move.w -(a0),-(a1) | ||||||
|  | clr.w -(a1) | ||||||
|  | move.w -(a0),-(a1) | ||||||
|  | clr.l d0 | ||||||
|  | rts | ||||||
							
								
								
									
										7
									
								
								mach/sun3/libsys/_fstat.s
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								mach/sun3/libsys/_fstat.s
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | ||||||
|  | #include "syscall.h" | ||||||
|  | .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
 | ||||||
|  | .define __fstat
 | ||||||
|  | __fstat: pea (SYS_fstat); trap #0; bcc 1f; jmp (cerror)
 | ||||||
|  | 1: | ||||||
|  | 	move.l	(sp)+,(sp) | ||||||
|  | 	jmp	(___statcvt) | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| #include "syscall.h" | #include "syscall.h" | ||||||
| .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
 | .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
 | ||||||
| .define ___fstat
 | .define _fstat
 | ||||||
| ___fstat: SYSTEM(SYS_fstat) | _fstat: jmp (__fstat) | ||||||
|  |  | ||||||
|  | @ -1,4 +1,7 @@ | ||||||
| #include "syscall.h" | #include "syscall.h" | ||||||
| .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
 | .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
 | ||||||
| .define __lstat
 | .define _lstat
 | ||||||
| __lstat: SYSTEM(SYS_lstat) | _lstat: pea (SYS_lstat); trap #0; bcc 1f; jmp (cerror)
 | ||||||
|  | 1: | ||||||
|  | 	move.l	(sp)+,(sp) | ||||||
|  | 	jmp	(___statcvt) | ||||||
|  |  | ||||||
|  | @ -1,4 +1,7 @@ | ||||||
| #include "syscall.h" | #include "syscall.h" | ||||||
| .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
 | .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
 | ||||||
| .define __stat
 | .define _stat
 | ||||||
| __stat: SYSTEM(SYS_stat) | _stat: pea (SYS_stat); trap #0; bcc 1f; jmp (cerror)
 | ||||||
|  | 1: | ||||||
|  | 	move.l	(sp)+,(sp) | ||||||
|  | 	jmp	(___statcvt) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue