commands.cc
/*
** reread_listing_line - rereads the listing line for the current line in the
**                       DirList, which refers to file, and then updates
**                       the listing line.
*/
rereads the listing line for the current line in the
DirList, which refers to file, and then updates
the listing line.
rereads the listing line for the current line in the DirList which refers to file and then updates the listing line .
static void reread_listing_line(DirList *dl, const char *file)
{
    String cmd = String(ls_cmd[the_sort_order()]) + file;
    FILE *fp = popen(cmd, "r");
    if (fp == 0)
        error("File %s, line %d: popen(%s) failed",
              __FILE__, __LINE__, (const char *)cmd);
    char *new_line = fgetline(fp);
    if (new_line == 0)
        error("File %s, line %d: fgetline() failed", __FILE__, __LINE__);
    (void)pclose(fp);
    dl->currLine()->update(&new_line);
}
static void reread_listing_line ( DirList * dl , const char * file ) { String cmd = String ( ls_cmd [ the_sort_order ( ) ] ) + file ; FILE * fp = popen ( cmd , " " ) ; if ( fp == 0 ) error ( " " , __FILE__ , __LINE__ , ( const char * ) cmd ) ; char * new_line = fgetline ( fp ) ; if ( new_line == 0 ) error ( " " , __FILE__ , __LINE__ ) ; ( void ) pclose ( fp ) ; dl -> currLine ( ) -> update ( & new_line ) ; }
reread_listing_line - rereads the listing line for the current line in the
DirList, which refers to file, and then updates
the listing line.
reread_listing_line - rereads the listing line for the current line in the DirList which refers to file and then updates the listing line .