Lines Matching defs:serviceName
47 STATIC int BuildSendData(char *buffer, size_t size, const char *serviceName, bool hold, bool poll)
49 if (buffer == NULL || size == 0 || serviceName == 0) {
67 if (snprintf_s(buffer, size, size - 1, "%s|%s|%s", serviceName, holdString, pollString) == -1) {
74 static int ServiceSendFds(const char *serviceName, int *fds, int fdCount, bool doPoll)
86 int ret = BuildSendData(sendBuffer, sizeof(sendBuffer), serviceName, true, doPoll);
125 int ServiceSaveFd(const char *serviceName, int *fds, int fdCount)
128 if (serviceName == NULL || fds == NULL ||
133 return ServiceSendFds(serviceName, fds, fdCount, false);
136 int ServiceSaveFdWithPoll(const char *serviceName, int *fds, int fdCount)
139 if (serviceName == NULL || fds == NULL ||
144 return ServiceSendFds(serviceName, fds, fdCount, true);
147 int *ServiceGetFd(const char *serviceName, size_t *outfdCount)
149 if (serviceName == NULL || outfdCount == NULL) {
155 int ret = snprintf_s(path, MAX_FD_HOLDER_BUFFER, MAX_FD_HOLDER_BUFFER - 1, ENV_FD_HOLD_PREFIX"%s", serviceName);