X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Faltstack%2F_info;h=b8cf6a87769afe692aa8fd5a1fc1b0d7691ed48e;hb=58277ab6c8b4dd6bb66638b88bd8505f46fdcb07;hp=b411c2967c26ee57f72f4c093a84fd2fde0a2bc8;hpb=0229ddbf05d402b994133641ecfcdafd4bf73389;p=ccan diff --git a/ccan/altstack/_info b/ccan/altstack/_info index b411c296..b8cf6a87 100644 --- a/ccan/altstack/_info +++ b/ccan/altstack/_info @@ -63,8 +63,8 @@ * void *out; * * assert(argc == 3); - * stk_max = strtol(argv[1], 0, 0) * 1024 * 1024; - * vla_sz = strtol(argv[2], 0, 0) * 1024 * 1024; + * stk_max = strtol(argv[1], NULL, 0) * 1024 * 1024; + * vla_sz = strtol(argv[2], NULL, 0) * 1024 * 1024; * assert(stk_max > 0 && vla_sz > 0); * * snprintf(maps, sizeof(maps), "egrep '\\[stack' /proc/%d/maps", getpid()); @@ -122,5 +122,18 @@ int main(int argc, char *argv[]) if (strcmp(argv[1], "depends") == 0) return 0; + if (strcmp(argv[1], "testdepends") == 0) { + printf("ccan/ptrint\n"); + return 0; + } + + if (strcmp(argv[1], "ported") == 0) { +#ifdef __x86_64__ + printf("\n"); +#else + printf("Only x86-64 supported\n"); +#endif + } + return 1; }