version 1.119, 2001/07/04 12:19:25
|
version 1.120, 2001/07/04 12:36:22
|
Line 54 char *strlcpy2(char *dest, const char *s
|
Line 54 char *strlcpy2(char *dest, const char *s
|
} |
} |
|
|
int main(int argc,char *argv[]) { |
int main(int argc,char *argv[]) { |
|
#if 0 |
char buf[128]; |
char buf[128]; |
strcpy(buf,"/tmp/foo.XXXXXXX"); |
strcpy(buf,"/tmp/fnord/foo.XXXXXXX"); |
printf("%d\n",mkdtemp(buf)); |
printf("%d\n",mkdtemp(buf)); |
printf("%s\n",buf); |
printf("%s\n",buf); |
|
#endif |
#if 0 |
#if 0 |
printf("%d\n",WEXITSTATUS(system("exit 17"))); |
printf("%d\n",WEXITSTATUS(system("exit 17"))); |
#endif |
#endif |
Line 324 int main(int argc,char *argv[]) {
|
Line 326 int main(int argc,char *argv[]) {
|
if (foo) |
if (foo) |
printf("found service %s on port %d\n",foo->s_name,foo->s_port); |
printf("found service %s on port %d\n",foo->s_name,foo->s_port); |
#endif |
#endif |
#if 0 |
#if 1 |
char buf[128]; |
char buf[128]; |
strcpy(buf,"/tmp/foo.XXXXXXX"); |
strcpy(buf,"/tmp/blub/foo.XXXXXXX"); |
printf("%d\n",mkstemp(buf)); |
printf("%d\n",mkstemp(buf)); |
printf("%s\n",buf); |
printf("%s\n",buf); |
unlink(buf); |
unlink(buf); |