From: Subrata <sub...@us...> - 2008-01-21 11:16:49
|
Update of /cvsroot/ltp/ltp/testcases/kernel/fs/doio In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27456/ltp/testcases/kernel/fs/doio Modified Files: iogen.c Log Message: Fixing missing argument for open() function when O_CREAT is in the flag, by, Yi Xu <yx...@su...> Index: iogen.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/fs/doio/iogen.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** iogen.c 22 Jun 2006 04:28:34 -0000 1.4 --- iogen.c 21 Jan 2008 11:16:15 -0000 1.5 *************** *** 1086,1090 **** Oflags |= O_CREAT | O_WRONLY; ! if ((fd = open(path, Oflags, 0666, Ocbits, Ocblks)) == -1) { fprintf(stderr, "iogen%s: Could not create/open file %s: %s (%d)\n", TagName, path, SYSERR, errno); --- 1086,1090 ---- Oflags |= O_CREAT | O_WRONLY; ! if ((fd = open(path, Oflags, 0666)) == -1) { fprintf(stderr, "iogen%s: Could not create/open file %s: %s (%d)\n", TagName, path, SYSERR, errno); |