From f239c20c79c77d3107ea47a2476f50dda80e67c8 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sun, 21 Mar 2010 11:06:53 +0000 Subject: [PATCH] remove pointless extern qualifiers --- source/fatfile.h | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/source/fatfile.h b/source/fatfile.h index 448a5ee..f53285f 100644 --- a/source/fatfile.h +++ b/source/fatfile.h @@ -69,31 +69,35 @@ struct _FILE_STRUCT { typedef struct _FILE_STRUCT FILE_STRUCT; -extern int _FAT_open_r (struct _reent *r, void *fileStruct, const char *path, int flags, int mode); +int _FAT_open_r (struct _reent *r, void *fileStruct, const char *path, int flags, int mode); -extern int _FAT_close_r (struct _reent *r, int fd); +int _FAT_close_r (struct _reent *r, int fd); -extern ssize_t _FAT_write_r (struct _reent *r,int fd, const char *ptr, size_t len); +ssize_t _FAT_write_r (struct _reent *r,int fd, const char *ptr, size_t len); -extern ssize_t _FAT_read_r (struct _reent *r, int fd, char *ptr, size_t len); +ssize_t _FAT_read_r (struct _reent *r, int fd, char *ptr, size_t len); -extern off_t _FAT_seek_r (struct _reent *r, int fd, off_t pos, int dir); +off_t _FAT_seek_r (struct _reent *r, int fd, off_t pos, int dir); -extern int _FAT_fstat_r (struct _reent *r, int fd, struct stat *st); +int _FAT_fstat_r (struct _reent *r, int fd, struct stat *st); -extern int _FAT_stat_r (struct _reent *r, const char *path, struct stat *st); +int _FAT_stat_r (struct _reent *r, const char *path, struct stat *st); -extern int _FAT_link_r (struct _reent *r, const char *existing, const char *newLink); +int _FAT_link_r (struct _reent *r, const char *existing, const char *newLink); -extern int _FAT_unlink_r (struct _reent *r, const char *name); +int _FAT_unlink_r (struct _reent *r, const char *name); -extern int _FAT_chdir_r (struct _reent *r, const char *name); +int _FAT_chdir_r (struct _reent *r, const char *name); -extern int _FAT_rename_r (struct _reent *r, const char *oldName, const char *newName); +int _FAT_rename_r (struct _reent *r, const char *oldName, const char *newName); -extern int _FAT_ftruncate_r (struct _reent *r, int fd, off_t len); +int _FAT_ftruncate_r (struct _reent *r, int fd, off_t len); -extern int _FAT_fsync_r (struct _reent *r, int fd); +int _FAT_fsync_r (struct _reent *r, int fd); + +int _FAT_chflags_r (struct _reent *r, const char *path, u_int flags); + +int _FAT_fchflags_r (struct _reent *r, int fd, u_int flags); /* Synchronizes the file data to disc.