darling icon indicating copy to clipboard operation
darling copied to clipboard

Implement missing libxpc functions

Open LubosD opened this issue 9 years ago • 5 comments

Darling takes libxpc from NextBSD, but a lot of APIs are missing:

  • [ ] xpc_copy_entitlements_for_pid
  • [ ] xpc_strerror (#ifdefed out?!)
  • [x] xpc_dictionary_set_mach_recv
  • [x] xpc_dictionary_set_mach_send
  • [x] xpc_dictionary_copy_mach_send
  • [ ] xpc_dictionary_get_audit_token
  • [ ] xpc_copy_entitlement_for_token
  • [ ] xpc_domain_server
  • [x] xpc_pipe_try_receive
  • [x] xpc_pipe_routine_reply

LubosD avatar Nov 28 '16 14:11 LubosD

  • [x] xpc_data_get_bytes
  • [x] xpc_equal
  • [x] xpc_fd_create
  • [x] xpc_array_dup_fd
  • [ ] xpc_array_set_fd
  • [ ] xpc_array_get_connection
  • [x] xpc_array_set_connection
  • [x] xpc_connection_cancel
  • [x] xpc_connection_get_name
  • [x] xpc_connection_set_finalizer_f
  • [x] xpc_endpoint_create
  • [ ] xpc_transaction_begin
  • [ ] xpc_transaction_end
  • [ ] mpack2xpc_extension

bugaevc avatar Feb 11 '17 18:02 bugaevc

We could pull some fixes done in here: https://github.com/PureDarwin/launchd-and-libxpc/tree/master/src/libxpc

LubosD avatar Aug 22 '18 19:08 LubosD

@LubosD @bugaevc There is a pull request from the same person who implemented xpc that applies some fixes. Hope this helps.

npyl avatar Aug 22 '18 19:08 npyl

Like https://github.com/PureDarwin/launchd-and-libxpc/pull/3/commits/b8d5d0494e623c3da2cae4bfc210be523554131f

npyl avatar Aug 22 '18 20:08 npyl

@npyl Done. Copied all changes done in libxpc.

LubosD avatar Aug 22 '18 20:08 LubosD