2 * fsetflags.c - Set a file flags on an ext2 file system
4 * Copyright (C) 1993, 1994 Remy Card <card@masi.ibp.fr>
5 * Laboratoire MASI, Institut Blaise Pascal
6 * Universite Pierre et Marie Curie (Paris VI)
8 * This file can be redistributed under the terms of the GNU Library General
20 #include <sys/ioctl.h>
22 #include <linux/ext2_fs.h>
26 int fsetflags (const char * name, unsigned long flags)
31 fd = open (name, O_RDONLY);
34 r = ioctl (fd, EXT2_IOC_SETFLAGS, &flags);