Searched refs:fd (Results 126 - 150 of 2268) sorted by relevance

1234567891011>>

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libunistring-0.9.3/tests/
H A Dzerosize-ptr.h51 const int fd = -1; local
54 int fd = open ("/dev/zero", O_RDONLY, 0666);
55 if (fd >= 0)
61 flags, fd, 0);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/
H A Dfd-ostream.oo.h40 extern fd_ostream_t fd_ostream_create (int fd, const char *filename,
H A Dsafe-read.h29 extern size_t safe_read (int fd, void *buf, size_t count);
H A Dterm-styled-ostream.oo.h41 term_styled_ostream_create (int fd, const char *filename,
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/Documentation/spi/
H A Dspidev_fdx.c17 static void do_read(int fd, int len) argument
29 status = read(fd, buf, len);
48 static void do_msg(int fd, int len) argument
67 status = ioctl(fd, SPI_IOC_MESSAGE(2), xfer);
79 static void dumpstat(const char *name, int fd) argument
84 if (ioctl(fd, SPI_IOC_RD_MODE, &mode) < 0) {
88 if (ioctl(fd, SPI_IOC_RD_LSB_FIRST, &lsb) < 0) {
92 if (ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits) < 0) {
96 if (ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed) < 0) {
110 int fd; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/hotplug2/
H A Dfilemap_utils.h12 int fd; member in struct:filemap_t
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/coreutils/
H A Dtouch.c27 int fd; local
44 fd = open(*argv, O_RDWR | O_CREAT,
47 if ((fd >= 0) && !close(fd)) {
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/e2fsprogs/old_e2fsprogs/ext2fs/
H A Dflushb.c53 errcode_t ext2fs_sync_device(int fd, int flushb) argument
61 if (fsync (fd) == -1)
67 if (ioctl (fd, BLKFLSBUF, 0) == 0)
75 ioctl (fd, FDFLUSH, 0); /* In case this is a floppy */
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/
H A Disrv_identd.c24 static int new_peer(isrv_state_t *state, int fd) argument
32 if (isrv_register_fd(state, peer, fd) < 0)
35 buf->fd_flag = fcntl(fd, F_GETFL) | O_NONBLOCK;
36 isrv_want_rd(state, fd);
40 static int do_rd(int fd, void **paramp) argument
50 fcntl(fd, F_SETFL, buf->fd_flag);
51 sz = safe_read(fd, cur, sizeof(buf->buf) - buf->pos);
67 * fd is still in nonblocking mode - we never block here */
68 if (fd == 0) fd
108 int fd; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/udhcp/
H A Dclientsocket.c40 int fd; local
44 fd = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));
49 xbind(fd, (struct sockaddr *) &sock, sizeof(sock));
51 return fd;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/services/
H A Dsvc_rcinit.c29 int ret, fd; local
36 ret = smbrun( command , &fd );
40 close(fd);
56 int ret, fd; local
63 ret = smbrun( command , &fd );
67 close(fd);
78 int ret, fd; local
87 ret = smbrun( command , &fd );
91 close(fd);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/expat/xmlwf/
H A Dunixfilemap.c25 int fd; local
30 fd = open(name, O_RDONLY);
31 if (fd < 0) {
35 if (fstat(fd, &sb) < 0) {
37 close(fd);
41 close(fd);
48 MAP_FILE|MAP_PRIVATE, fd, (off_t)0);
51 close(fd);
56 close(fd);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/s390/include/asm/
H A Dposix_types.h78 static inline void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp) argument
80 unsigned long _tmp = fd / __NFDBITS;
81 unsigned long _rem = fd % __NFDBITS;
86 static inline void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp) argument
88 unsigned long _tmp = fd / __NFDBITS;
89 unsigned long _rem = fd % __NFDBITS;
94 static inline int __FD_ISSET(unsigned long fd, const __kernel_fd_set *fdsetp) argument
96 unsigned long _tmp = fd / __NFDBITS;
97 unsigned long _rem = fd % __NFDBITS;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jffs2/
H A Dbuild.c52 struct jffs2_full_dirent *fd; local
57 for(fd = ic->scan_dents; fd; fd = fd->next) {
59 if (!fd->ino)
64 child_ic = jffs2_get_ino_cache(c, fd->ino);
67 fd->name, fd->ino, ic->ino);
68 jffs2_mark_node_obsolete(c, fd
98 struct jffs2_full_dirent *fd; local
198 struct jffs2_full_dirent *fd; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libsmbclient/smbwrapper/
H A Dwrapper.h78 ssize_t (* write)(int fd, void *buf, size_t count);
85 ssize_t (* pread)(int fd, void *buf, size_t size, off_t ofs);
86 ssize_t (* pread64)(int fd, void *buf, size_t size, off64_t ofs);
87 ssize_t (* pwrite)(int fd, void *buf, size_t size, off_t ofs);
88 ssize_t (* pwrite64)(int fd, void *buf, size_t size, off64_t ofs);
89 int (* close)(int fd);
90 int (* __close)(int fd);
91 int (* _close)(int fd);
92 int (* fcntl)(int fd, int cmd, long arg);
93 int (* __fcntl)(int fd, in
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/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-R7000-V1.0.7.12_1.2.5/src/router/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-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/um/os-Linux/
H A Dfile.c38 int os_stat_fd(const int fd, struct uml_stat *ubuf) argument
43 CATCH_EINTR(err = fstat64(fd, &sbuf));
82 int os_ioctl_generic(int fd, unsigned int cmd, unsigned long arg) argument
86 err = ioctl(fd, cmd, arg);
93 int os_get_ifname(int fd, char* namebuf) argument
95 if (ioctl(fd, SIOCGIFNAME, namebuf) < 0)
101 int os_set_slip(int fd) argument
106 if (ioctl(fd, TIOCSETD, &disc) < 0)
110 if (ioctl(fd, SIOCSIFENCAP, &sencap) < 0)
116 int os_mode_fd(int fd, in argument
174 int fd, err, f = 0; local
211 int fd, err; local
236 os_close_file(int fd) argument
241 os_seek_file(int fd, unsigned long long offset) argument
251 os_read_file(int fd, void *buf, int len) argument
260 os_write_file(int fd, const void *buf, int len) argument
282 int fd; local
323 os_set_exec_close(int fd) argument
363 os_set_fd_async(int fd) argument
390 os_clear_fd_async(int fd) argument
404 os_set_fd_block(int fd, int blocking) argument
423 os_accept_connection(int fd) argument
445 os_shutdown_socket(int fd, int r, int w) argument
464 os_rcv_fd(int fd, int *helper_pid_out) argument
536 os_lock_file(int fd, int excl) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/modules/
H A Dvfs_prealloc.c54 static int preallocate_space(int fd, SMB_OFF_T size) argument
74 err = xfsctl(NULL, fd, XFS_IOC_RESVSP64, &fl);
77 err = fcntl(fd, F_RESVSP64, &fl);
85 ("%s: preallocate failed on fd=%d size=%lld: %s\n",
86 MODULE, fd, (long long)size, strerror(errno)));
109 int fd; local
148 fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
149 if (fd < 0) {
150 return fd;
162 return fd;
186 prealloc_ftruncate(vfs_handle_struct * handle, files_struct * fsp, int fd, SMB_OFF_T offset) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/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-R7000-V1.0.7.12_1.2.5/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-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/zlib-1.2.3/examples/
H A Dgzlog.c24 int fd; /* log file descriptor */ member in struct:__anon7252
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-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/sh/kernel/
H A Dsys_sh32.c29 int fd[2]; local
32 error = do_pipe_flags(fd, 0);
34 regs->regs[1] = fd[1];
35 return fd[0];
40 asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf, argument
43 return sys_pread64(fd, buf, count, pos);
46 asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf, argument
49 return sys_pwrite64(fd, buf, count, pos);
52 asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1, argument
56 return sys_fadvise64_64(fd, (u6
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/zlib-1.2.3/examples/
H A Dgzlog.c24 int fd; /* log file descriptor */ member in struct:__anon7470
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-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/msw/wince/
H A Dfilefnwce.cpp92 int fd = 0; local
96 fd = -1;
98 fd = (int) fileHandle;
100 return fd;
116 int wxClose(int fd) argument
118 if (CloseHandle((HANDLE)fd))
123 int wxEof(int fd) argument
125 DWORD off0 = SetFilePointer((HANDLE) fd, 0, NULL, FILE_CURRENT);
129 DWORD off1 = SetFilePointer((HANDLE) fd, 0, NULL, FILE_END);
137 SetFilePointer((HANDLE) fd, off
142 wxRead(int fd, void *buf, unsigned int count) argument
152 wxWrite(int fd, const void *buf, unsigned int count) argument
162 wxSeek(int fd, __int64 offset, int origin) argument
192 wxTell(int fd) argument
[all...]

Completed in 175 milliseconds

1234567891011>>