Searched refs:fd (Results 201 - 225 of 571) sorted by path

1234567891011>>

/haiku/src/system/libroot/os/
H A Dfs_attr.cpp29 int fd = _kern_open_attr_dir(file, path, traverse); local
30 if (fd < 0) {
31 __set_errno(fd);
36 if ((dir = __create_dir_struct(fd)) == NULL) {
37 _kern_close(fd);
49 fs_read_attr(int fd, const char* attribute, uint32 /*type*/, off_t pos, argument
52 ssize_t bytes = _kern_read_attr(fd, attribute, pos, buffer, readBytes);
58 fs_write_attr(int fd, const char* attribute, uint32 type, off_t pos, argument
79 ssize_t bytes = _kern_write_attr(fd, attribute, type, pos, buffer,
86 fs_remove_attr(int fd, cons argument
95 fs_stat_attr(int fd, const char* attribute, struct attr_info* attrInfo) argument
111 fs_fopen_attr(int fd, const char* attribute, uint32 type, int openMode) argument
119 fs_close_attr(int fd) argument
141 fs_fopen_attr_dir(int fd) argument
[all...]
H A Dfs_query.cpp31 int fd = _kern_open_query(device, query, strlen(query), flags, port, token); local
32 if (fd < 0) {
33 __set_errno(fd);
38 DIR *dir = __create_dir_struct(fd);
40 _kern_close(fd);
/haiku/src/system/libroot/posix/glibc/include/
H A Dfcntl.h13 extern int __libc_fcntl (int fd, int cmd, ...);
H A Dstdio_private.h81 # define fdopen(fd, mode) _IO_new_fdopen (fd, mode)
H A Dunistd.h7 #define __isatty(fd) \
8 isatty(fd)
10 #define __close(fd) \
11 close(fd)
13 #define __read(fd, buffer, size) \
14 read(fd, buffer, size)
16 #define __write(fd, buffer, size) \
17 write(fd, buffer, size)
19 #define __lseek(fd, pos, whence) \
20 lseek(fd, po
[all...]
/haiku/src/system/libroot/posix/glibc/include/sys/
H A Dstat.h48 #define fstat64(fd, buf) __fxstat64 (_STAT_VER, fd, buf)
49 #define fstat(fd, buf) __fxstat (_STAT_VER, fd, buf)
50 #define __fstat(fd, buf) __fxstat (_STAT_VER, fd, buf)
/haiku/src/system/libroot/posix/glibc/libio/
H A Dfreopen.c74 int fd = -1;
82 fd = __dup (_IO_fileno (fp));
83 if (fd != -1)
84 filename = fd_to_filename (fd);
112 if (fd != -1)
114 __close (fd);
H A Dfreopen64.c43 int fd = -1; local
51 fd = __dup (_IO_fileno (fp));
52 if (fd != -1)
53 filename = fd_to_filename (fd);
65 if (fd != -1)
67 __close (fd);
H A Diofdopen.c40 _IO_new_fdopen (int fd, const char *mode) argument
93 fd_flags = fcntl(fd, F_GETFL);
126 if (fcntl(fd, F_SETFL, fd_flags | O_APPEND) == -1)
156 if (INTUSE(_IO_file_attach) ((_IO_FILE *) &new_f->fp, fd) == NULL)
/haiku/src/system/libroot/posix/glibc/stdio-common/
H A Dtempname.c224 and return a read-write fd. The file is mode 0600.
237 int fd = -1; local
300 fd = open(tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
304 fd = mkdir(tmpl, S_IRUSR | S_IWUSR | S_IXUSR);
329 if (fd >= 0)
332 return fd;
H A Dtmpfile.c43 int fd; local
48 fd = __gen_tempname (buf, GEN_THIS);
49 if (fd < 0)
56 if ((f = __fdopen (fd, "w+b")) == NULL)
57 __close (fd);
/haiku/src/system/libroot/posix/stdlib/
H A Dmktemp.c57 int fd; local
58 return _gettemp(path, &fd, 0, slen) ? fd : -1;
65 int fd; local
66 if (_gettemp(path, &fd, 0, 0))
67 return fd;
/haiku/src/system/libroot/posix/sys/
H A Dchmod.c32 fchmod(int fd, mode_t mode) argument
38 status = _kern_write_stat(fd, NULL, false, &stat, sizeof(struct stat),
46 fchmodat(int fd, const char* path, mode_t mode, int flag) argument
52 status = _kern_write_stat(fd, path, (flag & AT_SYMLINK_NOFOLLOW) == 0, &stat,
H A Dflock.c17 flock(int fd, int op) argument
19 status_t status = _kern_flock(fd, op);
H A Dmkdir.c24 mkdirat(int fd, const char *path, mode_t mode) argument
26 RETURN_AND_SET_ERRNO(_kern_create_dir(fd, path, mode & ~__gUmask));
H A Dmkfifo.c23 mkfifoat(int fd, const char *path, mode_t mode) argument
25 RETURN_AND_SET_ERRNO(_kern_create_fifo(fd, path, mode));
H A Dmknod.c22 mknodat(int fd, const char *name, mode_t mode, dev_t dev) argument
H A Dstat.c21 int _fstat_current(int fd, struct stat* stat);
24 int _fstat_beos(int fd, struct stat_beos* beosStat);
38 _fstat_current(int fd, struct stat* stat) argument
40 int status = _kern_read_stat(fd, NULL, false, stat, sizeof(struct stat));
56 fstatat(int fd, const char *path, struct stat *st, int flag) argument
58 int status = _kern_read_stat(fd, path, (flag & AT_SYMLINK_NOFOLLOW) == 0,
132 _fstat_beos(int fd, struct stat_beos* beosStat) argument
135 if (_fstat_current(fd, &stat) != 0)
H A Dstatvfs.c48 fstatvfs(int fd, struct statvfs *statvfs) argument
51 if (fstat(fd, &stat) < 0)
H A Dutimes.c57 utimensat(int fd, const char *path, const struct timespec times[2], int flag) argument
101 status = _kern_write_stat(fd, path, (flag & AT_SYMLINK_NOFOLLOW) == 0,
109 futimens(int fd, const struct timespec times[2]) argument
111 return utimensat(fd, NULL, times, 0);
/haiku/src/system/libroot/posix/unistd/
H A Daccess.c25 faccessat(int fd, const char* path, int accessMode, int flag) argument
27 status_t status = _kern_access(fd, path, accessMode,
H A Dchown.c18 common_chown(int fd, const char* path, bool followLinks, uid_t owner, argument
34 status = _kern_write_stat(fd, path, followLinks, &stat,
56 fchown(int fd, uid_t owner, gid_t group) argument
58 return common_chown(fd, NULL, false, owner, group);
63 fchownat(int fd, const char* path, uid_t owner, gid_t group, int flag) argument
65 return common_chown(fd, path, (flag & AT_SYMLINK_NOFOLLOW) == 0, owner,
H A Dclose.c19 close(int fd) argument
21 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_close(fd));
H A Ddirectory.c24 fchdir(int fd) argument
26 RETURN_AND_SET_ERRNO(_kern_setcwd(fd, NULL));
H A Ddup.c16 dup(int fd) argument
18 RETURN_AND_SET_ERRNO(_kern_dup(fd));

Completed in 89 milliseconds

1234567891011>>