Searched refs:new_fd (Results 1 - 19 of 19) sorted by relevance

/asus-wl-520gu-7.0.1.45/src/router/samba/source/nsswitch/
H A Dwb_common.c78 int new_fd; local
81 if ((new_fd = fcntl(fd, F_DUPFD, 3)) == -1) {
85 if (new_fd < 3) {
86 close(new_fd);
90 return new_fd;
95 new_fd = dup(fd);
96 if (new_fd == -1)
100 new_fd = make_nonstd_fd_internals(new_fd, limit - 1);
102 return new_fd;
111 int new_fd = make_nonstd_fd_internals(fd, RECURSION_LIMIT); local
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/core/
H A Dscm.c218 int new_fd; local
222 new_fd = err;
223 err = put_user(new_fd, cmfptr);
225 put_unused_fd(new_fd);
230 fd_install(new_fd, fp[i]);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/x86_64/ia32/
H A Dsocket32.c237 int new_fd; local
241 new_fd = err;
242 err = put_user(new_fd, cmfptr);
244 put_unused_fd(new_fd);
249 fd_install(new_fd, fp[i]);
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/jffs2/
H A Dgc.c345 struct jffs2_full_dirent *new_fd; local
370 new_fd = jffs2_write_dirent(inode, &rd, fd->name, rd.nsize, phys_ofs, NULL);
372 if (IS_ERR(new_fd)) {
373 printk(KERN_WARNING "jffs2_write_dirent in garbage_collect_dirent failed: %ld\n", PTR_ERR(new_fd));
374 return PTR_ERR(new_fd);
376 jffs2_add_fd_to_list(c, new_fd, &f->dents);
/asus-wl-520gu-7.0.1.45/src/router/ppp/pppoecd/
H A Dmain.c1233 int new_fd; local
1252 new_fd = open (_PATH_DEVNULL, O_RDWR);
1253 if (new_fd >= 0) {
1254 if (new_fd != 0) {
1255 dup2 (new_fd, 0); /* stdin <- /dev/null */
1256 close (new_fd);
H A Dsys-linux.c139 /* new_fd is the fd of a tty */
140 static void set_ppp_fd (int new_fd) argument
142 SYSDEBUG ((LOG_DEBUG, "setting ppp_fd to %d\n", new_fd));
143 ppp_fd = new_fd;
145 ppp_dev_fd = new_fd;
/asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/
H A Dmain.c1462 int new_fd; local
1481 new_fd = open (_PATH_DEVNULL, O_RDWR);
1482 if (new_fd >= 0) {
1483 if (new_fd != 0) {
1484 dup2 (new_fd, 0); /* stdin <- /dev/null */
1485 close (new_fd);
H A Dsys-linux.c204 /* new_fd is the fd of a tty */
205 static void set_ppp_fd (int new_fd) argument
207 SYSDEBUG ((LOG_DEBUG, "setting ppp_fd to %d\n", new_fd));
208 ppp_fd = new_fd;
210 ppp_dev_fd = new_fd;
/asus-wl-520gu-7.0.1.45/src/router/u2ec/
H A Dusbsock.c2330 int find_fd, conf_fd, new_fd; local
2376 if ((new_fd = accept(conf_fd, (struct sockaddr *)&cli_addr, &addr_len)) < 0) {
2382 if ((ret = recv(new_fd, message, 9, 0)) <= 0) {
2387 PSNDRECV("add_remote_device from fd: %d received: %s\n", new_fd, message);
2390 if (send(new_fd, message, strlen(message), 0) < 0) {
2401 if (send(new_fd, message, strlen(message), 0) < 0) {
2411 close(new_fd);
3334 int new_fd; local
3345 if ((new_fd = accept(sockfd, (struct sockaddr *)&cli_addr, &addr_len)) < 0) {
3350 if (send(new_fd, "\
3719 int conn_fd, new_fd; // socket fd local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/vsftpd/
H A Dsysutil.h92 void vsf_sysutil_dupfd2(int old_fd, int new_fd);
H A Dsysutil.c1249 vsf_sysutil_dupfd2(int old_fd, int new_fd) argument
1252 if (old_fd == new_fd)
1256 retval = dup2(old_fd, new_fd);
1257 if (retval != new_fd)
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/
H A Dsys-linux.c265 /* new_fd is the fd of a tty */
266 static void set_ppp_fd (int new_fd) argument
268 SYSDEBUG ((LOG_DEBUG, "setting ppp_fd to %d\n", new_fd));
269 ppp_fd = new_fd;
271 ppp_dev_fd = new_fd;
/asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/
H A Dsys-linux.c265 /* new_fd is the fd of a tty */
266 static void set_ppp_fd (int new_fd) argument
268 SYSDEBUG ((LOG_DEBUG, "setting ppp_fd to %d\n", new_fd));
269 ppp_fd = new_fd;
271 ppp_dev_fd = new_fd;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips64/kernel/
H A Dlinux32.c2464 int new_fd; local
2468 new_fd = err;
2469 err = put_user(new_fd, cmfptr);
2471 put_unused_fd(new_fd);
2476 fd_install(new_fd, fp[i]);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/parisc/kernel/
H A Dsys_parisc32.c2041 int new_fd; local
2045 new_fd = err;
2046 err = put_user(new_fd, cmfptr);
2048 put_unused_fd(new_fd);
2053 fd_install(new_fd, fp[i]);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc64/kernel/
H A Dsys_ppc32.c3540 int new_fd; local
3544 new_fd = err;
3545 err = put_user(new_fd, cmfptr);
3547 put_unused_fd(new_fd);
3552 fd_install(new_fd, fp[i]);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/s390x/kernel/
H A Dlinux32.c2480 int new_fd; local
2484 new_fd = err;
2485 err = put_user(new_fd, cmfptr);
2487 put_unused_fd(new_fd);
2492 fd_install(new_fd, fp[i]);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sparc64/kernel/
H A Dsys_sparc32.c2520 int new_fd; local
2524 new_fd = err;
2525 err = put_user(new_fd, cmfptr);
2527 put_unused_fd(new_fd);
2532 fd_install(new_fd, fp[i]);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ia64/ia32/
H A Dsys_ia32.c1540 int new_fd; local
1544 new_fd = err;
1545 err = put_user(new_fd, cmfptr);
1547 put_unused_fd(new_fd);
1552 current->files->fd[new_fd] = fp[i];

Completed in 242 milliseconds