errno_value [function]

errno_value( string key )

returns the number for the error key (for "ENOENT" it would return 2)

data = io_file_read( "doesnotexist" );
if( errno() == error_string("ENOENT") )
    println( "file does not exist" );