pike.git / src / modules / _Stdio / stat.c

version» Context lines:

pike.git/src/modules/_Stdio/stat.c:1004:    str_type_chr = make_shared_string("chr");    str_type_blk = make_shared_string("blk");    str_type_fifo = make_shared_string("fifo");    str_type_sock = make_shared_string( "sock");    str_type_unknown = make_shared_string( "unknown");       stat_map=allocate_mapping(1);    push_int(0);    for( n=0; n<sizeof(__indices)/sizeof(__indices[0]); n++ )    { -  struct pike_string *s = make_shared_string(__indices[n].name); +  struct pike_string *s = make_shared_static_string(__indices[n].name, strlen(__indices[n].name), eightbit);    stat_index_strs[__indices[n].id]=s;    sp[-1].u.integer = __indices[n].id;    mapping_string_insert( stat_map, s, sp-1);    }    sp--;    dmalloc_touch_svalue(sp);       START_NEW_PROGRAM_ID(STDIO_STAT);    ADD_STORAGE(struct stat_storage);