[BUSH User Guide]
 
Home Page Introduction Tutorials Reference Packages Hacking
 
  Packages  
4.1 Using Packages
4.2 text_io (Console I/O)
4.3 text_io (File I/O)
4.4 sound
4.5 source_info
4.6 System
4.7 numerics
4.8 strings
4.9 command_line
4.10 lock_files
4.11 cgi
4.12 calendar
4.13 units
4.14 arrays
4.15 files
4.16 db (Database)
4.17 stats
4.18 pen
4.19 mysql
4.20 os
4.21 directory_operations
 
This part of the guide contains detailed descriptions of the BUSH built-in packages.
 

4.6 System Package

The BUSH System package provides information about the computer a script is running on, including the numeric precision limits, size of the basic memory units, amount of free memory and more.

GCC Ada equivalent: System

  • System.System_Name - name of the system...string "SYSTEM_NAME_BUSH"
  • System.Min_Int - smallest integer
  • System.Max_Int - largest integer
  • System.Max_Binary_Modulus - maximum size for a modular type (if power of 2
  • System.Max_Nonbinary_Modulus - maximum size for a modular type (if not power of 2)
  • System.Max_Base_Digits - maximum decimal precision for a range
  • System.Max_Digits - largest number of digits allowed for a floating-point number
  • System.Max_Mantissa - largest number of binary digits allowed for a fixed-point number
  • System.Fine_Delta - smallest delta allowed for a fixed-point number
  • System.Tick - basic clock period in seconds
  • System.Storage_Unit - number of bits per unit of storage (e.g. 8 bits)
  • System.Word_Size - size of a word in bits (e.g. 32)
  • System.Memory_Size - number of available storage units (e.g. 4 Gig of virtual memory)
  • System.Default_Bit_Order - the "endianness" of your computer (eg. HIGH_ORDER_FIRST)
  • System.Login_Shell - (boolean) true if this is a login shell (AdaScript extension)
  • System.Restricted_Shell - (boolean) true if this is a restricted shell (AdaScript extension)
BUSH is case-sensitve.  "system.system_name" is not the same as "System.System_Name".

=> ? System.Memory_Size
 4294967296
 

 Back to Top