<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/1552984-anonymous",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Anonymous"
}
-->

# Anonymous

The following constants are provided by the `NSProcessInfo` class as return values for [`operatingSystem()`](/documentation/Foundation/ProcessInfo/operatingSystem()).

## Topics

### Constants

[`var NSHPUXOperatingSystem: Int`](/documentation/Foundation/NSHPUXOperatingSystem)

Indicates the HP UX operating system.

[`var NSMACHOperatingSystem: Int`](/documentation/Foundation/NSMACHOperatingSystem)

Indicates the macOS operating system.

[`var NSOSF1OperatingSystem: Int`](/documentation/Foundation/NSOSF1OperatingSystem)

Indicates the OSF/1 operating system.

[`var NSSolarisOperatingSystem: Int`](/documentation/Foundation/NSSolarisOperatingSystem)

Indicates the Solaris operating system.

[`var NSSunOSOperatingSystem: Int`](/documentation/Foundation/NSSunOSOperatingSystem)

Indicates the Sun OS operating system.

[`var NSWindows95OperatingSystem: Int`](/documentation/Foundation/NSWindows95OperatingSystem)

Indicates the Windows 95 operating system.

[`var NSWindowsNTOperatingSystem: Int`](/documentation/Foundation/NSWindowsNTOperatingSystem)

Indicates the Windows NT operating system.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)