source: trunk/synergy/lib/arch/XArchUnix.cpp

Last change on this file was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 812 bytes
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2002 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#include "XArchUnix.h"
16#include <string.h>
17
18//
19// XArchEvalUnix
20//
21
22XArchEval*
23XArchEvalUnix::clone() const throw()
24{
25 return new XArchEvalUnix(m_errno);
26}
27
28std::string
29XArchEvalUnix::eval() const throw()
30{
31 // FIXME -- not thread safe
32 return strerror(m_errno);
33}
Note: See TracBrowser for help on using the repository browser.