pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:3531:    if( !file_stat(fn) )    {    if( file_stat(fn+".pike") )    fn += ".pike";    else    exit(1, "Could not find file %O.\n", fn);    }    if( !file_stat(fn)->isreg )    exit(1, "File %O is not a regular file.\n", fn);    if( !master_read_file(fn) ) -  exit(1, "File %O is not readable. %s.\n", -  fn, strerror(errno())); +  exit(1, "File %O is not readable. %m.\n", fn);    if (objectp (err) && err->is_cpp_or_compilation_error)    exit(1, "Pike: Failed to compile script.\n");    else    exit(1, "Pike: Failed to compile script:\n"    "%s", call_describe_backtrace(err));    }       // Don't list the program with its real path in the programs    // mapping, so that reverse lookups (typically by the codec)    // always find the canonical "/main" instead.
pike.git/lib/master.pike.in:5418:       CompatResolver ret;       if(!undefinedp(ret=compat_handler_cache[v])) return ret;       array(string) files;    array(Version) available=({});      #if "#share_prefix#"[0]!='#'    if (!(files = master_get_dir("#share_prefix#"))) { -  werror ("Error listing directory %O: %s\n", -  "#share_prefix#", strerror (errno())); +  werror ("Error listing directory %O: %m.\n", +  "#share_prefix#");    files = ({});    }    foreach(files, string ver)    {    if(sscanf(ver,"%d.%d",int maj, int min))    {    Version x=Version(maj, min) ;    if(x >= v)    available|=({ x });    }    }   #endif      #if "#lib_prefix#"[0]!='#'    if (!(files = master_get_dir("#lib_prefix#"))) { -  werror ("Error listing directory %O: %s\n", -  "#lib_prefix#", strerror (errno())); +  werror ("Error listing directory %O: %m.\n", +  "#lib_prefix#");    files = ({});    }    foreach(files, string ver)    {    if(sscanf(ver,"%d.%d",int maj, int min))    {    Version x=Version(maj, min) ;    if(x >= v)    available|=({ x });    }