Add ctypes base type to WriteableBuffer. Add a ReadOnlyBuffer type from fcntl. Base ReadableBuffer on WriteableBuffer and ReadOnlyBuffer. Use these types in fcntl and ctypes stubs.