process.cc (11294:a368064a2ab5) | process.cc (11378:8457e0a24e5d) |
---|---|
1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2012 ARM Limited 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 364 unchanged lines hidden (view full) --- 373 374 int fds[2]; 375 if (pipe(fds) < 0) 376 fatal("Unable to create new pipe"); 377 378 fde->fd = fds[0]; 379 380 FDEntry *fde_write = getFDEntry(fde->readPipeSource); | 1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2012 ARM Limited 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 364 unchanged lines hidden (view full) --- 373 374 int fds[2]; 375 if (pipe(fds) < 0) 376 fatal("Unable to create new pipe"); 377 378 fde->fd = fds[0]; 379 380 FDEntry *fde_write = getFDEntry(fde->readPipeSource); |
381 assert( 382 fde_write->filename == "PIPE-WRITE"); | 381 assert(fde_write->filename == "PIPE-WRITE"); |
383 fde_write->fd = fds[1]; 384 } else { 385 fde->fd = openFile(fde->filename.c_str(), fde->flags, fde->mode); 386 seek(fde); 387 } 388 } 389} 390 --- 292 unchanged lines hidden --- | 382 fde_write->fd = fds[1]; 383 } else { 384 fde->fd = openFile(fde->filename.c_str(), fde->flags, fde->mode); 385 seek(fde); 386 } 387 } 388} 389 --- 292 unchanged lines hidden --- |