<!--
{
  "documentType" : "article",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/launchd",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "launchd"
}
-->

# launchd

Browse APIs for interacting with `launchd`.

## Topics

### Sockets

[`launch_activate_socket`](/documentation/XPC/launch_activate_socket)

Retrieves the file descriptors for sockets in the process’s `launchd` property list.

### Data types

[`launch_data_t`](/documentation/XPC/launch_data_t)

A type that represents launch data.

[`launch_data_type_t`](/documentation/XPC/launch_data_type_t)

A type that represents possible types of launch data.

[`launch_data_dict_iterator_t`](/documentation/XPC/launch_data_dict_iterator_t)

A type for iterating over a launch data dictionary.

### Deprecated

[`launch_data_alloc`](/documentation/XPC/launch_data_alloc)

[`launch_data_array_get_count`](/documentation/XPC/launch_data_array_get_count)

[`launch_data_array_get_index`](/documentation/XPC/launch_data_array_get_index)

[`launch_data_array_set_index`](/documentation/XPC/launch_data_array_set_index)

[`launch_data_copy`](/documentation/XPC/launch_data_copy)

[`launch_data_dict_get_count`](/documentation/XPC/launch_data_dict_get_count)

[`launch_data_dict_insert`](/documentation/XPC/launch_data_dict_insert)

[`launch_data_dict_iterate`](/documentation/XPC/launch_data_dict_iterate)

[`launch_data_dict_lookup`](/documentation/XPC/launch_data_dict_lookup)

[`launch_data_dict_remove`](/documentation/XPC/launch_data_dict_remove)

[`launch_data_free`](/documentation/XPC/launch_data_free)

[`launch_data_get_bool`](/documentation/XPC/launch_data_get_bool)

[`launch_data_get_errno`](/documentation/XPC/launch_data_get_errno)

[`launch_data_get_fd`](/documentation/XPC/launch_data_get_fd)

[`launch_data_get_integer`](/documentation/XPC/launch_data_get_integer)

[`launch_data_get_machport`](/documentation/XPC/launch_data_get_machport)

[`launch_data_get_opaque`](/documentation/XPC/launch_data_get_opaque)

[`launch_data_get_opaque_size`](/documentation/XPC/launch_data_get_opaque_size)

[`launch_data_get_real`](/documentation/XPC/launch_data_get_real)

[`launch_data_get_string`](/documentation/XPC/launch_data_get_string)

[`launch_data_get_type`](/documentation/XPC/launch_data_get_type)

[`launch_data_new_bool`](/documentation/XPC/launch_data_new_bool)

[`launch_data_new_fd`](/documentation/XPC/launch_data_new_fd)

[`launch_data_new_integer`](/documentation/XPC/launch_data_new_integer)

[`launch_data_new_machport`](/documentation/XPC/launch_data_new_machport)

[`launch_data_new_opaque`](/documentation/XPC/launch_data_new_opaque)

[`launch_data_new_real`](/documentation/XPC/launch_data_new_real)

[`launch_data_new_string`](/documentation/XPC/launch_data_new_string)

[`launch_data_set_bool`](/documentation/XPC/launch_data_set_bool)

[`launch_data_set_fd`](/documentation/XPC/launch_data_set_fd)

[`launch_data_set_integer`](/documentation/XPC/launch_data_set_integer)

[`launch_data_set_machport`](/documentation/XPC/launch_data_set_machport)

[`launch_data_set_opaque`](/documentation/XPC/launch_data_set_opaque)

[`launch_data_set_real`](/documentation/XPC/launch_data_set_real)

[`launch_data_set_string`](/documentation/XPC/launch_data_set_string)

[`launch_get_fd`](/documentation/XPC/launch_get_fd)

[`launch_msg`](/documentation/XPC/launch_msg)



---

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)