# sys Namespace

# sys

## Summary

| ### Functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1ab2f0d30284b7552669fa25cd8187ca10(const std::string & service_path, const std::string & instance)` | `std::unique_ptr< https://fuchsia.dev/reference/cpp/class/fidl/service-connector#classfidl_1_1_service_connector >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1a7706bc0d0c22a6946bafa8727a90d923(const std::string & service_path)` | `https://fuchsia.dev/reference/cpp/class/fidl/interface-handle#classfidl_1_1_interface_handle< fuchsia::io::Directory >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1ab92d4d38922c4e5f2d4ff7af256c68a6(const https://fuchsia.dev/reference/cpp/class/fidl/interface-handle#classfidl_1_1_interface_handle< fuchsia::io::Directory > & handle, const std::string & service_path)` | `https://fuchsia.dev/reference/cpp/class/fidl/interface-handle#classfidl_1_1_interface_handle< fuchsia::io::Directory >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1a51b07ac073997ae856309faa4d82a84a(fdio_ns_t *ns, const std::string & service_path)` | `https://fuchsia.dev/reference/cpp/class/fidl/interface-handle#classfidl_1_1_interface_handle< fuchsia::io::Directory >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1a1462ead248aa343053c29abfd3929be7(const https://fuchsia.dev/reference/cpp/class/fidl/interface-handle#classfidl_1_1_interface_handle< fuchsia::io::Directory > & handle, const std::string & service_path, const std::string & instance)` | `std::unique_ptr< https://fuchsia.dev/reference/cpp/class/fidl/service-connector#classfidl_1_1_service_connector >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1a90d55440b0ad73b3465ec0b3a9955145(fdio_ns_t *ns, const std::string & service_path, const std::string & instance)` | `std::unique_ptr< https://fuchsia.dev/reference/cpp/class/fidl/service-connector#classfidl_1_1_service_connector >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1ae7307d47c3f8568c5c285fee2d3b5973(const std::string & instance)` | `Service` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1a55de76c173c2842014d707538ead53c1()` | `https://fuchsia.dev/reference/cpp/struct/sys/service-aggregate#structsys_1_1_service_aggregate< Service >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1a963a0347053156aab9c8e57e7e654bfa(const https://fuchsia.dev/reference/cpp/class/fidl/interface-handle#classfidl_1_1_interface_handle< fuchsia::io::Directory > & handle)` | `https://fuchsia.dev/reference/cpp/struct/sys/service-aggregate#structsys_1_1_service_aggregate< Service >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1a9b83e31d9ed4ece57aca6e778dbbfb42(fdio_ns_t *ns)` | `https://fuchsia.dev/reference/cpp/struct/sys/service-aggregate#structsys_1_1_service_aggregate< Service >` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1ac053a6856a319c59cdfb2482c4065759(const https://fuchsia.dev/reference/cpp/class/fidl/interface-handle#classfidl_1_1_interface_handle< fuchsia::io::Directory > & handle, const std::string & instance)` | `Service` |
| `https://fuchsia.dev/reference/cpp/namespace/sys#namespacesys_1afae055c8b8e6a7c32c13aa347bc21211(fdio_ns_t *ns, const std::string & instance)` | `Service` |

| ### Classes ||
|---|---|
| [sys::ComponentContext](https://fuchsia.dev/reference/cpp/class/sys/component-context) |   |
| [sys::OutgoingDirectory](https://fuchsia.dev/reference/cpp/class/sys/outgoing-directory) |   |
| [sys::ServiceAggregateBase](https://fuchsia.dev/reference/cpp/class/sys/service-aggregate-base) |   |
| [sys::ServiceDirectory](https://fuchsia.dev/reference/cpp/class/sys/service-directory) |   |
| [sys::ServiceHandler](https://fuchsia.dev/reference/cpp/class/sys/service-handler) |   |

| ### Structs ||
|---|---|
| [sys::ServiceAggregate](https://fuchsia.dev/reference/cpp/struct/sys/service-aggregate) |   |

| ### Namespaces ||
|---|---|
| [sys::testing](https://fuchsia.dev/reference/cpp/namespace/sys/testing) |   |

## Functions

### OpenNamedService

```c++
std::unique_ptr< fidl::ServiceConnector > OpenNamedService(
  const std::string & service_path,
  const std::string & instance
)
```

### OpenNamedServiceAggregate

```c++
fidl::InterfaceHandle< fuchsia::io::Directory > OpenNamedServiceAggregate(
  const std::string & service_path
)
```

### OpenNamedServiceAggregateAt

```c++
fidl::InterfaceHandle< fuchsia::io::Directory > OpenNamedServiceAggregateAt(
  const fidl::InterfaceHandle< fuchsia::io::Directory > & handle,
  const std::string & service_path
)
```

### OpenNamedServiceAggregateIn

```c++
fidl::InterfaceHandle< fuchsia::io::Directory > OpenNamedServiceAggregateIn(
  fdio_ns_t *ns,
  const std::string & service_path
)
```

### OpenNamedServiceAt

```c++
std::unique_ptr< fidl::ServiceConnector > OpenNamedServiceAt(
  const fidl::InterfaceHandle< fuchsia::io::Directory > & handle,
  const std::string & service_path,
  const std::string & instance
)
```

### OpenNamedServiceIn

```c++
std::unique_ptr< fidl::ServiceConnector > OpenNamedServiceIn(
  fdio_ns_t *ns,
  const std::string & service_path,
  const std::string & instance
)
```

### OpenService

```c++
Service OpenService(
  const std::string & instance
)
```

### OpenServiceAggregate

```c++
ServiceAggregate< Service > OpenServiceAggregate()
```

### OpenServiceAggregateAt

```c++
ServiceAggregate< Service > OpenServiceAggregateAt(
  const fidl::InterfaceHandle< fuchsia::io::Directory > & handle
)
```

### OpenServiceAggregateIn

```c++
ServiceAggregate< Service > OpenServiceAggregateIn(
  fdio_ns_t *ns
)
```

### OpenServiceAt

```c++
Service OpenServiceAt(
  const fidl::InterfaceHandle< fuchsia::io::Directory > & handle,
  const std::string & instance
)
```

### OpenServiceIn

```c++
Service OpenServiceIn(
  fdio_ns_t *ns,
  const std::string & instance
)
```