mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
cf2528eb7c
完善了非阻塞IO的SSL功能;将 acl/samples/ 下的示例分别移到 lib_acl 及 lib_protocol 目录下
24 lines
437 B
C
24 lines
437 B
C
#include "lib_acl.h"
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
char path[256];
|
|
int i, n = 1024;
|
|
|
|
if (argc != 2)
|
|
{
|
|
printf("usage: %s path\r\n", argv[1]);
|
|
return 1;
|
|
}
|
|
|
|
for (i = 0; i < n; i++)
|
|
{
|
|
snprintf(path, sizeof(path), "%s/%d", argv[1], i);
|
|
if (acl_make_dirs(path, 0700) == -1)
|
|
printf("mkdir %s failed: %s\r\n", path, acl_last_serror());
|
|
else
|
|
printf("mkdir %s ok\r\n", path);
|
|
}
|
|
return 0;
|
|
}
|