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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:2458:    *! 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_constant_text("Process.Process"); +  push_text("Process.Process");    APPLY_MASTER("resolv", 1);      #ifdef USE_PT_CHMOD    /* pt_chmod wants to get the fd number as the first argument. */ -  push_constant_text(USE_PT_CHMOD); -  push_constant_text("4"); +  push_text(USE_PT_CHMOD); +  push_text("4");    f_aggregate(2);       /* Send the pty as both fd 3 and fd 4. */ -  push_constant_text("fds"); +  push_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_constant_text(USE_CHGPT); +  push_text(USE_CHGPT);    f_aggregate(1);       /* chgpt wants to get the pty on fd 0. */ -  push_constant_text("stdin"); +  push_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:2972: Inside #if !defined(__NT__) && (defined(HAVE_POSIX_OPENPT) || defined(PTY_MASTER_PATHNAME)) and #if defined(HAVE_POSIX_OPENPT)
   else    {    init_fd(fd, flags | fd_query_properties(fd, FILE_CAPABILITIES), 0);    set_close_on_exec(fd,1);    }    pop_n_elems(args);    push_int(fd>=0);   #else    if(args > 1)    pop_n_elems(args - 1); -  push_constant_text(PTY_MASTER_PATHNAME); +  push_text(PTY_MASTER_PATHNAME);    stack_swap();    file_open(2);   #endif   }   #endif      #ifdef HAVE_FSYNC   /*! @decl int(0..1) sync()    *!    *! Flush buffers to disk.
pike.git/src/modules/_Stdio/file.c:5995: 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_constant_text( "ips" ); +  push_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++;