• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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.
14  * 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.
23  *
24 */
25 #include <sys/types.h>
26 #include <unistd.h>
27 
28 extern int __pread64(int fd, void *buf, size_t nbytes, loff_t offset);
29 
pread(int fd,void * buf,size_t nbytes,off_t offset)30 ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset)
31 {
32     return __pread64(fd, buf, nbytes, offset);
33 }
34 
35