lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 7f8f9fd was a7de7182, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 15 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
|
|---|
| 12 | size_t strlcpy(char *dst, const char *src, size_t siz);
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | #ifndef HAVE_STRLCAT
|
|---|
| 16 | size_t strlcat(char *dst, const char *src, size_t siz);
|
|---|
| 17 | #endif
|
|---|
| 18 |
|
|---|
| 19 | #ifndef HAVE_GETOPT
|
|---|
| 20 | extern char *optarg;
|
|---|
| 21 | extern int optind;
|
|---|
| 22 | int getopt(int, char **, char *);
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | #ifndef HAVE_BASENAME
|
|---|
| 26 | char *basename(char *);
|
|---|
| 27 | #endif
|
|---|
| 28 |
|
|---|
| 29 | #ifndef HAVE_MKSTEMP
|
|---|
| 30 | int mkstemp(char *);
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| 33 | #ifndef HAVE_FFS
|
|---|
| 34 | int ffs(int);
|
|---|
| 35 | #endif
|
|---|
| 36 |
|
|---|
| 37 | #ifndef HAVE_SNPRINTF
|
|---|
| 38 | int snprintf(char *str, size_t count, const char *fmt, ...);
|
|---|
| 39 | #endif
|
|---|
| 40 |
|
|---|
| 41 | #ifndef HAVE_VSNPRINTF
|
|---|
| 42 | int 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.