Skip to content

Replace libbase's WriteStringToFd with cuttleifsh::WriteExact#2400

Open
jemoreira wants to merge 2 commits intogoogle:mainfrom
jemoreira:str2fd
Open

Replace libbase's WriteStringToFd with cuttleifsh::WriteExact#2400
jemoreira wants to merge 2 commits intogoogle:mainfrom
jemoreira:str2fd

Conversation

@jemoreira
Copy link
Copy Markdown
Member

Bug: 502705785

@jemoreira jemoreira requested a review from Databean April 15, 2026 00:39
@jemoreira jemoreira enabled auto-merge April 15, 2026 00:39
android::base::unique_fd fd(open(
output_path.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0644));
CF_EXPECTF(fd.ok(), "Couldn't open '{}': '{}'", output_path, StrError(errno));
SharedFD fd = SharedFD::Open(output_path.c_str(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: SharedFD::Open accepts a std::string, so it doesn't need the .c_str() conversion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants