ARM VERSION 1.2 Ficha de datos Pagina 157

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 176
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 156
Semihosting
ARM DUI0058D Copyright © 1999-2001 ARM Limited. All rights reserved. 5-19
5.4.11 SYS_FLEN (0x0C)
Returns the length of a specified file.
Entry
On entry, r1 contains a pointer to a one-word argument block:
word 1 This is a handle for a previously opened, seekable file object.
Return
On exit, r0 contains:
the current length of the file object, if the call is successful
•–1 if an error occurs.
5.4.12 SYS_TMPNAM (0x0D)
Returns a temporary name for a file identified by a system file identifier.
Entry
On entry, r1 contains a pointer to a three-word argument block:
word 1 This is a pointer to a buffer.
word 2 This is a target identifier for this filename. Its value must be an integer in
the range 0 to 255.
word 3 This contains the length of the buffer. The length must be at least the
value of
L_tmpnam
on the host system.
Return
On exit, r0 contains:
0 if the call is successful
•–1 if an error occurs.
The buffer pointed to by r1 contains the filename, prefixed with a suitable directory
name.
If you use the same target identifier again, the same filename is returned.
Vista de pagina 156
1 2 ... 152 153 154 155 156 157 158 159 160 161 162 ... 175 176

Comentarios a estos manuales

Sin comentarios