Skip to content

Extract readTimespec helper in __syscall_utimensat. NFC - #27786

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:readTimespec
Sep 26, 2026
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:readTimespec

Conversation

@sbc100

@sbc100 sbc100 commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Extract duplicated timespec reading logic in __syscall_utimensat into a local readTimespec helper function.

@sbc100 sbc100 changed the title [FS] Extract readTimespec helper in __syscall_utimensat. NFC Extract readTimespec helper in __syscall_utimensat. NFC Sep 26, 2026

@guybedford guybedford left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI generated review, may be incorrect

LGTM: the helper is behaviourally identical (same UTIME_NOW/UTIME_OMIT handling and ms computation; tv_sec is now read only when used, which is where the JS saving comes from).

@sbc100
sbc100 enabled auto-merge (squash) September 26, 2026 01:42
Extract duplicated `timespec` reading logic in `__syscall_utimensat`
into a local `readTimespec` helper function.
@sbc100
sbc100 merged commit 887305e into emscripten-core:main Sep 26, 2026
42 checks passed
@sbc100
sbc100 deleted the readTimespec branch September 26, 2026 16:35
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