kpilot/lib

fakes.h

00001 #ifndef _KPILOT_FAKES_H
00002 #define _KPILOT_FAKES_H
00003 
00004 /* This file is part of the KDE libraries
00005    Copyright (c) 2000 The KDE Project
00006 
00007    unsetenv() taken from the GNU C Library.
00008    Copyright (C) 1992,1995-1999,2000-2002 Free Software Foundation, Inc.
00009 
00010    This library is free software; you can redistribute it and/or
00011    modify it under the terms of the GNU Library General Public
00012    License version 2 as published by the Free Software Foundation.
00013 
00014    This library is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017    Library General Public License for more details.
00018 
00019    You should have received a copy of the GNU Library General Public License
00020    along with this library; see the file COPYING.LIB.  If not, write to
00021    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00022    Boston, MA 02110-1301, USA.
00023 */
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 #ifndef HAVE_SETENV
00030 int setenv(const char *name, const char *value, int overwrite);
00031 #endif /* !HAVE_SETENV */
00032 
00033 #ifndef HAVE_UNSETENV
00034 void unsetenv (const char *name);
00035 #endif /* !HAVE_UNSETENV */
00036 
00037 #ifndef HAVE_USLEEP
00038 void usleep(unsigned int usec);
00039 #endif /* !HAVE_USLEEP */
00040 
00041 #ifndef HAVE_RANDOM
00042 long int random();
00043 void srandom(unsigned int seed);
00044 #endif
00045 
00046 #ifndef HAVE_SETEUID
00047 int seteuid(uid_t euid);
00048 #endif
00049 
00050 #ifndef HAVE_MKSTEMPS
00051 int mkstemps (char* _template, int suffix_len);
00052 #endif /* !HAVE_MKSTEMPS */
00053 
00054 #ifndef HAVE_MKSTEMP
00055 int mkstemp (char* _template);
00056 #endif
00057 
00058 #ifndef HAVE_MKDTEMP
00059 char* mkdtemp (char* _template);
00060 #endif /* !HAVE_MKDTEMP */
00061 
00062 #ifndef HAVE_REVOKE
00063 int revoke(const char *tty);
00064 #endif
00065 
00066 #ifndef HAVE_STRLCPY
00067 unsigned long strlcpy(char* d, const char* s, unsigned long bufsize);
00068 #endif
00069 
00070 #ifndef HAVE_STRLCAT
00071 unsigned long strlcat(char* d, const char* s, unsigned long bufsize);
00072 #endif
00073 
00074 #ifdef __cplusplus
00075 }
00076 #endif
00077 
00078 
00079 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys