Searched refs:c_str (Results 1 - 25 of 115) sorted by relevance

12345

/haiku/src/tests/add-ons/kernel/file_systems/random_file_actions/
H A Drandom_file_actions.cpp277 snprintf(buffer, sizeof(buffer), "%s/%s-%lu", parent.c_str(), prefix,
288 return open(name.c_str(), mode | (sDisableFileCache ? O_DIRECT : 0), 0666);
394 error("opening file \"%s\" failed: %s", file.name.c_str(),
402 error("stat file \"%s\" failed: %s", file.name.c_str(), strerror(errno));
406 file.name.c_str(), file.size, stat.st_size);
425 error("reading \"%s\" failed: %s", file.name.c_str(),
436 error("block at %lld differ in \"%s\"!", offset, file.name.c_str());
465 DIR* dir = opendir(path.c_str());
467 warning("Could not open directory \"%s\": %s", path.c_str(),
481 rmdir(path.c_str());
[all...]
/haiku/src/tests/kits/interface/
H A DChannelSliderTest.cpp55 horizontal->SetLimitLabelsFor(i, kLabels[i].min_label.c_str(),
56 kLabels[i].max_label.c_str());
60 if (strcmp(horizontal->MinLimitLabelFor(i), kLabels[i].min_label.c_str()) != 0)
62 if (strcmp(horizontal->MaxLimitLabelFor(i), kLabels[i].max_label.c_str()) != 0)
/haiku/src/apps/codycam/
H A DSftpClient.cpp36 cmd << " " << dir.c_str() << "\n";
89 BString host(server.c_str());
99 cmd << login.c_str();
129 write(OutputPipe(), passwd.c_str(), strlen(passwd.c_str()));
162 cmd << " " << local.c_str() << " " << remote.c_str() << "\n";
208 cmd << " " << newPath.c_str() << "\n";
235 cmd << " " << oldPath.c_str() << " " << newPath.c_str() << "\
[all...]
H A DFtpClient.cpp148 addr.SetTo(server.c_str(), "tcp", "ftp");
201 BFile infile(local.c_str(), B_READ_ONLY);
284 BFile outfile(local.c_str(), B_READ_WRITE | B_CREATE_FILE);
400 printf(B_TRANSLATE("cmd: '%s'\n"), cmd.c_str());
454 puts(ccmd.c_str());
458 if (fControl->Send(ccmd.c_str(), ccmd.length()) >= 0)
553 puts(outString.c_str());
556 outCode = atoi(tempString.c_str());
562 puts(outString.c_str());
623 if (sscanf(replyString.c_str(), "
[all...]
/haiku/src/bin/
H A Ddiff_zip.cpp78 if (lstat(path.c_str(), &st) != 0)
95 out->Write(path.c_str());
102 printf("%*s%s\n", level, "", fName.c_str());
108 if (lstat(path.c_str(), &st) == 0) {
121 path.c_str(), strerror(errno));
149 DIR* dir = opendir(path.c_str());
152 path.c_str(), strerror(errno));
165 if (lstat(entryPath.c_str(), &st) != 0) {
167 entryPath.c_str(), strerror(errno));
180 path.c_str(), strerro
[all...]
H A Dxres.cpp223 status_t error = file.SetTo(fPath.c_str(), B_READ_ONLY);
226 fPath.c_str(), strerror(error));
236 "%s\n", fPath.c_str(), strerror(error));
244 fPath.c_str());
255 "\"%s\": %s\n", fPath.c_str(), strerror(bytesRead));
485 id.id, fOutputFilePath.c_str(), strerror(error));
497 "file \"%s\": %s\n", fOutputFilePath.c_str(),
515 status_t error = file.SetTo(fOutputFilePath.c_str(),
519 fOutputFilePath.c_str(), strerror(error));
528 "file \"%s\": %s\n", fOutputFilePath.c_str(), strerro
[all...]
/haiku/src/servers/package/
H A DFSTransaction.cpp79 Entry(fFromPath.c_str()));
81 ERROR("Failed to remove \"%s\": %s\n", fFromPath.c_str(),
95 .CopyEntry(fToPath.c_str(), fFromPath.c_str());
98 fToPath.c_str(), fFromPath.c_str(), strerror(error));
106 status_t error = entry.SetTo(fToPath.c_str());
109 fToPath.c_str(), strerror(error));
113 error = entry.Rename(fFromPath.c_str(), true);
116 fToPath.c_str(), fFromPat
[all...]
/haiku/src/tools/locale/
H A DPlainTextCatalog.cpp138 currentItem.c_str(), path);
156 fLanguageName = currentItem.c_str() ;
164 fSignature = currentItem.c_str() ;
177 currentItem.c_str(), path);
206 originalString.c_str(), path);
212 originalString.c_str(), path);
219 originalString.c_str(), path);
224 // SetString(key, translated.c_str());
227 SetString(originalString.c_str(), translated.c_str(), contex
[all...]
/haiku/src/build/libroot/
H A Dfs_attr_generic.cpp182 ssize_t bytesRead = get_attribute(fd, path, attributeName.c_str(), buffer,
210 if (set_attribute(fd, path, attributeName.c_str(), id, strlen(id)) < 0)
242 error = set_id_attribute(path, fd, id.c_str());
296 if (lstat(attrDirPath.c_str(), &st) == 0) {
309 if (mkdir(attrDirPath.c_str(), S_IRWXU | S_IRWXG | S_IRWXO) < 0)
328 return opendir(dirPath.c_str());
374 return get_attribute_path(ref, (pathValid ? path.c_str() : NULL),
437 return open_attr_dir(NodeRef(st), (pathValid ? path.c_str() : NULL),
462 strcpy(entry->d_name, attrName.c_str());
495 bool exists = (lstat(attrPath.c_str(),
[all...]
H A DLocalFD.h41 return (fFD < 0 ? fPath.c_str() : NULL);
H A Dfs_attr_untyped.cpp199 path = tempPath.c_str();
254 name = demangledName.c_str();
290 ssize_t length = list_attributes(fFileFD, fPath.c_str(), listing,
478 bytesRead = get_attribute(-1, localFD.Path(), attribute.c_str(),
481 bytesRead = get_attribute(localFD.FD(), NULL, attribute.c_str(),
495 "AttributeHeader!\n", attribute.c_str());
555 result = set_attribute(-1, localFD.Path(), attribute.c_str(),
558 result = set_attribute(localFD.FD(), NULL, attribute.c_str(),
597 result = remove_attribute(-1, localFD.Path(), attribute.c_str());
599 result = remove_attribute(localFD.FD(), NULL, attribute.c_str());
[all...]
H A Dfs.cpp222 if (lstat(entryPath.c_str(), &st) == 0) {
318 dirPath = dirPathString.c_str();
372 if (stat(path.c_str(), &st) < 0) {
470 if (strlcpy(userPath, path.c_str(), pathLength) >= pathLength)
490 if (mkdir(realPath.c_str(), perms) < 0)
508 if (mkdir(realPath.c_str(), perms) < 0)
554 return open_dir(realPath.c_str());
567 return open_dir(realPath.c_str());
582 if (stat(realPath.c_str(), &st) < 0)
591 error = find_dir_entry(realPath.c_str(), NodeRe
[all...]
/haiku/src/libs/print/libprint/
H A DAboutBox.cpp49 DrawString(fDriverName.c_str(), BPoint(10.0f, 16.0f));
57 DrawString(fVersion.c_str());
58 DrawString(fCopyright.c_str(), BPoint(10.0f, 30.0f));
H A DTransport.cpp32 return fWhat.c_str();
55 path.Append(printerData->GetTransport().c_str());
86 msg->AddString("printer_file", spool_path.c_str());
/haiku/src/add-ons/media/plugins/ape_reader/LibMonkeysAudio/
H A DLibMonkeysAudio.cpp47 return saCright.c_str();
/haiku/src/kits/storage/mime/
H A DSupertype.cpp82 sprintf(type, "%s/%s", fName.c_str(), sub);
120 return fName.c_str();
136 sprintf(type, "%s/%s", fName.c_str(), (*i).c_str());
/haiku/src/servers/registrar/
H A DRecentApps.cpp95 if (!strcasecmp((*i).c_str(), appSig)) {
175 if (GetRefForApp(item->c_str(), &ref) == B_OK)
179 item->c_str()));
205 printf("%d: '%s'\n", counter++, item->c_str());
223 fprintf(file, "RecentApp %s\n", item->c_str());
H A DAuthenticationManager.cpp93 return (char*)AppendData(str.c_str(), str.length() + 1, false);
275 || (error = message.AddString("name", fName.c_str())) != B_OK
276 || (error = message.AddString("password", fPassword.c_str()))
278 || (error = message.AddString("home", fHome.c_str())) != B_OK
279 || (error = message.AddString("shell", fShell.c_str())) != B_OK
280 || (error = message.AddString("real name", fRealName.c_str()))
289 fShadowPassword.c_str())) != B_OK
306 fName.c_str(), fPassword.c_str(), (int)fUID, (int)fGID,
307 fRealName.c_str(), fHom
[all...]
/haiku/src/tests/kits/storage/
H A DDirectoryTest.cpp1385 CPPUNIT_ASSERT( dir.CreateDirectory(entryName.c_str(), &subdir) == B_OK );
1390 CPPUNIT_ASSERT( entry == BEntry((dirPathName + entryName).c_str()) );
1392 CPPUNIT_ASSERT( subdir.SetTo((dirPathName + entryName).c_str()) == B_OK );
1396 CPPUNIT_ASSERT( dir.CreateDirectory(entryName.c_str(), &subdir)
1405 CPPUNIT_ASSERT( dir.CreateFile(entryName.c_str(), &file, true) == B_OK );
1408 CPPUNIT_ASSERT( file.SetTo((dirPathName + entryName).c_str(),
1413 CPPUNIT_ASSERT( dir.CreateFile(entryName.c_str(), &file, false) == B_OK );
1416 CPPUNIT_ASSERT( file.SetTo((dirPathName + entryName).c_str(),
1421 CPPUNIT_ASSERT( dir.CreateFile(entryName.c_str(), &file, true)
1430 CPPUNIT_ASSERT( dir.CreateSymLink(entryName.c_str(), existingFil
[all...]
/haiku/src/tests/add-ons/kernel/file_systems/consistency_check/
H A Dconsistency_check.cpp123 if (::stat(entry.path.c_str(), &stat) != 0) {
124 fprintf(stderr, "Could not stat file \"%s\": %s\n", entry.path.c_str(),
131 entry.path.c_str(), entry.node, stat.st_ino);
134 int file = open(entry.path.c_str(), O_RDONLY);
136 fprintf(stderr, "Could not open file \"%s\": %s\n", entry.path.c_str(),
143 fprintf(stderr, "Computing SHA failed \"%s\": %s\n", entry.path.c_str(),
149 fprintf(stderr, "\"%s\": Contents differ!\n", entry.path.c_str());
/haiku/src/tools/gensyscalls/
H A Dgensyscalls_common.h27 return fMessage.c_str();
/haiku/src/add-ons/print/transports/lpr/
H A DLpsClient.h27 return fWhat.c_str();
H A DLprTransport.cpp120 lpr.receiveControlFile(cfsize, cfname.str().c_str());
121 lpr.transferData(cf.str().c_str(), cfsize);
124 lpr.receiveDataFile(dfsize, dfname.str().c_str());
/haiku/src/kits/network/libnetapi/
H A DSocket.cpp122 TRACE("%p: accepted from %s to %s\n", this, local.ToString().c_str(),
123 peer.ToString().c_str());
/haiku/src/tests/servers/registrar/
H A DRosterShell.cpp122 status_t error = get_ref_for_path(program.c_str(), &ref);
125 program.c_str(), strerror(error));
134 printf("launched \"%s\", team id: %" B_PRId32 "\n", program.c_str(),
138 program.c_str(), strerror(error));
148 if (sscanf(arg.c_str(), "%" B_PRId32, &team) > 0)

Completed in 231 milliseconds

12345