Return to miofile.c CVS log | Up to [local] / src / usr.bin / aucat |
version 1.2, 2009/09/27 11:51:20 | version 1.3, 2009/11/05 08:36:48 | ||
---|---|---|---|
|
|
||
hdl = mio_open(path, mode, 1); | hdl = mio_open(path, mode, 1); | ||
if (hdl == NULL) | if (hdl == NULL) | ||
return NULL; | return NULL; | ||
f = (struct miofile *)file_new(ops, "hdl", mio_nfds(hdl)); | if (path == NULL) | ||
path = "default"; | |||
f = (struct miofile *)file_new(ops, path, mio_nfds(hdl)); | |||
if (f == NULL) | if (f == NULL) | ||
goto bad_close; | goto bad_close; | ||
f->hdl = hdl; | f->hdl = hdl; |