Searched refs:fd (Results 1 - 25 of 2268) sorted by relevance

1234567891011>>

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openvpn-2.3.1/src/openvpn/
H A Dfdmisc.h27 bool set_nonblock_action (int fd);
28 bool set_cloexec_action (int fd);
30 void set_nonblock (int fd);
31 void set_cloexec (int fd);
H A Dfdmisc.c40 set_nonblock_action (int fd) argument
44 if (ioctlsocket (fd, FIONBIO, &arg))
47 if (fcntl (fd, F_SETFL, O_NONBLOCK) < 0)
55 set_cloexec_action (int fd) argument
58 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0)
66 set_nonblock (int fd) argument
68 if (!set_nonblock_action (fd))
74 set_cloexec (int fd) argument
76 if (!set_cloexec_action (fd))
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/um/include/shared/
H A Dsigio.h9 extern int write_sigio_irq(int fd);
10 extern int register_sigio_fd(int fd);
H A Dirq_user.h14 int fd; member in struct:irq_fd
24 extern void free_irq_by_fd(int fd);
25 extern void reactivate_fd(int fd, int irqnum);
26 extern void deactivate_fd(int fd, int irqnum);
28 extern int activate_ipi(int fd, int pid);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/avahi-0.6.25/avahi-core/
H A Dfdutil.h29 int avahi_set_cloexec(int fd);
30 int avahi_set_nonblock(int fd);
31 int avahi_wait_for_write(int fd);
H A Dfdutil.c33 int avahi_set_cloexec(int fd) { argument
36 assert(fd >= 0);
38 if ((n = fcntl(fd, F_GETFD)) < 0)
44 return fcntl(fd, F_SETFD, n|FD_CLOEXEC);
47 int avahi_set_nonblock(int fd) { argument
50 assert(fd >= 0);
52 if ((n = fcntl(fd, F_GETFL)) < 0)
58 return fcntl(fd, F_SETFL, n|O_NONBLOCK);
61 int avahi_wait_for_write(int fd) { argument
66 FD_SET(fd,
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/avahi-0.6.25/avahi-core/
H A Dfdutil.h29 int avahi_set_cloexec(int fd);
30 int avahi_set_nonblock(int fd);
31 int avahi_wait_for_write(int fd);
H A Dfdutil.c33 int avahi_set_cloexec(int fd) { argument
36 assert(fd >= 0);
38 if ((n = fcntl(fd, F_GETFD)) < 0)
44 return fcntl(fd, F_SETFD, n|FD_CLOEXEC);
47 int avahi_set_nonblock(int fd) { argument
50 assert(fd >= 0);
52 if ((n = fcntl(fd, F_GETFL)) < 0)
58 return fcntl(fd, F_SETFL, n|O_NONBLOCK);
61 int avahi_wait_for_write(int fd) { argument
66 FD_SET(fd,
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/lib/
H A Ddaemon.c62 int fd; local
64 fd = open ("/dev/null", O_RDWR, 0);
65 if (fd != -1)
67 dup2 (fd, STDIN_FILENO);
68 dup2 (fd, STDOUT_FILENO);
69 dup2 (fd, STDERR_FILENO);
70 if (fd > 2)
71 close (fd);
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/libbb/
H A Ddevice_open.c15 int m, f, fd = -1; local
22 if ((fd = open(device, m, 0600)) >= 0)
24 if (fd < 0)
25 return fd;
28 fcntl(fd, F_SETFL, mode);
29 return fd;
H A Dget_console.c21 int fd; local
24 fd = open(fnam, O_RDWR);
27 if (fd < 0 && errno == EACCES)
28 fd = open(fnam, O_RDONLY);
31 if (fd < 0 && errno == EACCES)
32 fd = open(fnam, O_WRONLY);
34 return fd;
38 * Get an fd for use with kbd/console ioctls.
49 int fd; local
51 for (fd
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/dbus/
H A Ddbus-pipe.c32 * @param fd the file descriptor to init from
36 int fd)
38 pipe->fd = fd;
62 return pipe->fd >= 0;
74 return pipe->fd == 1 || pipe->fd == 2;
84 pipe->fd = -1;
35 _dbus_pipe_init(DBusPipe *pipe, int fd) argument
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ntfs-3g-2009.3.8/libfuse-lite/
H A Dhelper.c16 int fd; local
18 fd = fuse_kern_mount(mountpoint, args);
19 if (fd == -1)
22 ch = fuse_kern_chan_new(fd);
24 fuse_kern_unmount(mountpoint, fd);
31 int fd = ch ? fuse_chan_fd(ch) : -1; local
32 fuse_kern_unmount(mountpoint, fd);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/picocom/
H A Dterm.h14 * terminal devices. For every fd, the original settings of the
16 * are restored when the fd is removed from the framework, or at
19 * structures for every fd in the framework: The original settings
42 * F term_replace - replace a fd w/o affecting the settings stuctures
228 * Add the filedes "fd" to the framework. The filedes must be opened
235 int term_add (int fd);
239 * Remove the filedes "fd" from the framework. The device associated
247 int term_remove (int fd);
251 * Remove the filedes "fd" from the framework. The device associated
257 int term_erase (int fd);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/
H A Disrv.h16 void isrv_want_rd(isrv_state_t *state, int fd);
17 void isrv_want_wr(isrv_state_t *state, int fd);
18 void isrv_dont_want_rd(isrv_state_t *state, int fd);
19 void isrv_dont_want_wr(isrv_state_t *state, int fd);
20 int isrv_register_fd(isrv_state_t *state, int peer, int fd);
21 void isrv_close_fd(isrv_state_t *state, int fd);
27 int (*new_peer)(isrv_state_t *state, int fd),
28 int (*do_rd)(int fd, void **),
29 int (*do_wr)(int fd, void **),
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/util-linux/
H A Dmkswap.c14 int fd, pagesize; local
24 fd = xopen(argv[1], O_RDWR);
25 len = fdlength(fd);
39 xlseek(fd, 1024, SEEK_SET);
40 xwrite(fd, hdr, sizeof(hdr));
41 xlseek(fd, pagesize-10, SEEK_SET);
42 xwrite(fd, "SWAPSPACE2", 10);
43 fsync(fd);
45 if (ENABLE_FEATURE_CLEAN_UP) close(fd);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/lib/
H A Dsock_exec.c32 static int socketpair_tcp(int fd[2]) argument
40 fd[0] = fd[1] = listener = -1;
58 if ((fd[1] = socket(PF_INET, SOCK_STREAM, 0)) == -1) goto failed;
60 set_blocking(fd[1], 0);
64 if (connect(fd[1],(struct sockaddr *)&sock,sizeof(sock)) == -1) {
70 if ((fd[0] = accept(listener, (struct sockaddr *)&sock, &socklen)) == -1) goto failed;
74 if (connect(fd[1],(struct sockaddr *)&sock,sizeof(sock)) != 0
78 set_blocking(fd[1], 1);
84 if (fd[
100 int fd[2]; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/tiff/
H A Dmkversion.c52 FILE* fd = fopen(filename, "r"); local
53 if (fd == NULL) {
58 return (fd);
69 FILE* fd; local
92 fd = openFile(versionFile);
93 if (fgets(version, sizeof (version)-1, fd) == NULL) {
101 fclose(fd);
106 fd = openFile(releaseDateFile);
107 if (fgets(rawReleaseDate, sizeof (rawReleaseDate)-1, fd) == NULL) {
112 fclose(fd);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/include/
H A DUdpLib.h21 int udp_bind(int fd, int portno);
22 void udp_close(int fd);
23 int udp_write(int fd, char * buf, int len, struct sockaddr_in * to);
24 int udp_read(int fd, char * buf, int len, struct sockaddr_in * from);
25 int udp_read_timed(int fd, char * buf, int len,
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/zebra/
H A Dipforward_ews.c28 int fd; local
32 fd = open ("/dev/kmem", O_RDWR);
33 if (fd < 0) {
42 if (ioctl (fd, MIOC_READKSYM, &rks) < 0) {
46 close (fd);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/conntrack-tools/conntrack-tools-1.4.0/include/
H A Dexternal.h15 void (*dump)(int fd, int type);
17 int (*commit)(struct nfct_handle *h, int fd);
18 void (*stats)(int fd);
19 void (*stats_ext)(int fd);
26 void (*dump)(int fd, int type);
28 int (*commit)(struct nfct_handle *h, int fd);
29 void (*stats)(int fd);
30 void (*stats_ext)(int fd);
H A Dtraffic_stats.h8 void dump_traffic_stats(int fd);
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/e2fsprogs/old_e2fsprogs/ext2fs/
H A Dgetsectsize.c24 #include <linux/fd.h>
39 int fd; local
42 fd = open64(file, O_RDONLY);
44 fd = open(file, O_RDONLY);
46 if (fd < 0)
50 if (ioctl(fd, BLKSSZGET, sectsize) >= 0) {
51 close(fd);
56 close(fd);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/os/
H A Dos_fsync.c16 #define fsync(fd) __vx_fsync(fd)
19 __vx_fsync(fd)
20 int fd;
29 if ((ret = ioctl(fd, FIOSYNC, 0)) != ERROR)
36 #define fsync(fd) __mpe_fsync(fd)
39 __mpe_fsync(fd)
40 int fd;
44 FCONTROL(_MPE_FILENO(fd),
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/src/
H A Dtool_xattr.h26 int fwrite_xattr(CURL *curl, int fd);

Completed in 382 milliseconds

1234567891011>>