Lines Matching refs:slavefd
160 int slavefd;
167 if ((slavefd = open(slavename, O_RDWR)) < 0) {
171 if (write(slavefd, MESSAGE1, strlen(MESSAGE1)) != strlen(MESSAGE1)) {
175 if (close(slavefd) != 0) {
179 if ((slavefd = open(slavename, O_RDWR)) < 0) {
183 if (write(slavefd, MESSAGE2, strlen(MESSAGE2)) != strlen(MESSAGE2)) {
187 if (close(slavefd) != 0) {
191 if ((slavefd = open(slavename, O_RDWR)) < 0) {
195 if (write(slavefd, MESSAGE3, strlen(MESSAGE3)) != strlen(MESSAGE3)) {
199 if (close(slavefd) != 0) {