"Fossies" - the Fresh Open Source Software Archive

Member "jailkit-2.21/src/utils.h" (7 Nov 2007, 700 Bytes) of package /linux/privat/jailkit-2.21.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "utils.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef __UTILS_H
    2 #define __UTILS_H
    3 
    4 #include "config.h"
    5 
    6 #ifndef HAVE_MALLOC0
    7 #define malloc0(size) memset(malloc(size),0,size)
    8 #define HAVE_MALLOC0
    9 #endif /* HAVE_MALLOC0 */
   10 
   11 #ifndef HAVE_STRNDUP
   12 char *strndup(const char *s, size_t n);
   13 #endif
   14 #ifndef HAVE_STRNLEN
   15 size_t strnlen(const char *s, size_t n);
   16 #endif
   17 
   18 #ifndef HAVE_WORDEXP
   19 #ifndef HAVE_MEMPCPY
   20 void *mempcpy(void *dest, const void *src, size_t n);
   21 #endif
   22 #ifndef HAVE_STPCPY
   23 char *stpcpy(char *dest, const char *src);
   24 #endif
   25 #endif /* HAVE_WORDEXP */
   26 
   27 char *return_malloced_getwd(void);
   28 
   29 #ifndef HAVE_CLEARENV
   30 int clearenv(void);
   31 #endif
   32 
   33 #ifndef HAVE_GET_CURRENT_DIR_NAME
   34 char *get_current_dir_name(void);
   35 #endif
   36 
   37 #endif /* __UTILS_H */