Searched refs:fd (Results 201 - 225 of 1127) sorted by relevance

1234567891011>>

/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/auich/
H A Ddebug.c73 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); local
76 write(fd,text,strlen(text));
77 close(fd);
85 int fd; local
96 fd = open(logfile, O_WRONLY | O_APPEND);
97 write(fd,buf,strlen(buf));
98 close(fd);
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/auvia/
H A Ddebug.c73 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); local
76 write(fd,text,strlen(text));
77 close(fd);
85 int fd; local
96 fd = open(logfile, O_WRONLY | O_APPEND);
97 write(fd,buf,strlen(buf));
98 close(fd);
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/es1370/
H A Ddebug.c54 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); local
57 write(fd,text,strlen(text));
58 close(fd);
66 int fd; local
77 fd = open(logfile, O_WRONLY | O_APPEND);
78 write(fd,buf,strlen(buf));
79 close(fd);
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/ich/
H A Ddebug.c63 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); local
66 write(fd,text,strlen(text));
67 close(fd);
73 int fd; local
84 fd = open(logfile, O_WRONLY | O_APPEND);
85 write(fd,buf,strlen(buf));
86 close(fd);
/haiku-fatelf/src/add-ons/kernel/drivers/audio/echo/
H A Ddebug.c71 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); local
74 write(fd,text,strlen(text));
75 close(fd);
83 int fd; local
94 fd = open(logfile, O_WRONLY | O_APPEND);
95 write(fd,buf,strlen(buf));
96 close(fd);
/haiku-fatelf/src/add-ons/kernel/drivers/audio/emuxki/
H A Ddebug.c73 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); local
76 write(fd,text,strlen(text));
77 close(fd);
85 int fd; local
96 fd = open(logfile, O_WRONLY | O_APPEND);
97 write(fd,buf,strlen(buf));
98 close(fd);
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcompat.c124 int fd; local
141 if (!noclose && (fd = open("/dev/null", O_RDWR, 0)) != -1) {
142 (void)dup2(fd, 0);
143 (void)dup2(fd, 1);
144 (void)dup2(fd, 2);
145 if (fd > 2)
146 (void)close (fd);
/haiku-fatelf/src/add-ons/kernel/generic/mpu401/
H A Ddebug.c67 int fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); local
70 write(fd,text,strlen(text));
71 close(fd);
77 int fd; local
88 fd = open(logfile, O_WRONLY | O_APPEND);
89 write(fd,buf,strlen(buf));
90 close(fd);
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dinput_avail.c69 input_avail (fd)
70 int fd;
78 if (fd < 0)
86 FD_SET (fd, &readfds);
87 FD_SET (fd, &exceptfds);
90 result = select (fd + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout);
98 result = ioctl (fd, FIONREAD, &chars_avail);
H A Dzcatfd.c43 zcatfd (fd, ofd, fn)
44 int fd, ofd;
54 nr = zread (fd, lbuf, sizeof (lbuf));
/haiku-fatelf/src/bin/coreutils/lib/
H A Dfopen.c71 int fd; local
81 fd = open (filename, O_RDONLY);
82 if (fd < 0)
85 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
87 close (fd);
92 fp = fdopen (fd, mode);
96 close (fd);
/haiku-fatelf/src/tests/system/benchmarks/libMicro/
H A Dfcntl_ndelay.c50 static int fd = -1; variable
66 fd = socket(AF_INET, SOCK_STREAM, 0);
67 if (fd == -1) {
83 if (fcntl(fd, F_GETFL, &flags) < 0)
87 if (fcntl(fd, F_SETFL, &flags) < 0)
90 if (fcntl(fd, F_GETFL, &flags) < 0)
94 if (fcntl(fd, F_SETFL, &flags) < 0)
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/aio_return/
H A D4-1.c42 int fd; local
54 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
56 if (fd == -1)
67 aiocb.aio_fildes = fd;
78 close(fd);
90 aiocb2.aio_fildes = fd;
110 close(fd);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/aio_write/
H A D5-1.c43 int fd; local
55 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
57 if (fd == -1)
67 aiocb.aio_fildes = fd;
87 close (fd);
94 close(fd);
98 close(fd);
H A D3-1.c45 int fd; local
57 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
59 if (fd == -1)
70 aiocb.aio_fildes = fd;
91 close (fd);
98 close(fd);
104 if (lseek(fd, 0, SEEK_SET) == -1)
111 if (read(fd, check, BUF_SIZE) != BUF_SIZE)
124 close(fd);
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dlink.c23 readlinkat(int fd, const char *path, char *buffer, size_t bufferSize) argument
26 status_t status = _kern_read_link(fd, path, buffer, &linkLen);
51 symlinkat(const char *toPath, int fd, const char *symlinkPath) argument
53 RETURN_AND_SET_ERRNO(_kern_create_symlink(fd, symlinkPath, toPath, 0));
67 unlinkat(int fd, const char *path, int flag) argument
70 RETURN_AND_SET_ERRNO(_kern_remove_dir(fd, path));
72 RETURN_AND_SET_ERRNO(_kern_unlink(fd, path));
/haiku-fatelf/src/apps/debugger/files/
H A DSourceFile.cpp55 int fd = open(path, O_RDONLY); local
56 if (fd < 0)
61 if (fstat(fd, &st) < 0) {
62 close(fd);
67 close(fd);
73 close(fd);
81 close(fd);
86 ssize_t bytesRead = read(fd, fFileContent, fileSize);
87 close(fd);
/haiku-fatelf/src/tests/kits/net/
H A Dipv46_server.cpp16 void recvLoop(int fd) { argument
19 int ret = recv(fd, buffer, sizeof(buffer) - 1, 0);
84 int fd = socket(socketFamily, socketType, 0); local
85 if (fd < 0) {
90 if (bind(fd, (sockaddr *)&localAddress, localAddress.ss_family == AF_INET ?
99 recvLoop(fd);
103 if (listen(fd, 5) < 0) {
108 int clientfd = accept(fd, NULL, 0);
120 close(fd);
/haiku-fatelf/src/tests/kits/net/ipv6/
H A Dtcp_udp_server.cpp28 recvLoop(int fd) argument
32 int status = recv(fd, buffer, sizeof(buffer) - 1, 0);
99 int fd = socket(socketFamily, socketType, 0); local
100 if (fd < 0) {
105 if (bind(fd, (sockaddr *)&localAddress, localAddress.ss_family == AF_INET ?
114 recvLoop(fd);
117 if (listen(fd, 5) < 0) {
122 int clientfd = accept(fd, NULL, 0);
134 close(fd);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/aio_read/
H A D4-1.c42 int fd; local
53 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
55 if (fd == -1)
67 if (write(fd, buf, BUF_SIZE*2) != BUF_SIZE*2)
76 aiocb.aio_fildes = fd;
100 close(fd);
107 close(fd);
118 close(fd);
123 close(fd);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/lio_listio/
H A D8-1.c44 int fd; local
58 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
60 if (fd == -1)
72 if (write(fd, buf, BUF_SIZE) != BUF_SIZE)
81 aiocb.aio_fildes = fd;
93 close(fd);
104 close(fd);
111 close(fd);
126 close(fd);
H A D9-1.c45 int fd; local
59 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
61 if (fd == -1)
74 aiocb.aio_fildes = fd;
95 close(fd);
102 close(fd);
109 if (read(fd, check, BUF_SIZE) != BUF_SIZE)
114 close(fd);
129 close(fd);
/haiku-fatelf/headers/posix/
H A Dunistd.h157 extern int faccessat(int fd, const char *path, int accessMode, int flag);
160 extern int fchdir(int fd);
164 extern int dup(int fd);
166 extern int close(int fd);
171 extern int unlinkat(int fd, const char *path, int flag);
175 extern ssize_t readlinkat(int fd, const char *path, char *buffer,
178 extern int symlinkat(const char *toPath, int fd, const char *symlinkPath);
180 extern int ftruncate(int fd, off_t newSize);
182 extern int ioctl(int fd, unsigned long op, ...);
184 extern ssize_t read(int fd, voi
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/cdda/
H A Dcdda.h32 status_t read_cdtext(int fd, cdtext &text);
33 status_t read_table_of_contents(int fd, scsi_toc_toc *toc, size_t length);
34 status_t read_cdda_data(int fd, off_t endFrame, off_t offset, void *data,
/haiku-fatelf/src/add-ons/media/media-add-ons/finepix_webcam/FinePixUSBKitTest/
H A DFinePixTest.cpp26 int fd = open(fname, O_WRONLY | O_CREAT,0644); local
27 write(fd, frame, total_size);
28 close(fd);

Completed in 141 milliseconds

1234567891011>>