projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase timeout for MLFQS tests to 480 seconds, which is necessary
[pintos-anon]
/
src
/
examples
/
cp.c
diff --git
a/src/examples/cp.c
b/src/examples/cp.c
index 0c8c1a5d673c98fba8af1e9a87dccfc2c71c9150..86a5cd7562fcf633d65206ac9e5be7873859f741 100644
(file)
--- a/
src/examples/cp.c
+++ b/
src/examples/cp.c
@@
-13,7
+13,7
@@
main (int argc, char *argv[])
if (argc != 3)
{
printf ("usage: cp OLD NEW\n");
if (argc != 3)
{
printf ("usage: cp OLD NEW\n");
- return
1
;
+ return
EXIT_FAILURE
;
}
/* Open input file. */
}
/* Open input file. */
@@
-21,20
+21,20
@@
main (int argc, char *argv[])
if (in_fd < 0)
{
printf ("%s: open failed\n", argv[1]);
if (in_fd < 0)
{
printf ("%s: open failed\n", argv[1]);
- return
1
;
+ return
EXIT_FAILURE
;
}
/* Create and open output file. */
if (!create (argv[2], filesize (in_fd)))
{
printf ("%s: create failed\n", argv[2]);
}
/* Create and open output file. */
if (!create (argv[2], filesize (in_fd)))
{
printf ("%s: create failed\n", argv[2]);
- return
1
;
+ return
EXIT_FAILURE
;
}
out_fd = open (argv[2]);
if (out_fd < 0)
{
printf ("%s: open failed\n", argv[2]);
}
out_fd = open (argv[2]);
if (out_fd < 0)
{
printf ("%s: open failed\n", argv[2]);
- return
1
;
+ return
EXIT_FAILURE
;
}
/* Copy data. */
}
/* Copy data. */
@@
-47,9
+47,9
@@
main (int argc, char *argv[])
if (write (out_fd, buffer, bytes_read) != bytes_read)
{
printf ("%s: write failed\n", argv[2]);
if (write (out_fd, buffer, bytes_read) != bytes_read)
{
printf ("%s: write failed\n", argv[2]);
- return
1
;
+ return
EXIT_FAILURE
;
}
}
}
}
- return
0
;
+ return
EXIT_SUCCESS
;
}
}