#include #include #include void die(char *msg) { perror(msg); exit(1); } void kernel_read(char *dev) { int fd; if ((fd = open(dev, O_RDONLY)) == -1) die("can't open device"); ioctl(fd, BLKRRPART, 0); close(fd); } int main(int argc, char **argv) { if (argc != 2) { fprintf(stderr, "usage: kernel_read_part \n"); exit(1); } kernel_read(argv[1]); } ums Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-27 15:39:07 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-27 15:39:07 +0200
commit919e1a6bc87ff93d974224678c63b7ddef4a708b (patch)
tree50c306c8a9fc92ecb2e3f31f1d10dc9272873a81 /tests/controller/controller_test.php
parent8fa4ca49e0797bd04be3e2a9d7733784e5a5ec11 (diff)
parent40a65abc3ae312876842cc3e19220e74fa002667 (diff)
downloadforums-919e1a6bc87ff93d974224678c63b7ddef4a708b.tar
forums-919e1a6bc87ff93d974224678c63b7ddef4a708b.tar.gz
forums-919e1a6bc87ff93d974224678c63b7ddef4a708b.tar.bz2
forums-919e1a6bc87ff93d974224678c63b7ddef4a708b.tar.xz
forums-919e1a6bc87ff93d974224678c63b7ddef4a708b.zip
Merge pull request #2660 from marc1706/ticket/12764
[ticket/12764] Properly handle errors upon connecting to MySQLi database * marc1706/ticket/12764: [ticket/12764] Properly handle errors upon connecting to MySQLi database
Diffstat (limited to 'tests/controller/controller_test.php')
0 files changed, 0 insertions, 0 deletions