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

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/networking/
H A Dnc.c28 /* sfd sits _here_ only because of "repeat" option (-l -l). */
29 int sfd = sfd; /* for gcc */ local
97 sfd = xsocket_stream(&lsa);
100 setsockopt_reuseaddr(sfd);
101 xbind(sfd, &lsa->sa, lsa->len);
102 xlisten(sfd, do_listen); /* can be > 1 */
107 getsockname(sfd, &lsa->sa, &addrlen);
111 fcntl(sfd, F_SETFD, FD_CLOEXEC);
113 cfd = accept(sfd, NUL
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/include/atalk/
H A Dunix.h41 extern int unix_rename(int sfd, const char *oldpath, int dfd, const char *newpath);
42 extern int copy_file(int sfd, const char *src, const char *dst, mode_t mode);
H A Dvfs.h62 #define VFS_FUNC_ARGS_COPYFILE const struct vol *vol, int sfd, const char *src, const char *dst
63 #define VFS_FUNC_VARS_COPYFILE vol, sfd, src, dst
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/include/atalk/
H A Dunix.h39 extern int unix_rename(int sfd, const char *oldpath, int dfd, const char *newpath);
40 extern int copy_file(int sfd, const char *src, const char *dst, mode_t mode);
H A Dvfs.h62 #define VFS_FUNC_ARGS_COPYFILE const struct vol *vol, int sfd, const char *src, const char *dst
63 #define VFS_FUNC_VARS_COPYFILE vol, sfd, src, dst
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/libatalk/vfs/
H A Dunix.c196 int sfd = -1; local
205 sfd = openat(dirfd, src, O_RDONLY);
207 sfd = open(src, O_RDONLY);
209 if (sfd < 0) {
222 while ((cc = read(sfd, filebuf, sizeof(filebuf)))) {
247 if (sfd != -1)
248 close(sfd);
299 * unix_rename mulitplexes rename and renameat. If we dont HAVE_ATFUNCS, sfd and dfd
302 * @param sfd (r) if we HAVE_ATFUNCS, -1 gives AT_FDCWD
304 * @param dfd (r) same as sfd
307 unix_rename(int sfd, const char *oldpath, int dfd, const char *newpath) argument
[all...]
H A Dea_sys.c399 * @note Supports *at semantics, therfor switches back and forth between sfd and cwd
409 if (sfd != -1) {
418 if (sfd != -1) {
419 if (fchdir(sfd) == -1) {
420 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to sfd: %s",
448 if (sfd != -1) {
464 if (sfd != -1) {
465 if (fchdir(sfd) == -1) {
466 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to sfd: %s",
489 if (sfd !
[all...]
H A Dea.c802 * sfd (r) openat like file descriptor
1480 if ((ea_openat(vol, sfd, src, EA_RDWR, &srcea)) != 0) {
1536 if ((copy_file(sfd, srceapath, eapath, (0666 & ~vol->v_umask))) < 0) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/libatalk/vfs/
H A Dunix.c185 int sfd = -1; local
194 sfd = openat(dirfd, src, O_RDONLY);
196 sfd = open(src, O_RDONLY);
198 if (sfd < 0) {
211 while ((cc = read(sfd, filebuf, sizeof(filebuf)))) {
236 if (sfd != -1)
237 close(sfd);
288 * unix_rename mulitplexes rename and renameat. If we dont HAVE_ATFUNCS, sfd and dfd
291 * @param sfd (r) if we HAVE_ATFUNCS, -1 gives AT_FDCWD
293 * @param dfd (r) same as sfd
296 unix_rename(int sfd, const char *oldpath, int dfd, const char *newpath) argument
[all...]
H A Dea_sys.c399 * @note Supports *at semantics, therfor switches back and forth between sfd and cwd
409 if (sfd != -1) {
418 if (sfd != -1) {
419 if (fchdir(sfd) == -1) {
420 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to sfd: %s",
448 if (sfd != -1) {
464 if (sfd != -1) {
465 if (fchdir(sfd) == -1) {
466 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to sfd: %s",
489 if (sfd !
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/ipc/
H A Dshm.c167 struct shm_file_data *sfd = shm_file_data(file); local
170 shp = shm_lock(sfd->ns, sfd->id);
210 struct shm_file_data *sfd = shm_file_data(file); local
212 struct ipc_namespace *ns = sfd->ns;
216 shp = shm_lock(ns, sfd->id);
233 struct shm_file_data *sfd = shm_file_data(file); local
235 return sfd->vm_ops->nopage(vma, address, type);
242 struct shm_file_data *sfd = shm_file_data(file); local
244 if (sfd
252 struct shm_file_data *sfd = shm_file_data(file); local
267 struct shm_file_data *sfd = shm_file_data(file); local
282 struct shm_file_data *sfd = shm_file_data(file); local
293 struct shm_file_data *sfd = shm_file_data(file); local
306 struct shm_file_data *sfd = shm_file_data(file); local
315 struct shm_file_data *sfd; local
848 struct shm_file_data *sfd; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/dnsmasq-2.15/src/
H A Dnetwork.c387 struct serverfd *sfd; local
390 for (sfd = *sfds; sfd; sfd = sfd->next )
391 if (sockaddr_isequal(&sfd->source_addr, addr))
392 return sfd;
396 if (!(sfd = malloc(sizeof(struct serverfd))))
399 if ((sfd->fd = socket(addr->sa.sa_family, SOCK_DGRAM, 0)) == -1)
401 free(sfd);
[all...]
H A Dforward.c637 iSendResult = sendto(start->sfd->fd, (char *)header, plen, 0, &start->addr.sa, sa_len(&start->addr));
655 sendto(start->sfd->fd, (char *)header, plen, 0,
668 iSendResult = sendto(start->sfd->fd, (char *)header, plen, 0, &start->addr.sa, sa_len(&start->addr));
868 void reply_query(struct serverfd *sfd, struct daemon *daemon, time_t now) argument
876 int n = recvfrom(sfd->fd, daemon->packet, daemon->edns_pktsz, 0, &serveraddr.sa, &addrlen);
891 serveraddr.sa.sa_family = sfd->source_addr.sa.sa_family;
H A Ddnsmasq.h199 struct serverfd *sfd; /* non-NULL if this server has its own fd bound to member in struct:server
442 void reply_query(struct serverfd *sfd, struct daemon *daemon, time_t now);
H A Doption.c542 serv->sfd = NULL;
559 newlist->sfd = NULL;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/drivers/
H A Dslip_user.c135 int sfd, mfd, err; local
149 sfd = err;
151 if(set_up_tty(sfd))
154 pri->slave = sfd;
161 err = slip_tramp(argv, sfd);
175 err = os_set_slip(sfd);
184 os_close_file(sfd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/lib/
H A Deasy.c828 curl_socket_t *sfd,
840 *sfd = Curl_getconnectinfo(data, connp);
842 if(*sfd == CURL_SOCKET_BAD) {
857 curl_socket_t sfd; local
863 ret = easy_connection(data, &sfd, &c);
868 ret = Curl_read(c, sfd, buffer, buflen, &n1);
885 curl_socket_t sfd; local
891 ret = easy_connection(data, &sfd, &c);
896 ret = Curl_write(c, sfd, buffer, buflen, &n1);
827 easy_connection(struct SessionHandle *data, curl_socket_t *sfd, struct connectdata **connp) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/ppp-2.4.4/pppd/
H A Dsys-linux.c2551 int i, mfd, sfd = -1; local
2570 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0)
2573 if (sfd < 0) /* foxconn wklin added, 04/08/2011 */
2578 if (sfd < 0) {
2594 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
2595 if (sfd >= 0) {
2596 fchown(sfd, uid, -1);
2597 fchmod(sfd, S_IRUSR | S_IWUSR);
2605 if (sfd < 0)
2610 *slave_fdp = sfd;
[all...]
H A Dsys-solaris.c2740 int mfd, sfd; local
2763 sfd = open(pty_name, O_RDWR);
2764 if (sfd < 0) {
2769 if (ioctl(sfd, I_PUSH, "ptem") < 0)
2775 *slave_fdp = sfd;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/
H A Dfile.c1442 int sfd, dfd; local
1445 sfd = ad_data_fileno(ads);
1449 sfd = ad_reso_fileno(ads);
1453 if ((off_t)-1 == lseek(sfd, ad_getentryoff(ads, eid), SEEK_SET))
1466 if (fstat(sfd, &st) == 0) {
1473 if ((cc = sys_sendfile(dfd, sfd, &offset, size)) < 0) {
1485 lseek(sfd, offset, SEEK_SET);
1489 if ((cc = read(sfd, filebuf, sizeof(filebuf))) < 0) {
1510 int sfd,
1523 LOG(log_debug, logtype_afpd, "copyfile(sfd
1508 copyfile(const struct vol *s_vol, const struct vol *d_vol, int sfd, char *src, char *dst, char *newname, struct adouble *adp) argument
[all...]
H A Dappl.c86 static int copyapplfile(int sfd, int dfd, char *mpath, u_short mplen) argument
94 while (( cc = read( sfd, buf, sizeof(appltag) + sizeof( u_short ))) > 0 ) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/etc/afpd/
H A Dfile.c1445 int sfd, dfd; local
1448 sfd = ad_data_fileno(ads);
1452 sfd = ad_reso_fileno(ads);
1456 if ((off_t)-1 == lseek(sfd, ad_getentryoff(ads, eid), SEEK_SET))
1469 if (fstat(sfd, &st) == 0) {
1476 if ((cc = sys_sendfile(dfd, sfd, &offset, size)) < 0) {
1488 lseek(sfd, offset, SEEK_SET);
1492 if ((cc = read(sfd, filebuf, sizeof(filebuf))) < 0) {
1513 int sfd,
1526 LOG(log_debug, logtype_afpd, "copyfile(sfd
1511 copyfile(const struct vol *s_vol, const struct vol *d_vol, int sfd, char *src, char *dst, char *newname, struct adouble *adp) argument
[all...]
H A Dappl.c86 static int copyapplfile(int sfd, int dfd, char *mpath, u_short mplen) argument
94 while (( cc = read( sfd, buf, sizeof(appltag) + sizeof( u_short ))) > 0 ) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wireless/
H A Dwl3501.h273 u16 sfd; member in struct:wl3501_tx_hdr
542 u16 sfd; member in struct:wl3501_80211_tx_plcp_hdr
H A Drayctl.h565 UCHAR sfd[2]; member in struct:phy_header

Completed in 183 milliseconds

12