summaryrefslogtreecommitdiff
path: root/ioops.h
blob: ce0315f56d65560a1e72f8725e217fbae9bbdc99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef IOOPS_H
#define IOOPS_H

#include <sys/types.h>

extern int open_or_die(const char *file, int flags);
extern int open_or_die_m(const char *file, int flags, mode_t mode);
extern int dup_or_die(int oldfd);
extern void dup2_or_die(int oldfd, int newfd);
extern void create_or_die(const char *file, mode_t mode);
extern int tun_open_or_die(const char *name, int type);
extern void pipe_or_die(int pipefd[2], int flags);
extern ssize_t read_or_die(int fd, void *buf, size_t count);
extern ssize_t write_or_die(int fd, const void *buf, size_t count);
extern int read_blob_or_die(const char *file, void *blob, size_t count);
extern int write_blob_or_die(const char *file, const void *blob, size_t count);

#endif /* IOOPS_H */
option value='2'>stat only
authorAndre Przywara <andre.przywara@arm.com>2016-04-11 10:17:46 +0100
committerArnd Bergmann <arnd@arndb.de>2016-04-23 22:38:08 +0200
commit987aedb5d6f6e10c5203c6d0aab9a60ec22c7e93 (patch)
treecdcbee3ca0d178d79ae33cf94b8f3427a1bc7eae /Documentation/devicetree/bindings/mfd
parentc3b46c73264b03000d1e18b22f5caf63332547c9 (diff)
generic syscalls: wire up preadv2 and pwritev2 syscalls
These new syscalls are implemented as generic code, so enable them for architectures like arm64 which use the generic syscall table. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'Documentation/devicetree/bindings/mfd')