Lines Matching refs:slavefd
158 int slavefd;
165 if ((slavefd = open(slavename, O_RDWR)) < 0) {
169 if (write(slavefd, MESSAGE1, strlen(MESSAGE1)) != strlen(MESSAGE1)) {
173 if (close(slavefd) != 0) {
177 if ((slavefd = open(slavename, O_RDWR)) < 0) {
181 if (write(slavefd, MESSAGE2, strlen(MESSAGE2)) != strlen(MESSAGE2)) {
185 if (close(slavefd) != 0) {
189 if ((slavefd = open(slavename, O_RDWR)) < 0) {
193 if (write(slavefd, MESSAGE3, strlen(MESSAGE3)) != strlen(MESSAGE3)) {
197 if (close(slavefd) != 0) {