Lines Matching refs:fd
274 FILE *fd;
431 int *ctl_sock, fd, maxfd = -1, nfds, i;
499 fd = accept(ctl_sock[i],
502 if (fd == -1) {
510 (void) dup2(fd, s);
511 (void) dup2(fd, STDOUT_FILENO);
512 (void) close(fd);
522 close(fd);
613 if ((fd = fopen(_PATH_NOLOGIN,"r")) != NULL) {
614 while (fgets(line, sizeof(line), fd) != NULL) {
620 (void) fclose(fd);
625 fd = fopen(thishost->welcome, "r");
627 fd = fopen(_PATH_FTPWELCOME, "r");
629 if (fd != NULL) {
630 while (fgets(line, sizeof(line), fd) != NULL) {
636 (void) fclose(fd);
1118 FILE *fd;
1125 if ((fd = fopen(fname, "r")) != NULL) {
1126 while (!found && (line = fgetln(fd, &len)) != NULL) {
1192 (void) fclose(fd);
1392 FILE *fd;
1640 fd = fopen(thishost->loginmsg, "r");
1642 fd = fopen(_PATH_FTPLOGINMESG, "r");
1644 if (fd != NULL) {
1647 while (fgets(line, sizeof(line), fd) != NULL) {
1653 (void) fclose(fd);
1802 int fd;
1831 if ((fd = guniquefd(name, &name)) < 0)
1833 fout = fdopen(fd, mode);
3139 int fd;
3174 if ((fd = open(count ? new : local,
3177 return (fd);