Changeset fcab7ef in mainline for uspace/app/getterm/getterm.c


Ignore:
Timestamp:
2017-03-26T20:46:56Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fe91f66
Parents:
f644472
Message:

Merge dup2() into vfs_clone()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/getterm/getterm.c

    rf644472 rfcab7ef  
    4343#include <errno.h>
    4444#include <loc.h>
     45#include <vfs/vfs.h>
    4546#include "version.h"
    4647#include "welcome.h"
     
    7172       
    7273        if (oldfd != fd) {
    73                 if (dup2(oldfd, fd) != fd)
     74                if (vfs_clone(oldfd, fd, false) != fd)
    7475                        return;
    7576               
Note: See TracChangeset for help on using the changeset viewer.