Lines Matching refs:err
196 status_t err;
202 if ((err = path.Append(device)) != B_OK) {
203 printf("DeviceManager::StartMonitoringDevice BPath::Append() error %s: %s\n", path.Path(), strerror(err));
204 return err;
208 if ((err = directory.SetTo(path.Path())) != B_OK) {
210 if (err != B_ENTRY_NOT_FOUND) { // something else we cannot handle
211 printf("DeviceManager::StartMonitoringDevice SetTo error %s: %s\n", path.Path(), strerror(err));
212 return err;
215 if ((err = create_directory(path.Path(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) != B_OK
216 || (err = directory.SetTo(path.Path())) != B_OK) {
217 printf("DeviceManager::StartMonitoringDevice CreateDirectory error %s: %s\n", path.Path(), strerror(err));
218 return err;
223 if ((err = directory.GetNodeRef(&nref)) != B_OK) {
224 printf("DeviceManager::StartMonitoringDevice GetNodeRef error %s: %s\n", path.Path(), strerror(err));
225 return err;
275 status_t err;
279 if (((err = path.Append(device)) != B_OK)
280 || ((err = directory.SetTo(path.Path())) != B_OK)
281 || ((err = directory.GetNodeRef(&nref)) != B_OK))
282 return err;
318 if ((err = RemoveDirectory(&nref, addon)) != B_OK)
319 return err;