Project

General

Profile

Actions

Bug #14985

open

adjtime could be more const

Added by Patrick Mooney 8 days ago. Updated 8 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
headers
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Our definition for adjtime does not specify the first argument as const:

int adjtime(struct timeval *delta, struct timeval *olddelta);

This is at odds with most other UNIX-y platforms such as Linux, FreeBSD, NetBSD, etc, which declare the delta argument as const.
I noticed this discrepancy when the rust libc tests began emitting errors on illumos since their declared FFI symbol for adjtime was recently updated to feature a const delta.

It seems relatively safe to update ours to match.

Actions #1

Updated by Electric Monk 8 days ago

  • Gerrit CR set to 2369
Actions

Also available in: Atom PDF