Home
last modified time | relevance | path

Searched refs:sfd (Results 1 – 2 of 2) sorted by relevance

/busybox-1.35.0/miscutils/
Dmicrocom.c56 int sfd; in microcom_main() local
82 sfd = open(device_lock_file, O_CREAT | O_WRONLY | O_TRUNC | O_EXCL, 0644); in microcom_main()
83 if (sfd < 0) { in microcom_main()
95 fdprintf(sfd, "%4d\n", getpid()); in microcom_main()
96 close(sfd); in microcom_main()
111 sfd = open_or_warn(argv[0], O_RDWR | O_NOCTTY | O_NONBLOCK); in microcom_main()
112 if (sfd < 0) in microcom_main()
114 fcntl(sfd, F_SETFL, O_RDWR); in microcom_main()
117 xget1(sfd, &tio, &tiosfd); in microcom_main()
120 if (xset1(sfd, &tio, argv[0])) in microcom_main()
[all …]
/busybox-1.35.0/networking/
Dnc.c122 int sfd = sfd; /* for gcc */ in nc_main() local
197 sfd = create_and_bind_stream_or_die(argv[0], lport); in nc_main()
198 xlisten(sfd, do_listen); /* can be > 1 */ in nc_main()
205 getsockname(sfd, &lsa.u.sa, &lsa.len); in nc_main()
210 close_on_exec_on(sfd); in nc_main()
212 cfd = accept(sfd, NULL, 0); in nc_main()
216 close(sfd); in nc_main()