RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_File 24

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_File
» OS_File 24

OS_ File 24

(SWI &08)
Entry
R0 24 (reason code)
R1 Pointer to filename
Exit
R0 Preserved
R1 Preserved
R2 Natural block size in bytes

Use

The purpose of this call is to find the natural block size of a given file.

Notes

When you create or extend a file, disc space can only be allocated in chunks of a minimum size (512 bytes, for example). If your file is just 1 byte long for example, 511 bytes of disc space may have to be wasted after it if the natural block size is 512.

See also

  • OS_File
Created on November 10, 2009 22:16:26 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS_File, OS_FSControl 46

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys