2008-10-21 16:00:00 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2008 The Android Open Source Project
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in
|
|
|
|
* the documentation and/or other materials provided with the
|
|
|
|
* distribution.
|
2008-12-18 03:03:48 +01:00
|
|
|
* modification, are permitted provided that the following conditions are met:
|
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* * Neither the name of Google Inc. nor the names of its contributors may
|
|
|
|
* be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
2008-10-21 16:00:00 +02:00
|
|
|
*
|
2008-12-18 03:03:48 +01:00
|
|
|
*/
|
2008-10-21 16:00:00 +02:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2008-12-18 03:03:48 +01:00
|
|
|
extern int __pread64(int fd, void *buf, size_t nbytes, off_t lo, off_t hi);
|
|
|
|
|
|
|
|
ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset)
|
2008-10-21 16:00:00 +02:00
|
|
|
{
|
2008-12-18 03:03:48 +01:00
|
|
|
return __pread64(fd, buf, nbytes, offset, 0);
|
2008-10-21 16:00:00 +02:00
|
|
|
}
|
2008-12-18 03:03:48 +01:00
|
|
|
|