ARM VERSION 1.2 Ficha Técnica Página 172

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 276
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 171
The C and C++ Libraries
4-82 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
4.10.7 _sys_ensure()
This function flushes buffers associated with a file handle.
Syntax
int _sys_ensure(FILEHANDLE fh)
Implementation
A call to
_sys_ensure()
flushes any buffersassociated with file handle
fh
, and ensures
that the file is up to date on the backing store medium.
Returns
If an error occurs, the result is negative.
4.10.8 _sys_flen()
This function returns the current length of a file.
Syntax
long _sys_flen(FILEHANDLE fh)
Implementation
The function is required to convert
fseek(, SEEK_END)
into
(, SEEK_SET)
asrequired by
_sys_seek()
.
If
fseek()
is used with an underlying system that does not directly support seeking
relative to the end of a file,
_sys_flen()
must be defined. If the underlying system can
seek relative to the end of a file, you can define
fseek()
so that
_sys_flen()
is not
required.
Returns
This function returns the current length of the file
fh
, or a negative error indicator.
Vista de página 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 275 276

Comentários a estes Manuais

Sem comentários