aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-25 13:34:10 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-25 13:34:10 -0500
commitbea1ce92a1ba11714217d2837875595bd309c26d (patch)
tree31bc49e10beab8e9d20ed08bd96e12325b72ef8b /phpBB/phpbb
parent5ebc36f5833bb89126711a0e09204490ba33fb1d (diff)
parent162ea10b6afdd7a3b6d1f953e250436d83324a5b (diff)
downloadforums-bea1ce92a1ba11714217d2837875595bd309c26d.tar
forums-bea1ce92a1ba11714217d2837875595bd309c26d.tar.gz
forums-bea1ce92a1ba11714217d2837875595bd309c26d.tar.bz2
forums-bea1ce92a1ba11714217d2837875595bd309c26d.tar.xz
forums-bea1ce92a1ba11714217d2837875595bd309c26d.zip
Merge branch 'develop-olympus' into develop
# By Oliver Schramm # Via Nathaniel Guse (1) and Oliver Schramm (1) * develop-olympus: [ticket/11062] If user's language is english there is no further work needed [ticket/11062] Load new strings from user's language file if provided
Diffstat (limited to 'phpBB/phpbb')
0 files changed, 0 insertions, 0 deletions
> 17 18 19 20 21 22 23 24 25 26
#include <stdio.h>
#include <sys/mount.h>
#include <fcntl.h>

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 <hard drive device>\n");
    exit(1);
  }