disk_space, disk_get_entry from clib3s.lib

If somebody with access would post this for spam@dave.page in the qssl conferences, it would be much appreciated…

Here is the source to the ‘fixed’ disk_space() and disk_get_entry().

As you can see, they are stubs automatically generated by a tool which had some bad table entries. Both files will build with “wasm”; you should keep the basename as it is, and you can directly overwrite the clib3s.lib entries with the resultant objects. [ careful backups as always ]…

Sorry, I don’t have a qnx machine at hand to test them, but it was a pretty simple change – if you extract and disassemble the original stubs, you will see that they thought there was only one argument to the functions.

Apparently, I don’t know how to attach files, so…
disk_get_entry_stk.s:

.386p
;file disk_get_entry
;version stdc-to-watcom v1.0
;warning: program generated file – do not edit
extrn disk_get_entry_:near
public disk_get_entry
.code

disk_get_entry:
mov edx, 8[esp]
mov eax, 4[esp]
jmp disk_get_entry_
end
disk_space_stk.s:
.386p
;file disk_space
;version stdc-to-watcom v1.0
;warning: program generated file – do not edit
extrn disk_space_:near
public disk_space
.code

disk_space:
push ebx
mov ebx, 16[esp]
mov edx, 12[esp]
mov eax, 8[esp]
call disk_space_
pop ebx
ret
end

~
~