Package platformids :: Package custom :: Module minix

Module minix

source code

Example for a dynamic added custom platform.

Here Minix as a new OS type, which actually has a default release version layout, and though could be handled by the default handler.


Version: 0.0.1

Author: Arno-Can Uestuensoez

License: Artistic-License-2.0 + Forced-Fairplay-Constraints

Functions
 
my_distrel2tuple(rte=RTE)
A custom example only - standard encoding is default layout.
source code
Variables
  __uuid__ = "7add5ded-c39b-4b6e-8c87-1b3a1c150ee9"
  RTE_MINIX = RTE_POSIX+ custom_ostype.add_enum()
Minix as ostype
  RTE_MINIX3 = RTE_MINIX+ custom_dist.add_enum()
Minix3 as dist
  RTE_MINIX321 = RTE_MINIX+ 0x00000641
Minix-3.2.1
  RTE_MINIX330 = RTE_MINIX+ 0x00000660
Minix-3.3.0
Function Details

my_distrel2tuple(rte=RTE)

source code 

 A custom example only - standard encoding is default layout.

 Convert the *Minix* specific *distrel* version layout
 to a tuple.
 
 A callback to be used by the function:
 
    platformids.decode_rte_distrel_to_segments(rte=RTE)
 
 Decodes the compressed *distrel* from the 32bit integer
 bitmask *rte* into the corresponding tuple of integer
 segments.

Args:
    rte:
        The comppressed runtime environment identifier bitmask.
         
        default := RTE

Returns:
    Tuple of Integer values of the encoded segments, either
    as defined by the default layout, or any known as defined
    by additional extended and/or custom criteria.
 
Raises:
    pass-through

Examples:
  ::

     decode_rte_distrel_to_segments()     
     =>  (3, 2, 1)     # on Minix-3.2.1
     =>  (3, 3, 0)     # on Minix-3.3.0

 

Decorators: