source: mainline/uspace/app/pcc/mip/compat.h@ 5c65e61

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 5c65e61 was a7de7182, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 14 years ago

Added pcc source tree (contents of pcc-1.0.0.tgz)

  • Property mode set to 100644
File size: 740 bytes
Line 
1/*
2 * Just compatibility function prototypes.
3 * Public domain.
4 */
5
6#ifndef COMPAT_H
7#define COMPAT_H
8
9#include <string.h>
10
11#ifndef HAVE_STRLCPY
12size_t strlcpy(char *dst, const char *src, size_t siz);
13#endif
14
15#ifndef HAVE_STRLCAT
16size_t strlcat(char *dst, const char *src, size_t siz);
17#endif
18
19#ifndef HAVE_GETOPT
20extern char *optarg;
21extern int optind;
22int getopt(int, char **, char *);
23#endif
24
25#ifndef HAVE_BASENAME
26char *basename(char *);
27#endif
28
29#ifndef HAVE_MKSTEMP
30int mkstemp(char *);
31#endif
32
33#ifndef HAVE_FFS
34int ffs(int);
35#endif
36
37#ifndef HAVE_SNPRINTF
38int snprintf(char *str, size_t count, const char *fmt, ...);
39#endif
40
41#ifndef HAVE_VSNPRINTF
42int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
43#endif
44
45#endif
Note: See TracBrowser for help on using the repository browser.