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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:2500:    *! Returns the filename of the corresponding pts.    *!    *! @note    *! This function is only available on some platforms.    */   #if defined(HAVE_GRANTPT) || defined(USE_PT_CHMOD) || defined(USE_CHGPT)   static void file_grantpt( INT32 args )   {    pop_n_elems(args);   #if defined(USE_PT_CHMOD) || defined(USE_CHGPT) -  push_text("Process.Process"); +  push_static_text("Process.Process");    APPLY_MASTER("resolv", 1);      #ifdef USE_PT_CHMOD    /* pt_chmod wants to get the fd number as the first argument. */    push_text(USE_PT_CHMOD); -  push_text("4"); +  push_static_text("4");    f_aggregate(2);       /* Send the pty as both fd 3 and fd 4. */ -  push_text("fds"); +  push_static_text("fds");    ref_push_object(Pike_fp->current_object);    ref_push_object(Pike_fp->current_object);    f_aggregate(2);    f_aggregate_mapping(2);   #else /* USE_CHGPT */    /* chgpt on HPUX doesn't like getting any arguments... */    push_text(USE_CHGPT);    f_aggregate(1);       /* chgpt wants to get the pty on fd 0. */ -  push_text("stdin"); +  push_static_text("stdin");    ref_push_object(Pike_fp->current_object);    f_aggregate_mapping(2);   #endif /* USE_PT_CHMOD */       apply_svalue(Pike_sp-3, 2);    apply(Pike_sp[-1].u.object, "wait", 0);    if(!UNSAFE_IS_ZERO(Pike_sp-1)) {    Pike_error(   #ifdef USE_PT_CHMOD    USE_PT_CHMOD
pike.git/src/modules/_Stdio/file.c:5967:    {    /* NB: A signed 64-bit int maxes out at 21 characters. */    char buf[30];    sprintf (buf, "Fd(%ld)", (long)FD);    push_text(buf);    return;    }       case 't':    { -  push_text("Fd"); +  push_static_text("Fd");    return;    }    }    push_undefined();   }         /*! @decl mapping(string:mapping) gethostip()    *!    *! Returns the IP addresses of the host.
pike.git/src/modules/_Stdio/file.c:6034: Inside #if defined(HAVE_LINUX_IF_H) && defined(HAVE_SYS_IOCTL_H)
   if( (ifr2.ifr_flags & IFF_LOOPBACK) ||    !(ifr2.ifr_flags & IFF_UP) ||    (ifr->ifr_addr.sa_family != AF_INET ) )    continue;       sval = simple_mapping_string_lookup( m, ifr->ifr_name );    if( !sval ) {       push_text( ifr->ifr_name );    -  push_text( "ips" ); +  push_static_text( "ips" );    memcpy( &addr, &ifr->ifr_addr, sizeof(ifr->ifr_addr) );    push_text( inet_ntoa( addr.sin_addr ) );    f_aggregate(1);       f_aggregate_mapping(2);    mapping_insert(m, &Pike_sp[-2], &Pike_sp[-1]);    pop_n_elems(2);    }       up++;