File Linux

Implements File on Linux.

Summary
File LinuxImplements File on Linux.
CopyrightThis program is free software.
Files
C-kern/api/io/filesystem/file.hHeader file File.
C-kern/platform/Linux/io/file.cLinux specific implementation File Linux.
file_t
functions
lifetime
query
isvalid_fileUses fcntl to query file descriptor flags (FD_CLOEXEC).
I/O
allocation
test

Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2011 Jörg Seebohn

Files

C-kern/api/io/filesystem/file.h

Header file File.

C-kern/platform/Linux/io/file.c

Linux specific implementation File Linux.

file_t

Summary
functions
lifetime
query
isvalid_fileUses fcntl to query file descriptor flags (FD_CLOEXEC).
I/O
allocation
test

functions

lifetime

query

isvalid_file

bool isvalid_file(file_t fileobj)

Uses fcntl to query file descriptor flags (FD_CLOEXEC).

I/O

allocation

test

Offers an interface to handle system files.
Implements File on Linux.
bool isvalid_file(file_t fileobj)
Uses fcntl to query file descriptor flags (FD_CLOEXEC).
Close