Searched refs:err (Results 1 - 25 of 582) sorted by relevance

1234567891011>>

/haiku/headers/private/shared/
H A Dsyscall_utils.h9 #define RETURN_AND_SET_ERRNO(err) \
11 __typeof(err) __result = (err); \
19 #define RETURN_AND_TEST_CANCEL(err) \
21 __typeof(err) __result = (err); \
26 #define RETURN_AND_SET_ERRNO_TEST_CANCEL(err) \
28 __typeof(err) __result = (err); \
/haiku/src/system/libroot/posix/unistd/
H A Dusleep.c16 int err; local
17 err = snooze_until(system_time() + (bigtime_t)(useconds), B_SYSTEM_TIMEBASE);
18 if (err < 0) {
19 __set_errno(err);
H A Dsleep.c18 int err; local
25 err = snooze_until(start + usecs, B_SYSTEM_TIMEBASE);
29 if (err)
/haiku/src/kits/storage/
H A DMimeType.cpp263 status_t err = InitCheck(); local
270 if (err == B_OK)
271 err = message.AddString("type", Type());
273 if (err == B_OK)
274 err = BRoster::Private().SendTo(&message, &reply, true);
276 if (err == B_OK)
277 err = (status_t)(reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY);
279 if (err == B_OK)
280 err = reply.FindInt32("result", &result);
282 if (err
293 status_t err = InitCheck(); local
354 status_t err = InitCheck(); local
402 status_t err = InitCheck(); local
416 status_t err = InitCheck(); local
437 status_t err = InitCheck(); local
475 status_t err = InitCheck(); local
516 status_t err = InitCheck(); local
546 status_t err = InitCheck(); local
582 status_t err = InitCheck(); local
622 status_t err = InitCheck(); local
669 status_t err = BRoster::Private().SendTo(&message, supertypes, true); local
704 status_t err = B_OK; local
727 status_t err = mime.SetTo("application/octet-stream"); local
780 status_t err = InitCheck(); local
862 status_t err = InitCheck(); local
922 status_t err = InitCheck(); local
978 status_t err = InitCheck(); local
1029 status_t err = file && type ? B_OK : B_BAD_VALUE; local
1066 status_t err = buffer && type ? B_OK : B_BAD_VALUE; local
1103 status_t err = filename && type ? B_OK : B_BAD_VALUE; local
1143 status_t err; local
1170 status_t err; local
1268 status_t err = InitCheck(); local
1318 status_t err = extension && types ? B_OK : B_BAD_VALUE; local
[all...]
/haiku/src/tests/kits/support/bmemoryio/
H A DMallocSeekTest.cpp22 off_t err; local
25 err = mem.Seek(3, SEEK_SET);
26 CPPUNIT_ASSERT(err == 3);
29 err = mem.Seek(3, SEEK_CUR);
30 CPPUNIT_ASSERT(err == 6);
33 err = mem.Seek(0, SEEK_END);
34 CPPUNIT_ASSERT(err == 0);
37 err = mem.Seek(-5, SEEK_END);
38 CPPUNIT_ASSERT(err == -5);
41 err
[all...]
H A DSeekTest.cpp23 off_t err; local
26 err = mem.Seek(3, SEEK_SET);
27 CPPUNIT_ASSERT(err == 3);
30 err = mem.Seek(3, SEEK_CUR);
31 CPPUNIT_ASSERT(err == 6);
34 err = mem.Seek(0, SEEK_END);
35 CPPUNIT_ASSERT(err == 10);
38 err = mem.Seek(-5, SEEK_END);
39 CPPUNIT_ASSERT(err == 5);
42 err
[all...]
H A DMallocWriteTest.cpp25 ssize_t err; local
28 err = mem.Write(writeBuf, 7);
29 CPPUNIT_ASSERT(err == 7); // Check how much data we wrote
32 err = mem.WriteAt(0, writeBuf, 4);
33 CPPUNIT_ASSERT(err == 4);
36 err = mem.WriteAt(34, writeBuf, 256);
37 CPPUNIT_ASSERT(err == 256);
H A DConstTest.cpp24 status_t err; local
27 err = mem.SetSize(4);
28 CPPUNIT_ASSERT(err == B_NOT_ALLOWED);
31 err = mem.SetSize(20);
32 CPPUNIT_ASSERT(err == B_NOT_ALLOWED);
36 err = mem.Write(readBuf, 3);
37 CPPUNIT_ASSERT(err == B_NOT_ALLOWED);
41 err = mem.WriteAt(2, readBuf, 1);
42 CPPUNIT_ASSERT(err == B_NOT_ALLOWED);
/haiku/src/kits/storage/mime/
H A DMimeInfoUpdater.cpp37 status_t err = appFileInfoRead.GetIconForType(type, &icon, iconSize); local
38 if (err == B_OK)
39 err = appFileInfoWrite.SetIconForType(type, &icon, iconSize, false);
40 else if (err == B_ENTRY_NOT_FOUND)
41 err = appFileInfoWrite.SetIconForType(type, NULL, iconSize, false);
42 return err;
53 status_t err = appFileInfoRead.GetIconForType(type, &data, &size); local
54 if (err == B_OK)
55 err = appFileInfoWrite.SetIconForType(type, data, size, false);
56 else if (err
97 status_t err = node.SetTo(&entry); local
[all...]
H A DSupertype.cpp53 status_t err = types ? B_OK : B_BAD_VALUE; local
55 if (!err && !fCachedMessage) {
56 err = CreateMessageWithTypes(&fCachedMessage);
59 if (!err) {
62 return err;
77 status_t err = sub ? B_OK : B_BAD_VALUE; local
78 if (!err)
79 err = fSubtypes.insert(sub).second ? B_OK : B_NAME_IN_USE;
80 if (!err && fCachedMessage) {
83 err
96 status_t err = sub ? B_OK : B_BAD_VALUE; local
132 status_t err = B_OK; local
151 status_t err = result ? B_OK : B_BAD_VALUE; local
[all...]
H A DInstalledTypes.cpp69 status_t err = types ? B_OK : B_BAD_VALUE; local
71 if (!err && !fHaveDoneFullBuild)
72 err = _BuildInstalledTypesList();
75 if (!err && !fCachedMessage)
76 err = _CreateMessageWithTypes(&fCachedMessage);
79 if (!err)
82 return err;
103 status_t err = mime.SetTo(supertype); local
105 if (!err && !mime.IsSupertypeOnly())
106 err
278 status_t err = _AddSupertype(super, i); local
375 status_t err = B_OK; local
[all...]
H A DSnifferRules.cpp158 status_t err = ref && type ? B_OK : B_BAD_VALUE; local
166 if (!err) {
169 err = bytes;
174 if (!err) {
177 err = B_NO_MEMORY;
180 if (!err)
181 err = file.SetTo(ref, B_READ_ONLY);
182 if (!err) {
185 err = bytes;
189 if (!err)
235 status_t err = type && rule ? B_OK : B_BAD_VALUE; local
286 status_t err = type ? B_OK : B_BAD_VALUE; local
337 status_t err = root.Init(fDatabaseLocation); local
441 status_t err = buffer && type ? B_OK : B_BAD_VALUE; local
514 ssize_t err = fHaveDoneFullBuild ? B_OK : BuildRuleList(); local
547 status_t err = type && bytesNeeded ? B_OK : B_BAD_VALUE; local
[all...]
/haiku/src/tests/kits/media/playsound/
H A Dplaysound.cpp109 status_t err; local
111 err = snd.InitCheck();
112 if (err < B_OK) {
113 fprintf(stderr, "Init failed, error 0x%08lx (%s)\n", err, strerror(err));
117 err = snd.SetGain(gain / 100.0);
118 if (err < B_OK) {
119 fprintf(stderr, "Setting gain failed, error 0x%08lx (%s)\n", err, strerror(err));
123 err
[all...]
/haiku/src/servers/registrar/
H A DMIMEManager.cpp113 status_t err; local
128 err = message->FindMessenger("target", &messenger);
129 if (!err) {
130 err = message->what == B_REG_MIME_START_WATCHING
136 reply.AddInt32("result", err);
145 err = message->FindString("type", &type);
146 if (!err)
147 err = message->what == B_REG_MIME_INSTALL
151 reply.AddInt32("result", err);
159 err
349 status_t err; local
484 status_t err; local
[all...]
/haiku/src/servers/registrar/mime/
H A DMimeUpdateThread.cpp86 status_t err = RegistrarThread::InitCheck(); local
87 if (!err)
88 err = fStatus;
89 return err;
100 status_t err = InitCheck(); local
106 if (!err)
107 err = UpdateEntry(&fRoot);
109 err = B_ERROR;
115 status_t error = reply.AddInt32("result", err);
116 err
168 status_t err = volume.SetTo(device); local
190 status_t err = ref ? B_OK : B_BAD_VALUE; local
[all...]
/haiku/src/apps/cortex/NodeManager/
H A DAddOnHost.cpp65 status_t err; local
72 &err);
74 if(err < B_OK)
75 return err;
91 status_t err = kill_team(s_messenger.Team());
92 return err;
102 status_t err;
106 err = be_roster->FindApp(addon_host::g_appSignature, &appRef);
107 if(err < B_OK)
108 return err;
144 status_t err; local
222 status_t err; local
[all...]
/haiku/src/bin/
H A Dtrash.cpp38 status_t err; local
42 err = node.InitCheck();
43 if (err)
44 return err;
45 err = node.ReadAttr(kAttrOriginalPath, B_STRING_TYPE, 0LL, original_path, B_PATH_NAME_LENGTH);
46 if (err < 0)
47 return err;
48 err = rename(path.Path(), original_path);
49 if (err < 0)
50 return err;
57 status_t err; local
112 status_t err; local
126 status_t err; local
158 int err = 0; local
[all...]
H A Dsetcontrollook.cpp30 status_t err = set_control_look(path); local
31 if (err < B_OK) {
32 fprintf(stderr, "error setting Control Look: %s\n", strerror(err));
/haiku/src/tests/system/network/
H A Dufunc.h6 void err(int error, char *msg);
/haiku/src/add-ons/kernel/debugger/laplinkll/
H A Dlaplinkll.cpp129 goto err;
131 goto err;
139 goto err;
144 err:
154 goto err;
156 goto err;
164 goto err;
169 err:
182 goto err;
191 err
222 status_t err; local
235 status_t err; local
252 status_t err; local
265 status_t err; local
274 status_t err; local
284 status_t err; local
319 status_t err; local
367 status_t err; local
400 status_t err; local
429 status_t err = B_OK; local
[all...]
/haiku/src/apps/tv/
H A DController.cpp55 HandleError(const char *text, status_t err) argument
57 if (err != B_OK) {
58 printf("%s. error 0x%08x (%s)\n",text, (int)err, strerror(err));
125 status_t err; local
127 err = gDeviceRoster->MediaRoster()->GetParameterWebFor(gDeviceRoster->DeviceNode(i), &web);
128 if (err != B_OK) {
169 status_t err; local
172 err = fChannelParam->GetValue(&index, &size, &when);
173 if (err
217 status_t err; local
271 status_t err; local
[all...]
/haiku/src/add-ons/media/media-add-ons/esound_sink/
H A DESDEndpoint.cpp95 status_t err; local
98 err = find_directory(B_USER_SETTINGS_DIRECTORY, &kfPath);
101 err = keyFile.GetSize(&size);
102 if (err < 0)
103 return err;
109 err = keyFile.Write(key, ESD_MAX_KEY);
110 if (err < 0)
111 return err;
112 if (err < ESD_MAX_KEY)
115 err
135 status_t err; local
155 status_t err; local
177 status_t err; local
368 status_t err; local
403 status_t err = B_OK; local
430 status_t err; local
453 status_t err; local
[all...]
/haiku/src/tests/kits/support/barchivable/
H A DLocalTestObject.cpp33 status_t err = archive->AddString("class", "TIOTest"); local
34 if (!err)
35 err = archive->AddInt32("TIOTest::data", data);
37 return err;
/haiku/src/tools/misc/
H A Dbin2h.c17 int err; local
18 err = fread(&c, sizeof(c), 1, infp);
19 if(err != 1)
/haiku/src/add-ons/translators/jpeg/
H A Dbe_jerror.cpp73 (*cinfo->err->format_message) (cinfo, buffer);
78 = static_cast<be_jpeg_error_mgr*>(cinfo->err);
99 (*cinfo->err->format_message) (cinfo, buffer);
101 cinfo->err->num_warnings++;
104 if (!cinfo->is_decompressor || cinfo->err->ShowReadWarnings) {
119 be_jpeg_std_error(be_jpeg_error_mgr* err, TranslatorSettings* settings, argument
123 jpeg_std_error(err);
125 err->error_exit = be_error_exit;
126 err->output_message = be_output_message;
128 err
[all...]

Completed in 171 milliseconds

1234567891011>>