Searched refs:sfd (Results 1 - 21 of 21) sorted by relevance

/asus-wl-520gu-7.0.1.45/src/router/rp-l2tp/handlers/
H A Dpty.c44 int mfd, sfd; local
48 sfd = -1;
59 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0) {
65 if (sfd < 0 || mfd < 0) {
66 if (sfd >= 0) close(sfd);
72 *sfp = sfd;
73 if (tcgetattr(sfd, &tios) == 0) {
79 tcsetattr(sfd, TCSAFLUSH, &tios);
81 if (ioctl(sfd, TIOCSET
[all...]
/asus-wl-520gu-7.0.1.45/src/router/busybox/
H A Dnc.c45 int do_listen = 0, lport = 0, tmpfd, opt, sfd; local
69 if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
78 if (bind(sfd, (struct sockaddr *) &address, sizeof(address)) < 0)
85 if (listen(sfd, 1) < 0)
88 if ((tmpfd = accept(sfd, (struct sockaddr *) &address, &addrlen)) < 0)
91 close(sfd);
92 sfd = tmpfd;
99 if (connect(sfd, (struct sockaddr *) &address, sizeof(address)) < 0)
104 FD_SET(sfd, &readfds);
122 if (fd == sfd) {
[all...]
H A Dinterface.c914 int sfd = -1; local
932 sfd = af->fd;
950 sfd = af->fd;
952 if (sfd < 0)
954 return sfd;
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/ui/
H A Dui_flash.c324 int sfd; local
415 sfd = cfe_open(fname);
416 if (sfd < 0) {
417 return ui_showerror(sfd,"Could not open source device");
422 if (cfe_ioctl(sfd,IOCTL_FLASH_GETINFO,
444 res = cfe_read(sfd,ptr,size);
446 cfe_close(sfd);
/asus-wl-520gu-7.0.1.45/src/router/wanduck/
H A Dwanduck.c447 client[fd_i].sfd = -1;
531 client[fd_i].sfd = -1;
686 if(client[fd_i].sfd < 0){
687 client[fd_i].sfd = cur_sockfd;
712 if((sockfd = client[fd_i].sfd) < 0)
855 void handle_http_req(int sfd, char *line){ argument
866 close_socket(sfd, T_HTTP);
870 send_page(sfd, NULL, dst_url);
873 close_socket(sfd, T_HTTP);
876 void handle_dns_req(int sfd, cha argument
925 send_page(int sfd, char *file_dest, char *url) argument
[all...]
H A Dwanduck.h130 int sfd; member in struct:REQCLIENT
/asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/
H A Dsys-sunos4.c1329 int i, mfd, sfd; local
1333 sfd = -1;
1340 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
1341 if (sfd >= 0)
1346 if (sfd < 0)
1351 *slave_fdp = sfd;
1352 fchown(sfd, uid, -1);
1353 fchmod(sfd, S_IRUSR | S_IWUSR);
1354 if (tcgetattr(sfd, &tios) == 0) {
1360 if (tcsetattr(sfd, TCSAFLUS
[all...]
H A Dsys-linux.c2452 int i, mfd, sfd = -1; local
2471 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0)
2477 if (sfd < 0) {
2485 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
2486 if (sfd >= 0) {
2487 fchown(sfd, uid, -1);
2488 fchmod(sfd, S_IRUSR | S_IWUSR);
2496 if (sfd < 0)
2501 *slave_fdp = sfd;
2502 if (tcgetattr(sfd,
[all...]
H A Dsys-solaris.c2534 int mfd, sfd; local
2557 sfd = open(pty_name, O_RDWR);
2558 if (sfd < 0) {
2563 if (ioctl(sfd, I_PUSH, "ptem") < 0)
2569 *slave_fdp = sfd;
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/
H A Dsys-sunos4.c1551 int i, mfd, sfd; local
1555 sfd = -1;
1562 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
1563 if (sfd >= 0)
1568 if (sfd < 0)
1573 *slave_fdp = sfd;
1574 fchown(sfd, uid, -1);
1575 fchmod(sfd, S_IRUSR | S_IWUSR);
1576 if (tcgetattr(sfd, &tios) == 0) {
1582 if (tcsetattr(sfd, TCSAFLUS
[all...]
H A Dsys-linux.c2563 int i, mfd, sfd = -1; local
2582 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0)
2588 if (sfd < 0) {
2596 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
2597 if (sfd >= 0) {
2598 fchown(sfd, uid, -1);
2599 fchmod(sfd, S_IRUSR | S_IWUSR);
2607 if (sfd < 0)
2612 *slave_fdp = sfd;
2613 if (tcgetattr(sfd,
[all...]
H A Dsys-solaris.c2744 int mfd, sfd; local
2767 sfd = open(pty_name, O_RDWR);
2768 if (sfd < 0) {
2773 if (ioctl(sfd, I_PUSH, "ptem") < 0)
2779 *slave_fdp = sfd;
/asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/
H A Dsys-sunos4.c1551 int i, mfd, sfd; local
1555 sfd = -1;
1562 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
1563 if (sfd >= 0)
1568 if (sfd < 0)
1573 *slave_fdp = sfd;
1574 fchown(sfd, uid, -1);
1575 fchmod(sfd, S_IRUSR | S_IWUSR);
1576 if (tcgetattr(sfd, &tios) == 0) {
1582 if (tcsetattr(sfd, TCSAFLUS
[all...]
H A Dsys-linux.c2563 int i, mfd, sfd = -1; local
2582 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0)
2588 if (sfd < 0) {
2596 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
2597 if (sfd >= 0) {
2598 fchown(sfd, uid, -1);
2599 fchmod(sfd, S_IRUSR | S_IWUSR);
2607 if (sfd < 0)
2612 *slave_fdp = sfd;
2613 if (tcgetattr(sfd,
[all...]
H A Dsys-solaris.c2744 int mfd, sfd; local
2767 sfd = open(pty_name, O_RDWR);
2768 if (sfd < 0) {
2773 if (ioctl(sfd, I_PUSH, "ptem") < 0)
2779 *slave_fdp = sfd;
/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/AUTHENTICATE/
H A Dsclient.c32 void send_to_logger( int sfd, int mfd, struct job *job, const char *header, char *msg ){;} argument
H A Dsserver.c209 void send_to_logger( int sfd, int mfd, struct job *job, const char *header, char *msg ){;} argument
/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/include/
H A Dlp.h107 void send_to_logger( int sfd, int mfd, struct job *job, const char *header, char *msg );
/asus-wl-520gu-7.0.1.45/src/router/busybox/libbb/
H A Dinterface.c949 int sfd = -1; local
967 sfd = af->fd;
985 sfd = af->fd;
987 if (sfd < 0)
989 return sfd;
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/ncpfs/
H A Dncplib_kernel.c563 static inline void ConvertToNWfromDWORD(__u32 sfd, __u8 ret[6]) argument
566 memcpy(ret + 2, &sfd, 4);
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/net/pcmcia/
H A Drayctl.h565 UCHAR sfd[2]; member in struct:phy_header

Completed in 242 milliseconds