summaryrefslogtreecommitdiff
path: root/ifileIO3.s
diff options
context:
space:
mode:
authorJohn van Groningen2003-10-06 12:32:44 +0000
committerJohn van Groningen2003-10-06 12:32:44 +0000
commit9091360c8ef8e29297aafb2d2c45af36909e37e6 (patch)
tree84a3376ad679716a4c844f5167eb1fe0b20e2e9c /ifileIO3.s
parentadd assembly files for solaris (diff)
add flushF
Diffstat (limited to 'ifileIO3.s')
-rw-r--r--ifileIO3.s13
1 files changed, 12 insertions, 1 deletions
diff --git a/ifileIO3.s b/ifileIO3.s
index 5ffc0aa..fbd70f7 100644
--- a/ifileIO3.s
+++ b/ifileIO3.s
@@ -55,6 +55,7 @@ fwritestring_error:
.globl positionF
.globl seekF
.globl shareF
+ .globl flushF
.globl openSF
.globl readSFC
@@ -95,6 +96,7 @@ fwritestring_error:
.globl @file_position
.globl @file_seek
.globl @file_share
+ .globl @flush_file_buffer
.globl @open_s_file
.globl @file_read_s_char
@@ -501,7 +503,16 @@ shareF:
movl $-1,d0
ret
-
+
+flushF:
+ pushl d1
+ call @flush_file_buffer
+ movl 4(sp),a2
+ xchg d0,d1
+ movl $-1,4(sp)
+ movl a2,(sp)
+ ret
+
openSF: pushl d0
addl $4,a0
pushl a0