Changeset 108069


Ignore:
Timestamp:
Jul 12, 2013, 5:28:37 AM (7 years ago)
Author:
jmr@…
Message:

check for strlcat and provide an implementation when not present in the OS

Location:
trunk/base
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/configure

    r107782 r108069  
    88008800
    88018801# Checks for library functions.
    8802 for ac_func in bzero memset fgetln lockf flock setmode strcasecmp strncasecmp strlcpy copyfile clearenv sysctlbyname
     8802for ac_func in bzero memset fgetln lockf flock setmode strcasecmp strncasecmp strlcpy strlcat copyfile clearenv sysctlbyname
    88038803do :
    88048804  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  • trunk/base/configure.ac

    r107782 r108069  
    244244
    245245# Checks for library functions.
    246 AC_CHECK_FUNCS([bzero memset fgetln lockf flock setmode strcasecmp strncasecmp strlcpy copyfile clearenv sysctlbyname])
     246AC_CHECK_FUNCS([bzero memset fgetln lockf flock setmode strcasecmp strncasecmp strlcpy strlcat copyfile clearenv sysctlbyname])
    247247MP_CHECK_READLINK_IS_P1003_1A
    248248
  • trunk/base/src/config.h.in

    r107782 r108069  
    174174#undef HAVE_STRING_H
    175175
     176/* Define to 1 if you have the `strlcat' function. */
     177#undef HAVE_STRLCAT
     178
    176179/* Define to 1 if you have the `strlcpy' function. */
    177180#undef HAVE_STRLCPY
  • trunk/base/src/darwintracelib1.0/darwintrace.c

    r108032 r108069  
    9696}
    9797#endif
     98
     99#include "../pextlib1.0/strlcat.c"
    98100
    99101/* global variables (only checked when setup is first called)
  • trunk/base/src/pextlib1.0/Makefile

    r107864 r108069  
    33        fs-traverse.o strcasecmp.o vercomp.o filemap.o base32cmd.o \
    44        sha1cmd.o curl.o rmd160cmd.o sha256cmd.o readline.o uid.o \
    5         tracelib.o tty.o readdir.o pipe.o flock.o \
     5        tracelib.o tty.o readdir.o pipe.o flock.o strlcat.o \
    66        system.o mktemp.o realpath.o ../registry2.0/registry${SHLIB_SUFFIX}
    77SHLIB_NAME= Pextlib${SHLIB_SUFFIX}
  • trunk/base/src/pextlib1.0/tracelib.c

    r108068 r108069  
    5959
    6060#include "tracelib.h"
     61
     62#include "strlcat.h"
    6163
    6264#ifndef HAVE_STRLCPY
Note: See TracChangeset for help on using the changeset viewer.