secureswitools/swisistools/source/sisxlibrary/siscapabilities.cpp
branchRCL_3
changeset 24 5cc91383ab1e
parent 0 ba25891c3a9e
child 25 7333d7932ef7
equal deleted inserted replaced
23:cd189dac02f7 24:5cc91383ab1e
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    76 	_dup2(oldStderr, 2);
    76 	_dup2(oldStderr, 2);
    77 
    77 
    78 	CSISException::ThrowIf(oldStderr == -1, CSISException::EFileProblem, "Failed in redirection operation");
    78 	CSISException::ThrowIf(oldStderr == -1, CSISException::EFileProblem, "Failed in redirection operation");
    79 
    79 
    80 	#ifdef __TOOLS2_LINUX__
    80 	#ifdef __TOOLS2_LINUX__
    81 	nulStderr = fopen("NULL", "w");
    81 	nulStderr = fopen("/dev/null", "w");
    82 	#else
    82 	#else
    83 	nulStderr = fopen("NUL:", "w");
    83 	nulStderr = fopen("NUL:", "w");
    84 	#endif
    84 	#endif
    85 
    85 
    86 	CSISException::ThrowIf(nulStderr == NULL, CSISException::EFileProblem, "Failed in redirection operation");
    86 	CSISException::ThrowIf(nulStderr == NULL, CSISException::EFileProblem, "Failed in redirection operation");