source: rtems/c/src/exec/libcsupport/src/rewinddir.c @ 3cad2919

4.104.114.84.95
Last change on this file since 3cad2919 was 73441b6f, checked in by Joel Sherrill <joel.sherrill@…>, on 01/04/99 at 16:26:37

Removed blank lines

  • Property mode set to 100644
File size: 625 bytes
Line 
1/*
2 *  rewinddir() - POSIX 1003.1b - XXX
3 *
4 *  COPYRIGHT (c) 1989-1998.
5 *  On-Line Applications Research Corporation (OAR).
6 *  Copyright assigned to U.S. Government, 1994.
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 */
13
14#include <sys/types.h>
15#include <assert.h>
16#include <dirent.h>
17#include <stdio.h>
18#include <errno.h>
19#include <unistd.h>
20
21void rewinddir(
22  DIR *dirp
23)
24{
25  off_t status;
26
27  status = lseek( dirp->dd_fd, 0, SEEK_SET );
28 
29  if( status == -1 )
30    return;
31
32  dirp->dd_loc = 0;
33}
Note: See TracBrowser for help on using the repository browser.