+ status = ao_fat_open(name, AO_FAT_OPEN_WRITE);
+ if (status >= 0) {
+ log_fd = status;
+ ao_fat_seek(log_fd, 0, AO_FAT_SEEK_END);
+ log_open = 1;
+ } else if (status == -AO_FAT_ENOENT) {
+ status = ao_fat_creat(name);
+ if (status >= 0) {
+ log_fd = status;
+ log_open = 1;
+ }
+ }