a9c09fcaae
this is queued for issue 8: https://www.austingroupbugs.net/view.php?id=415 this implementation calls the ioctl hook of the filesystem with BSD-like constants FIOSEEKDATA and FIOSEEKHOLE. if the hook doesn't know the constants, we use the stat size to return the last hole (as proposed in the draft spec). Change-Id: I5d052eed87e29b70491a7ff534e244896469d03e Reviewed-on: https://review.haiku-os.org/c/haiku/+/3385 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
19 lines
367 B
C
19 lines
367 B
C
/*
|
|
* Copyright 2006-2012 Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _SYS_IOCTL_H
|
|
#define _SYS_IOCTL_H
|
|
|
|
|
|
#include <termios.h>
|
|
|
|
/* These only work on sockets for now */
|
|
#define FIONBIO 0xbe000000
|
|
#define FIONREAD 0xbe000001
|
|
|
|
#define FIOSEEKDATA 0xbe000002
|
|
#define FIOSEEKHOLE 0xbe000003
|
|
|
|
#endif /* _SYS_IOCTL_H */
|