Difference between revisions of "MCSOvwDat2"

From WikiPrizm
Jump to navigationJump to search
(→‎Synopsis: Added header.)
Line 23: Line 23:
  
 
Output could be error codes. Still needs investigation.
 
Output could be error codes. Still needs investigation.
 +
 +
[[Category:Syscalls]]

Revision as of 17:55, 15 May 2012

Synopsis

Header: mcs_syscalls.h

Syscall:

Function declaration: int MCSOvwDat2(unsigned char* dir, unsigned char* item, int bytes_to_write, void* buffer, int write_offset);

Overwrites data in dir\item in main memory starting at write_offset with bytes_to_write bytes of data from buffer

Inputs

  • unsigned char* dir - The name of the directory.
  • unsigned char* item - The name of the item.
  • int bytes_to_write - The length of data to write.
  • void* buffer - The data to write.
  • int write_offset - Where in item to start writing.

Outputs

  • 0 - Success
  • other - Failure

Comments

write_offset could possible be where in data to start reading from--I'm not actually sure.

Output could be error codes. Still needs investigation.