File: lcc_extras.c

package info (click to toggle)
hypermail 2.2.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,732 kB
  • ctags: 3,176
  • sloc: ansic: 34,794; sh: 13,432; yacc: 844; makefile: 775; perl: 744; python: 292
file content (14 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 
  stat and fstat are defined in lcc, but not lstat
*/

#include <sys/stat.h>

/*
* The way we're handling this now is to assume that we'll never try this
* on a symlink
*/
int lstat(const char *file_name, struct stat *buf)
{
    return stat(file_name, buf);
}