~ubuntu-branches/ubuntu/trusty/syslog-ng/trusty-proposed

« back to all changes in this revision

Viewing changes to src/compat.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-03-28 19:47:36 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100328194736-1ob7kh1qr0fy8b9k
Tags: 3.1.0-1
* New upstream release.
* Fix path of syslog logfile (closes: #575722) and use tty10 instead of
  vc/10 to log on console.
* Provide syslog-ng in initscript (closes: #575723).

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
}
102
102
#endif
103
103
 
 
104
#if !HAVE_MEMRCHR
 
105
const void *
 
106
memrchr(const void *s, int c, size_t n)
 
107
{
 
108
  const unsigned char *p = (unsigned char *) s + n - 1;
 
109
 
 
110
  while (p >= (unsigned char *) s)
 
111
    {
 
112
      if (*p == c)
 
113
        return p;
 
114
      p--;
 
115
    }
 
116
  return NULL;
 
117
}
 
118
#endif
 
119
 
104
120
#ifdef _AIX
105
121
intmax_t __strtollmax(const char *__nptr, char **__endptr, int __base)
106
122
{