/* Test the pwrite function.
- Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2009-2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
+#include <string.h>
#include "macros.h"
ASSERT (close (fd) == 0);
{
- char read_buf[N];
fd = open (file, O_RDONLY);
ASSERT (0 <= fd);
ASSERT (read (fd, buf, N) == N);