Searched refs:fd (Results 101 - 125 of 1454) sorted by relevance

1234567891011>>

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/hotplug2/
H A Dfilemap_utils.h12 int fd; member in struct:filemap_t
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-s390/
H A Dposix_types.h82 static inline void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp) argument
84 unsigned long _tmp = fd / __NFDBITS;
85 unsigned long _rem = fd % __NFDBITS;
90 static inline void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp) argument
92 unsigned long _tmp = fd / __NFDBITS;
93 unsigned long _rem = fd % __NFDBITS;
98 static inline int __FD_ISSET(unsigned long fd, const __kernel_fd_set *fdsetp) argument
100 unsigned long _tmp = fd / __NFDBITS;
101 unsigned long _rem = fd % __NFDBITS;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/ffmpeg-0.5.1/libavformat/
H A Dtcp.c31 int fd; member in struct:TCPContext
38 int port, fd = -1; local
59 fd = socket(AF_INET, SOCK_STREAM, 0);
60 if (fd < 0)
62 ff_socket_nonblock(fd, 1);
65 ret = connect(fd, (struct sockaddr *)&dest_addr,
80 fd_max = fd;
82 FD_SET(fd, &wfds);
86 if (ret > 0 && FD_ISSET(fd, &wfds))
92 getsockopt (fd, SOL_SOCKE
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/jffs2/
H A Dbuild.c51 struct jffs2_full_dirent *fd; local
56 for(fd = ic->scan_dents; fd; fd = fd->next) {
58 if (!fd->ino)
63 child_ic = jffs2_get_ino_cache(c, fd->ino);
66 fd->name, fd->ino, ic->ino);
67 jffs2_mark_node_obsolete(c, fd
91 struct jffs2_full_dirent *fd; local
191 struct jffs2_full_dirent *fd; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/udhcpd/
H A Dsocket.c48 int fd; local
53 if((fd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW)) >= 0) {
58 if (ioctl(fd, SIOCGIFADDR, &ifr) == 0) {
69 if (ioctl(fd, SIOCGIFINDEX, &ifr) == 0) {
76 if (ioctl(fd, SIOCGIFHWADDR, &ifr) == 0) {
88 close(fd);
96 int fd; local
101 if ((fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
111 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *) &n, sizeof(n)) == -1) {
112 close(fd);
137 int fd; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libgcrypt-1.5.0/random/
H A Drndlinux.c43 set_cloexec_flag (int fd) argument
47 oldflags= fcntl (fd, F_GETFD, 0);
51 return fcntl (fd, F_SETFD, oldflags);
62 int fd; local
64 fd = open ( name, O_RDONLY );
65 if ( fd == -1 )
68 if (set_cloexec_flag (fd))
69 log_error ("error setting FD_CLOEXEC on fd %d: %s\n",
70 fd, strerror (errno));
78 if( fstat( fd,
95 int fd; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/gpio/
H A Dgpio.c26 int fd; local
28 fd = open(DEV_EXT_LED, O_RDWR);
29 if (fd < 0)
35 ret_val = ioctl(fd, cmd, arg);
36 close(fd);
44 int fd; local
46 fd = open(DEV_EXT_LED, O_RDWR);
47 if (fd < 0)
53 ret_val = ioctl(fd, cmd, arg);
54 close(fd);
62 int fd; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/zlib-1.2.3/examples/
H A Dgzlog.c24 int fd; /* log file descriptor */ member in struct:__anon1201
39 local int lock(int fd) argument
46 if (flock(fd, LOCK_EX + LOCK_NB) == 0)
57 local void unlock(int fd) argument
59 (void)flock(fd, LOCK_UN);
65 unlock(log->fd);
66 (void)close(log->fd);
147 log->fd = open(path, O_RDWR | O_CREAT, 0600);
148 if (log->fd < 0) {
152 if (lock(log->fd)) {
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/zlib-1.2.3/examples/
H A Dgzlog.c24 int fd; /* log file descriptor */ member in struct:__anon3057
39 local int lock(int fd) argument
46 if (flock(fd, LOCK_EX + LOCK_NB) == 0)
57 local void unlock(int fd) argument
59 (void)flock(fd, LOCK_UN);
65 unlock(log->fd);
66 (void)close(log->fd);
147 log->fd = open(path, O_RDWR | O_CREAT, 0600);
148 if (log->fd < 0) {
152 if (lock(log->fd)) {
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/libsmb/
H A Dlibsmb_compat.c32 int fd; member in struct:smbc_compat_fdlist
42 /* Find an fd and return the SMBCFILE * or NULL on failure */
43 static SMBCFILE * find_fd(int fd) argument
47 if (f->fd == fd)
54 /* Add an fd, returns 0 on success, -1 on error with errno set */
82 f->fd = SMBC_BASE_FD + smbc_compat_nextfd++;
88 return f->fd;
93 /* Delete an fd, returns 0 on success */
94 static int del_fd(int fd) argument
158 int fd; local
174 int fd; local
190 smbc_read(int fd, void *buf, size_t bufsize) argument
196 smbc_write(int fd, void *buf, size_t bufsize) argument
202 smbc_lseek(int fd, off_t offset, int whence) argument
208 smbc_close(int fd) argument
228 int fd; local
266 smbc_lseekdir(int fd, off_t offset) argument
287 smbc_fstat(int fd, struct stat *st) argument
335 smbc_fsetxattr(int fd, const char *name, const void *value, size_t size, int flags) argument
362 smbc_fgetxattr(int fd, const char *name, const void *value, size_t size) argument
383 smbc_fremovexattr(int fd, const char *name) argument
404 smbc_flistxattr(int fd, char *list, size_t size) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/include/atalk/
H A Dserver_ipc.h13 extern int ipc_server_read(server_child *children, int fd);
14 extern int ipc_child_write(int fd, uint16_t command, int len, void *token);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/drivers/
H A Dslip.h17 extern int slip_user_read(int fd, void *buf, int len, struct slip_data *pri);
18 extern int slip_user_write(int fd, void *buf, int len, struct slip_data *pri);
H A Dslirp.h19 extern int slirp_user_read(int fd, void *buf, int len, struct slirp_data *pri);
20 extern int slirp_user_write(int fd, void *buf, int len,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/include/
H A Dmem.h12 extern int physmem_subst_mapping(void *virt, int fd, __u64 offset, int w);
15 extern void physmem_forget_descriptor(int fd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm/
H A Dpmon.h34 #define pmon_close(fd) debug_vectors->close(fd)
35 #define pmon_read(fd, buf, count) debug_vectors->read(fd, buf, count)
36 #define pmon_write(fd, buf, count) debug_vectors->write(fd, buf, count)
37 #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/libbb/
H A Dfull_write.c17 ssize_t full_write(int fd, const void *buf, size_t len) argument
25 cc = safe_write(fd, buf, len);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-mips/
H A Dpmon.h34 #define pmon_close(fd) debug_vectors->close(fd)
35 #define pmon_read(fd, buf, count) debug_vectors->read(fd, buf, count)
36 #define pmon_write(fd, buf, count) debug_vectors->write(fd, buf, count)
37 #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/include/atalk/
H A Dserver_ipc.h13 extern int ipc_server_read(server_child *children, int fd);
14 extern int ipc_child_write(int fd, uint16_t command, int len, void *token);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/lib/
H A Dsmbrun.c32 int fd; local
38 fd = smb_mkstemp(path);
40 if (fd == -1) {
48 /* Ensure file only kept around by open fd. */
50 return fd;
170 int fd; local
171 for (fd=3;fd<256;fd++) close(fd);
291 int fd; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/os-Linux/
H A Dirq.c52 pollfds[i].fd = -1;
59 int os_create_pollfd(int fd, int events, void *tmp_pfd, int size_tmpfds) argument
78 pollfds[pollfds_num] = ((struct pollfd) { .fd = fd,
96 if ((pollfds[i].fd != -1) &&
97 (pollfds[i].fd != (*prev)->fd)) {
99 "active_fds and pollfds, fd %d vs %d\n",
100 (*prev)->fd, pollfds[i].fd);
132 os_set_pollfd(int i, int fd) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/e2fsprogs/old_e2fsprogs/blkid/
H A Dblkid_getsize.c26 #include <linux/fd.h>
54 static int valid_offset(int fd, blkid_loff_t offset) argument
58 if (blkid_llseek(fd, offset, 0) < 0)
60 if (read(fd, &ch, 1) < 1)
68 blkid_loff_t blkid_get_dev_size(int fd) argument
89 if (ioctl(fd, DKIOCGETBLOCKCOUNT, &size64) >= 0) {
105 ioctl(fd, BLKGETSIZE64, &size64) >= 0) {
114 if (ioctl(fd, BLKGETSIZE, &size) >= 0)
119 if (ioctl(fd, FDGETPRM, &this_floppy) >= 0)
131 for (high = 1024; valid_offset(fd, hig
149 int fd; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/aparser/
H A Dvluke.c8 int fd; local
20 fd = open(fname,O_RDONLY);
21 if (fd == -1) {
25 fstat(fd, &st);
29 io_read(&ps, fd, st.st_size, 0);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/docs/examples/
H A Dfileupload.c33 FILE *fd; local
35 fd = fopen("debugit", "rb"); /* open file to upload */
36 if(!fd) {
42 if(fstat(fileno(fd), &file_info) != 0) {
57 curl_easy_setopt(curl, CURLOPT_READDATA, fd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/src/
H A Dtool_xattr.c52 int fwrite_xattr(CURL *curl, int fd) argument
62 err = fsetxattr(fd, mappings[i].attr, value, strlen(value), 0, 0);
64 err = fsetxattr(fd, mappings[i].attr, value, strlen(value), 0);
72 int fwrite_xattr(CURL *curl, int fd) argument
75 (void)fd;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/web/
H A Ddiagnose.c43 int fd, count, flags; local
46 if ((fd = open_socket_in(SOCK_DGRAM, 0, 3,
48 if ((ip_list = name_query(fd, "__SAMBA__", 0,
52 close(fd);
55 close (fd);

Completed in 312 milliseconds

1234567891011>>