1 /** ************************************************************************** 2 * utsname.h 3 * 4 * Copyright 2008 Bryan Ischo <bryan@ischo.com> 5 * 6 * This file is part of libs3. 7 * 8 * libs3 is free software: you can redistribute it and/or modify it under the 9 * terms of the GNU Lesser General Public License as published by the Free 10 * Software Foundation, version 3 or above of the License. You can also 11 * redistribute and/or modify it under the terms of the GNU General Public 12 * License, version 2 or above of the License. 13 * 14 * In addition, as a special exception, the copyright holders give 15 * permission to link the code of this library and its programs with the 16 * OpenSSL library, and distribute linked combinations including the two. 17 * 18 * libs3 is distributed in the hope that it will be useful, but WITHOUT ANY 19 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 20 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 21 * details. 22 * 23 * You should have received a copy of the GNU Lesser General Public License 24 * version 3 along with libs3, in a file named COPYING. If not, see 25 * <http://www.gnu.org/licenses/>. 26 * 27 * You should also have received a copy of the GNU General Public License 28 * version 2 along with libs3, in a file named COPYING-GPLv2. If not, see 29 * <http://www.gnu.org/licenses/>. 30 * 31 ************************************************************************** **/ 32 33 // This file is used only on a MingW build, and provides an implementation 34 // of POSIX sys/utsname.h 35 36 #ifndef UTSNAME_H 37 #define UTSNAME_H 38 39 struct utsname 40 { 41 const char *sysname; 42 const char *machine; 43 }; 44 45 int uname(struct utsname *); 46 47 #endif /* UTSNAME_H */ 48