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

1234567891011>>

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/include/
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
25 extern int activate_fd(int irq, int fd, int type, void *dev_id);
27 extern void free_irq_by_fd(int fd);
28 extern void reactivate_fd(int fd, int irqnum);
29 extern void deactivate_fd(int fd, int irqnum);
31 extern int activate_ipi(int fd, int pid);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/os-Linux/
H A Dtty.c13 int fd; member in struct:grantpt_info
22 info->res = grantpt(info->fd);
29 int fd; local
31 fd = os_open_file("/dev/ptmx", of_rdwr(OPENFLAGS()), 0);
32 if(fd < 0){
33 printk("get_pty : Couldn't open /dev/ptmx - err = %d\n", -fd);
34 return(fd);
37 info.fd = fd;
45 if(unlockpt(fd) <
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/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);
H A Dfreeramdisk.c14 /* From <linux/fd.h> */
20 int fd; local
24 fd = xopen(argv[1], O_RDWR);
27 ioctl_or_perror_and_die(fd, (ENABLE_FREERAMDISK && applet_name[1]=='r')
30 if (ENABLE_FEATURE_CLEAN_UP) close(fd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/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-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/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-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/
H A Dfd_ostream.priv.h10 int fd; member in struct:fd_ostream_representation
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libdaemon-0.14/libdaemon/
H A Ddnonblock.h36 * @param fd The file descriptor to manipulation
41 int daemon_nonblock(int fd, int b);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/src/
H A Dtool_xattr.h26 int fwrite_xattr(CURL *curl, int fd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/drivers/
H A Dssl.h9 extern int ssl_read(int fd, int line);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/hfsplus_journal/
H A Dbfind.c14 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) argument
18 fd->tree = tree;
19 fd->bnode = NULL;
23 fd->search_key = ptr;
24 fd->key = ptr + tree->max_key_len + 2;
30 void hfs_find_exit(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument
32 hfs_bnode_put(hfsplus_handle, fd->bnode);
33 kfree(fd->search_key);
34 dprint(DBG_BNODE_REFS, "find_exit: %d (%p)\n", fd->tree->cnid, __builtin_return_address(0));
35 up(&fd
39 hfsplus_journalled_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) argument
54 hfsplus_journalled_find_exit(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument
63 __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd) argument
106 hfs_brec_find(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument
160 hfs_brec_read(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd, void *rec, int rec_len) argument
173 hfs_brec_goto(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd, int cnt) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/console-tools/
H A Dchvt.c21 int fd, num; local
27 fd = get_console_fd();
30 xioctl(fd, VT_ACTIVATE, (void *)(ptrdiff_t)num);
31 xioctl(fd, VT_WAITACTIVE, (void *)(ptrdiff_t)num);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/Documentation/watchdog/src/
H A Dwatchdog-simple.c7 int fd = open("/dev/watchdog", O_WRONLY); local
8 if (fd == -1) {
13 write(fd, "\0", 1);
14 fsync(fd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/coreutils/
H A Dcat.c22 int fd; local
29 fd = STDIN_FILENO;
31 fd = open_or_warn(*argv, O_RDONLY);
32 if (fd >= 0) {
34 off_t r = bb_copyfd_eof(fd, STDOUT_FILENO);
35 if (fd != STDIN_FILENO)
36 close(fd);

Completed in 200 milliseconds

1234567891011>>