Return to file.c CVS log | Up to [local] / src / usr.bin / sndiod |
version 1.9, 2015/07/17 09:43:28 | version 1.10, 2015/07/17 09:51:18 | ||
---|---|---|---|
|
|
||
return NULL; | return NULL; | ||
} | } | ||
f = xmalloc(sizeof(struct file)); | f = xmalloc(sizeof(struct file)); | ||
f->nfds = nfds; | f->max_nfds = nfds; | ||
f->ops = ops; | f->ops = ops; | ||
f->arg = arg; | f->arg = arg; | ||
f->name = name; | f->name = name; | ||
|
|
||
log_puts(": created\n"); | log_puts(": created\n"); | ||
} | } | ||
#endif | #endif | ||
file_nfds += f->nfds; | file_nfds += f->max_nfds; | ||
return f; | return f; | ||
} | } | ||
|
|
||
panic(); | panic(); | ||
} | } | ||
#endif | #endif | ||
file_nfds -= f->nfds; | file_nfds -= f->max_nfds; | ||
f->state = FILE_ZOMB; | f->state = FILE_ZOMB; | ||
#ifdef DEBUG | #ifdef DEBUG | ||
if (log_level >= 3) { | if (log_level >= 3) { |