Skip to content

Read the OpenBSD host name natively - #3566

Merged
dbwiddis merged 1 commit into
oshi:masterfrom
dbwiddis:openbsd-native-hostname
Aug 3, 2026
Merged

dbwiddis merged 1 commit into
oshi:masterfrom
dbwiddis:openbsd-native-hostname

Conversation

@dbwiddis

@dbwiddis dbwiddis commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

OpenBSD had no getHostName() override, so it fell through to AbstractNetworkParams, which calls InetAddress.getLocalHost(). That resolves the name rather than just reading it, so on a host whose hostname is not resolvable — routine in a container, or with no /etc/hosts entry — it throws UnknownHostException, degrades to getLoopbackAddress(), and reports localhost instead of the real name. It can also block on a DNS timeout. gethostname(2) is a plain syscall with neither failure mode.

Every other platform already prefers the native call and keeps the JDK lookup as its fallback:

Native gethostname JDK InetAddress
Linux, macOS, AIX, FreeBSD, DragonFly, Solaris, Windows, OpenBSD (this PR) NetBSD

Shape

Follows the FreeBSD pattern exactly: OpenBsdNetworkParams becomes abstract with a queryHostName() hook and the prefer-native-fall-back-to-super override; thin JNA and FFM subclasses supply the binding. getNetworkParams() moves from the shared OS base to the two backend subclasses, which is what lets them differ.

The FFM half only became possible with #3565 — OpenBSD never bound gethostname itself and now inherits it from PosixLibcFunctions.

What is deliberately not done

NetBSD stays on the JDK path. Its OS class is concrete with no FFM subclass, and there is no NetBsdLibcFunctions at all, because pkgsrc has no JDK 25 and its FFM backend takes the no-native route on purpose. Giving it a native host name would mean building that whole layer for one function. The JDK path cannot break when JDK 25 does arrive. Tracked on #3348.

DragonFly needs nothing — it returns FreeBsdNetworkParams{JNA,FFM} and already has the native call.

On verification

OpenBSD is the best-covered of the three platforms for this change: CI runs it on JDK 25 with aggregate coverage, so both backends exercise the new path on the next run. That is a stronger position than DragonFly, whose FFM code is untested on-platform because its runner is JDK 21 — and which already ships this same native call.

Full gate green from clean: install, spotless, checkstyle, forbiddenapis, javadoc, 1509 tests / 0 failed.

Summary by CodeRabbit

  • New Features

    • OpenBSD host names are now retrieved directly from the system, improving accuracy and avoiding name-resolution issues.
    • Added support for retrieving OpenBSD network parameters across both native integration modes.
    • Hostname lookup gracefully falls back when the direct system query is unavailable.
  • Documentation

    • Added the change to the version 7.4.4 changelog.

OpenBSD had no getHostName() override, so it fell through to
AbstractNetworkParams, which calls InetAddress.getLocalHost(). That
resolves the name rather than just reading it, so on a host whose
hostname is not resolvable -- routine in a container, or with no
/etc/hosts entry -- it throws UnknownHostException, degrades to
getLoopbackAddress() and reports "localhost" instead of the real name.
It can also block on a DNS timeout. gethostname(2) is a plain syscall
with neither failure mode.

Every other platform already prefers the native call and keeps the JDK
lookup as its fallback. OpenBSD now does the same, following the
FreeBSD shape: OpenBsdNetworkParams becomes abstract with a
queryHostName() hook and the prefer-native-fall-back-to-super override,
and thin JNA and FFM subclasses supply the binding. getNetworkParams()
moves from the shared OS base to the two backend subclasses, which is
what lets the two differ.

The FFM half only became possible with #3565: OpenBSD never bound
gethostname itself, and inherits it from PosixLibcFunctions.

NetBSD is deliberately left alone. Its OS class is concrete with no FFM
subclass and there is no NetBsdLibcFunctions at all, because pkgsrc has
no JDK 25 and its FFM backend takes the no-native route on purpose.
Giving it a native host name would mean building that whole layer for
one function; it stays on the JDK path, which cannot break when JDK 25
does arrive. Tracked on #3348.

DragonFly BSD needs nothing: it returns FreeBsdNetworkParams{JNA,FFM}
and already has the native call.

OpenBSD is the best-covered of the three for this change. CI runs it on
JDK 25 with aggregate coverage, so both backends exercise the new path
on the next run -- unlike DragonFly, whose FFM code is untested on
platform because its runner is JDK 21.
@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

OpenBSD host names now use native gethostname queries. Shared abstractions require platform-specific implementations. Both FFM and JNA operating-system implementations provide network parameters with native hostname lookup and fallback behavior.

Changes

OpenBSD hostname lookup

Layer / File(s) Summary
Shared OpenBSD contracts
oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java, oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java, CHANGELOG.md
OpenBsdNetworkParams is abstract and delegates hostname lookup to queryHostName() with superclass fallback. getNetworkParams() is now abstract. The changelog records the native lookup change.
FFM hostname implementation
oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java, oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java, oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
The FFM implementation binds gethostname, allocates a bounded buffer, decodes successful results, logs failures, and returns the FFM network-parameters implementation.
JNA hostname implementation
oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java, oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
The JNA implementation queries OpenBSD libc, converts successful results, returns null on failure, and supplies the JNA network-parameters implementation.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant OpenBsdOperatingSystemFFM
  participant OpenBsdNetworkParamsFFM
  participant OpenBSD_gethostname
  OpenBsdOperatingSystemFFM->>OpenBsdNetworkParamsFFM: getNetworkParams()
  OpenBsdNetworkParamsFFM->>OpenBsdNetworkParamsFFM: getHostName()
  OpenBsdNetworkParamsFFM->>OpenBSD_gethostname: gethostname(buffer, HOST_NAME_MAX + 1)
  OpenBSD_gethostname-->>OpenBsdNetworkParamsFFM: status and hostname bytes
  OpenBsdNetworkParamsFFM-->>OpenBsdOperatingSystemFFM: decoded host name or fallback
Loading

Possibly related PRs

  • oshi/oshi#3363: Both changes modify OpenBSD JNA network-parameter integration.
  • oshi/oshi#3457: Both changes use shared abstract classes for platform-specific network parameters.

Poem

A rabbit hops where host names grow,
Native calls now make them show.
FFM and JNA share the trail,
With fallback ready if calls fail.
Carrots cheer the cleaner flow!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: native retrieval of the OpenBSD host name.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.22222% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.39%. Comparing base (eb18af3) to head (f40d656).

Files with missing lines Patch % Lines
...tware/os/unix/openbsd/OpenBsdNetworkParamsFFM.java 71.42% 1 Missing and 1 partial ⚠️
...tware/os/unix/openbsd/OpenBsdNetworkParamsJNA.java 66.66% 1 Missing and 1 partial ⚠️
...e/common/os/unix/openbsd/OpenBsdNetworkParams.java 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3566      +/-   ##
============================================
- Coverage     79.44%   79.39%   -0.06%     
- Complexity     3800     4158     +358     
============================================
  Files           707      709       +2     
  Lines         24280    24296      +16     
  Branches       4061     4064       +3     
============================================
  Hits          19289    19289              
- Misses         2795     2810      +15     
- Partials       2196     2197       +1     
Flag Coverage Δ
freebsd 32.81% <0.00%> (-0.03%) ⬇️
linux 36.81% <0.00%> (-0.02%) ⬇️
macos 37.72% <0.00%> (-0.07%) ⬇️
openbsd 31.97% <72.22%> (+0.02%) ⬆️
solaris 33.31% <0.00%> (-0.06%) ⬇️
windows 44.64% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java`:
- Around line 18-22: Add Javadoc to the public getHostName() method in
oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java
(lines 18-22), and to getNetworkParams() in
oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java
(line 60),
oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
(lines 29-32), and
oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
(lines 24-27), following the project’s existing Javadoc conventions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3650c0d1-e3b0-44cd-8145-cef9f1d8d51e

📥 Commits

Reviewing files that changed from the base of the PR and between eb18af3 and f40d656.

📒 Files selected for processing (8)
  • CHANGELOG.md
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java
  • oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java
  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java
  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
📜 Review details
⏰ Context from checks skipped due to timeout. (9)
  • GitHub Check: Test JDK 25, FreeBSD (+ JNA==FFM)
  • GitHub Check: Test JDK 25, OpenBSD (+ JNA==FFM)
  • GitHub Check: Test JDK 25, OpenIndiana (+ JNA==FFM)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Test JDK 25, windows-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 25, ubuntu-latest (+ JNA==FFM)
  • GitHub Check: Test JDK 25, macos-latest (+ JNA==FFM)
  • GitHub Check: Lint (Spotless, Checkstyle, ForbiddenAPIs, Javadoc)
  • GitHub Check: Analyze (java)
🧰 Additional context used
📓 Path-based instructions (5)
**/*.java

📄 CodeRabbit inference engine (AGENTS.md)

**/*.java: Do not use org.slf4j.event.**; use oshi.util.LogLevel instead.
Add the imports needed by code, and let Spotless own formatting and import ordering.
Verify native struct offsets, field widths, and sysctl/ioctl constants against the target operating system's real headers rather than inferring them from another OS.

Files:

  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java
  • oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java
  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java
oshi-core-ffm/src/main/java/**/*.java

📄 CodeRabbit inference engine (AGENTS.md)

oshi-core-ffm/src/main/java/**/*.java: oshi-core-ffm must not reference com.sun.jna.**.
Behavior changes in FFM implementation classes should also be applied equivalently to their corresponding JNA twins, unless the difference is intentionally specific to FFM or JNA.

Files:

  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java
  • oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java
  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
**/src/main/java/**/*.java

📄 CodeRabbit inference engine (AGENTS.md)

**/src/main/java/**/*.java: Every public member must have Javadoc, and code and Javadoc—including {@link ...}—must use imported simple class names rather than fully qualified names.
New classes should declare an appropriate concurrency annotation from oshi.annotation.concurrent, matching the modeled class when applicable.
Memoize constant or expensive, slowly changing system-call results with oshi.util.Memoizer, following surrounding patterns and using defaultExpiration() when values must refresh.
Place reusable per-OS acquisition and parsing helpers in oshi/driver/<os>/; keep parsing logic out of HAL classes where practical.
Prefer native calls for system information; on Linux prefer FileUtil for /proc and /sys, while on other platforms ExecutingCommand is acceptable when native APIs do not expose the information.
Do not commit generated output, target/, or IDE files.

Files:

  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java
  • oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java
  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java
oshi-core/src/main/java/**/*.java

📄 CodeRabbit inference engine (AGENTS.md)

oshi-core/src/main/java/**/*.java: oshi-core must compile with Java 8; do not use modern features such as var, records, switch expressions, text blocks, List.of, or Stream.toList().
Behavior changes in JNA implementation classes should also be applied equivalently to their corresponding FFM twins, unless the difference is intentionally specific to JNA or FFM.

Files:

  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
oshi-common/src/main/java/**/*.java

📄 CodeRabbit inference engine (AGENTS.md)

oshi-common/src/main/java/**/*.java: Keep oshi-common pure Java 8 with no JNA, FFM, or native library loading references; shared parsing, conversion, filtering, caching, and validation logic belongs here rather than duplicated in implementation modules.
Use oshi.util.ParseUtil methods instead of banned numeric parsing APIs such as Integer.parseInt, Long.parseLong, Double.parseDouble, and Integer.decode.

Files:

  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java
🧠 Learnings (5)
📚 Learning: 2026-07-06T19:25:59.225Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3432
File: oshi-common/src/main/java/oshi/util/ExceptionUtil.java:26-56
Timestamp: 2026-07-06T19:25:59.225Z
Learning: In this repo’s SLF4J 1.x-compatible logging code, do not flag cases where a logger call uses SLF4J 1.6+ implicit-cause handling—e.g., `log.error("...{}", value, t)` (or similar with a single `{}` placeholder) where `t` is passed as the final/trailing argument. SLF4J will attach `t` as the log event’s cause with the full stack trace; this is equivalent to SLF4J 2.x’s fluent `atLevel(...).setCause(t).log(...)` and is intentionally used to preserve SLF4J 1.x runtime compatibility.

Applied to files:

  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java
  • oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java
  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java
📚 Learning: 2026-07-30T00:35:22.638Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3547
File: oshi-common/src/main/java/oshi/hardware/common/platform/unix/BsdFirmware.java:82-82
Timestamp: 2026-07-30T00:35:22.638Z
Learning: In OSHI, treat changes as “API-breaking” only when they affect classes (or relevant API surface) annotated with `PublicAPI`. Public classes/members that are not annotated with `PublicAPI` should be reviewed as internal implementation details, even if they are public (e.g., classes like `oshi.hardware.common.platform.unix.BsdFirmware`). Also, respect intentional visibility decisions used for tests—e.g., methods like `BsdFirmware.parseDmesg(List<String>)` may be intentionally package-private to support tests within the same package; avoid widening visibility or altering signatures unless the related `PublicAPI` contract requires it.

Applied to files:

  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java
  • oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java
  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java
📚 Learning: 2026-08-02T23:56:23.866Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3565
File: oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/PosixLibcFunctions.java:51-56
Timestamp: 2026-08-02T23:56:23.866Z
Learning: For Java FFM bindings in the oshi-core-ffm module, assume a 64-bit JVM and 64-bit operating system. Do not flag 32-bit native ABI or memory-layout compatibility concerns, consistent with the project's JDK 25 support policy, unless that policy changes.

Applied to files:

  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java
  • oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java
  • oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java
📚 Learning: 2026-04-06T04:45:47.644Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3121
File: oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java:53-53
Timestamp: 2026-04-06T04:45:47.644Z
Learning: In the oshi/oshi project, only interfaces and classes in the root packages `oshi`, `oshi.hardware`, and `oshi.software.os` are considered the public API. Code in subpackages that represent specific implementations/platforms (e.g., `oshi.software.os.linux`, `oshi.hardware.platform.linux`, and similar subpackages) is implementation detail. When reviewing, do not treat changes to classes in these platform-specific subpackages as public API breaks (for example: making `LinuxOperatingSystem` abstract, narrowing constructor visibility, or adding/removing abstract methods should not be flagged as breaking public API).

Applied to files:

  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java
  • oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java
📚 Learning: 2026-04-12T19:22:09.716Z
Learnt from: dbwiddis
Repo: oshi/oshi PR: 3149
File: oshi-common/src/main/java/oshi/hardware/common/platform/mac/MacCentralProcessor.java:159-163
Timestamp: 2026-04-12T19:22:09.716Z
Learning: When reviewing OSHI hardware platform code that uses or implements `CentralProcessor`/`PhysicalProcessor.getEfficiency()`, remember the API’s counterintuitive semantics: a *higher* efficiency-class value indicates *greater performance* (lower efficiency). P-cores/“performance cores” should therefore have higher values (e.g., 1) than E-cores/“efficiency cores” (e.g., 0), as documented in the `CentralProcessor` Javadoc. Do not flag code as incorrect solely because ARM_P_CORES or Intel P-cores are assigned higher efficiency values.

Applied to files:

  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdOperatingSystem.java
  • oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java
🔇 Additional comments (7)
oshi-common/src/main/java/oshi/software/common/os/unix/openbsd/OpenBsdNetworkParams.java (1)

12-16: LGTM!

Also applies to: 34-40

CHANGELOG.md (1)

8-8: LGTM!

oshi-core-ffm/src/main/java/oshi/ffm/platform/unix/openbsd/OpenBsdLibcFunctions.java (1)

40-41: LGTM!

oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsFFM.java (1)

1-39: LGTM!

oshi-core-ffm/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemFFM.java (1)

19-19: LGTM!

oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdNetworkParamsJNA.java (1)

1-32: LGTM!

oshi-core/src/main/java/oshi/software/os/unix/openbsd/OpenBsdOperatingSystemJNA.java (1)

14-14: LGTM!

@dbwiddis
dbwiddis merged commit e22ea48 into oshi:master Aug 3, 2026
16 checks passed
@dbwiddis
dbwiddis deleted the openbsd-native-hostname branch August 3, 2026 00:48
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.

1 participant