FD
int FD() const { return fFD; }
int FD() const { return fFD; }
int FD() const;
return FD();
ReaderImplBase::FD() const
int FD() const;
int FD() const { return fFD; };
int FD() const { return fFD; };
int FD() const;
int FD() const
if (localFD.FD() < 0) {
return fs_fopen_attr(localFD.FD(), attribute, type, openMode);
if (localFD.FD() < 0) {
bytesRead = fs_read_attr(localFD.FD(), attribute, type,
if (localFD.FD() < 0) {
written = fs_write_attr(localFD.FD(), attribute, type,
if (localFD.FD() < 0) {
result = fs_remove_attr(localFD.FD(), attribute);
if (localFD.FD() < 0) {
result = fs_stat_attr(localFD.FD(), attribute, attrInfo);
if (localFD.FD() < 0) {
return fs_fopen_attr_dir(localFD.FD());
bytesRead = get_attribute(localFD.FD(), NULL, attribute.c_str(),
result = set_attribute(localFD.FD(), NULL, attribute.c_str(),
result = remove_attribute(localFD.FD(), NULL, attribute.c_str());
bytesRead = get_attribute(localFD.FD(), NULL, attribute.c_str(),
ssize_t bytesRead = pread(fFile->GetElfFile()->FD(), buffer, size, offset);
ssize_t bytesRead = pread(fCoreFile->GetElfFile().FD(), buffer, toRead,
ssize_t bytesRead = pread(fElfFile.FD(), notes, notesSize,
: packageReader.Init(fileLocation.FD(), false);
: packageReader.Init(fileLocation.FD(), false);
if (entry != NULL && entry->FD() >= 0) {
fd = entry->FD();
if (entry != NULL && entry->FD() >= 0) {
fd = entry->FD();
if (entry->FD() >= 0) {
if (fstatat(entry->FD(), *fileName != '\0' ? fileName : NULL, &st,
if (fstat(FD(), &st) < 0) {
#define DEF_STDIOFILE(NAME, FD, FILE, FLAGS, CHAIN) \
static _IO_lock_t _IO_stdfile_##FD##_lock = _IO_lock_initializer; \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, CHAIN, FD, \
0, 0, 0, 0, { 0 }, &_IO_stdfile_##FD##_lock},\
#define DEF_STDIOFILE(NAME, FD, FILE, FLAGS, CHAIN) \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, CHAIN, FD}, \
#define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
static _IO_lock_t _IO_stdfile_##FD##_lock = _IO_lock_initializer; \
= {FILEBUF_LITERAL(CHAIN, FLAGS, FD, NULL), STD_VTABLE}
#define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
struct _IO_FILE_plus NAME = {FILEBUF_LITERAL(CHAIN, FLAGS, FD, NULL), STD_VTABLE}
get_node_from(partition->FD())->GetName((char*)fName, 64);
Node *device = get_node_from(partition->FD());
ioctl(mount->partition->Device()->FD(), B_FLUSH_DRIVE_CACHE);
ssize_t bytesRead = read_pos(device->FD(), offset, buffer, sizeof(buffer));
if (ioctl(socket.FD(), SIOCGIFCONF, &config, sizeof(struct ifconf)) < 0)
if (ioctl(socket.FD(), SIOCGIFINDEX, &request,
if (socket.FD() < 0)
if (ioctl(socket.FD(), SIOCGIFINDEX, &request, sizeof(struct ifreq)) < 0)
if (socket.FD() < 0)
if (ioctl(socket.FD(), SIOCGIFNAME, &request, sizeof(struct ifreq)) < 0)
if (socket.FD() < 0)
if (ioctl(socket.FD(), SIOCGIFCOUNT, &config, sizeof(struct ifconf)) < 0)
# define lseek(FD, Offset, Whence) lseek (FD, Offset, Whence)
# define read(FD, Buf, NBytes) read (FD, Buf, NBytes)
# define write(FD, Buf, NBytes) write (FD, Buf, NBytes)
# define FILEBUF_LITERAL(CHAIN, FLAGS, FD, WDP) \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (_IO_FILE *) CHAIN, FD, \
0, _IO_pos_BAD, 0, 0, { 0 }, &_IO_stdfile_##FD##_lock }
# define FILEBUF_LITERAL(CHAIN, FLAGS, FD, WDP) \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (_IO_FILE *) CHAIN, FD, \
0, _IO_pos_BAD, 0, 0, { 0 }, &_IO_stdfile_##FD##_lock, _IO_pos_BAD,\
# define FILEBUF_LITERAL(CHAIN, FLAGS, FD, WDP) \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (_IO_FILE *) CHAIN, FD, \
0, _IO_pos_BAD, 0, 0, { 0 }, &_IO_stdfile_##FD##_lock, _IO_pos_BAD,\
# define FILEBUF_LITERAL(CHAIN, FLAGS, FD, WDP) \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (_IO_FILE *) CHAIN, FD, \
# define FILEBUF_LITERAL(CHAIN, FLAGS, FD, WDP) \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (_IO_FILE *) CHAIN, FD, \
# define FILEBUF_LITERAL(CHAIN, FLAGS, FD, WDP) \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (_IO_FILE *) CHAIN, FD, \
# define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
static _IO_lock_t _IO_stdfile_##FD##_lock = _IO_lock_initializer; \
static struct _IO_wide_data _IO_wide_data_##FD \
= {FILEBUF_LITERAL(CHAIN, FLAGS, FD, &_IO_wide_data_##FD), \
# define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
static _IO_lock_t _IO_stdfile_##FD##_lock = _IO_lock_initializer; \
= {FILEBUF_LITERAL(CHAIN, FLAGS, FD, NULL), \
# define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
static struct _IO_wide_data _IO_wide_data_##FD \
= {FILEBUF_LITERAL(CHAIN, FLAGS, FD, &_IO_wide_data_##FD), \
# define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
= {FILEBUF_LITERAL(CHAIN, FLAGS, FD, NULL), \
if (ioctl(GetVolume()->FD(), CHECKSUM_DEVICE_IOCTL_SET_CHECK_SUM,
if (ioctl(GetVolume()->FD(), CHECKSUM_DEVICE_IOCTL_SET_CHECK_SUM,
if (ioctl(fVolume->FD(), CHECKSUM_DEVICE_IOCTL_GET_CHECK_SUM,
if (ioctl(fVolume->FD(), CHECKSUM_DEVICE_IOCTL_SET_CHECK_SUM, fCheckSum,
if (ioctl(fVolume->FD(), CHECKSUM_DEVICE_IOCTL_SET_CHECK_SUM,
inline int FD() const { return fFD; }
RETURN_ERROR(do_iterative_fd_io(volume->FD(), request,