blob: b55623ed351bcb9e7fb6eb5c07779ac4d93adfb6 [file] [log] [blame]
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -07001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the
13 * distribution.
The Android Open Source Project4e468ed2008-12-17 18:03:48 -080014 * modification, are permitted provided that the following conditions are met:
15 * * Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * * Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 * * Neither the name of Google Inc. nor the names of its contributors may
21 * be used to endorse or promote products derived from this software
22 * without specific prior written permission.
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -070023 *
The Android Open Source Project4e468ed2008-12-17 18:03:48 -080024*/
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -070025#include <sys/types.h>
26#include <unistd.h>
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -070027
Matt Fischere31c1d02009-08-21 15:45:17 -050028extern int __pread64(int fd, void *buf, size_t nbytes, loff_t offset);
The Android Open Source Project4e468ed2008-12-17 18:03:48 -080029
30ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset)
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -070031{
Matt Fischere31c1d02009-08-21 15:45:17 -050032 return __pread64(fd, buf, nbytes, offset);
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -070033}
The Android Open Source Project4e468ed2008-12-17 18:03:48 -080034