Skip to content

vquic: use CURLX_FILE_MODE() in Curl_qlogdir() - #23171

Closed
vszakats wants to merge 4 commits into
curl:masterfrom
vszakats:fopen-mode-more
Closed

vszakats wants to merge 4 commits into
curl:masterfrom
vszakats:fopen-mode-more

Conversation

@vszakats

@vszakats vszakats commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

To fix 32-bit Android builds with HTTP/3 enabled.

Also:

  • file: merge win32/non-win32 branches more.

Follow-up to be9e603 #23158


https://github.com/curl/curl/pull/23171/files?w=1

To fix 32-bit Android builds using HTTP/3.

Also:
- file: merge win32/non-win32 branches.

Follow-up to be9e603 curl#23158
@vszakats vszakats added build HTTP/3 h3 or quic related labels Sep 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Updates file-mode handling for HTTP/3 qlog files and FILE uploads, fixing 32-bit Android builds.

Changes:

  • Applies CURLX_FILE_MODE() to qlog file creation.
  • Consolidates platform-specific curlx_open() handling.
File Description
lib/​vquic/​vquic.c Uses platform-safe file-mode handling for qlog creation.
lib/​file.c Simplifies platform-specific file-opening logic.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vszakats vszakats closed this in d48f2f4 Sep 29, 2026
@vszakats
vszakats deleted the fopen-mode-more branch September 29, 2026 13:30
vszakats added a commit that referenced this pull request Oct 1, 2026
`mode_t` is POSIX.

Note, Windows `open()` expects `int`, so only use this in non-Windows
codepaths.

Ref: https://learn.microsoft.com/cpp/c-runtime-library/reference/open-wopen

Suggested-by: Dan Fandrich
Ref: #23158 (comment)
Follow-up to d48f2f4 #23171
Follow-up to be9e603 #23158

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

Labels

build HTTP/3 h3 or quic related

Development

Successfully merging this pull request may close these issues.

2 participants