retire PUBLIC, PRIVATE and FORWARD
This commit is contained in:
+18
-18
@@ -13,14 +13,14 @@
|
||||
|
||||
#define SAME 1000
|
||||
|
||||
FORWARD int freesp_inode(struct inode *rip, off_t st, off_t end);
|
||||
FORWARD int remove_dir(struct inode *rldirp, struct inode *rip, char
|
||||
static int freesp_inode(struct inode *rip, off_t st, off_t end);
|
||||
static int remove_dir(struct inode *rldirp, struct inode *rip, char
|
||||
dir_name[NAME_MAX + 1]);
|
||||
FORWARD int unlink_file(struct inode *dirp, struct inode *rip, char
|
||||
static int unlink_file(struct inode *dirp, struct inode *rip, char
|
||||
file_name[NAME_MAX + 1]);
|
||||
FORWARD off_t nextblock(off_t pos, int blocksize);
|
||||
FORWARD void zeroblock_half(struct inode *i, off_t p, int l);
|
||||
FORWARD void zeroblock_range(struct inode *i, off_t p, off_t h);
|
||||
static off_t nextblock(off_t pos, int blocksize);
|
||||
static void zeroblock_half(struct inode *i, off_t p, int l);
|
||||
static void zeroblock_range(struct inode *i, off_t p, off_t h);
|
||||
|
||||
/* Args to zeroblock_half() */
|
||||
#define FIRST_HALF 0
|
||||
@@ -30,7 +30,7 @@ FORWARD void zeroblock_range(struct inode *i, off_t p, off_t h);
|
||||
/*===========================================================================*
|
||||
* fs_link *
|
||||
*===========================================================================*/
|
||||
PUBLIC int fs_link()
|
||||
int fs_link()
|
||||
{
|
||||
/* Perform the link(name1, name2) system call. */
|
||||
|
||||
@@ -116,7 +116,7 @@ PUBLIC int fs_link()
|
||||
/*===========================================================================*
|
||||
* fs_unlink *
|
||||
*===========================================================================*/
|
||||
PUBLIC int fs_unlink()
|
||||
int fs_unlink()
|
||||
{
|
||||
/* Perform the unlink(name) or rmdir(name) system call. The code for these two
|
||||
* is almost the same. They differ only in some condition testing. Unlink()
|
||||
@@ -179,7 +179,7 @@ PUBLIC int fs_unlink()
|
||||
/*===========================================================================*
|
||||
* fs_rdlink *
|
||||
*===========================================================================*/
|
||||
PUBLIC int fs_rdlink()
|
||||
int fs_rdlink()
|
||||
{
|
||||
block_t b; /* block containing link text */
|
||||
struct buf *bp = NULL; /* buffer containing link text */
|
||||
@@ -232,7 +232,7 @@ PUBLIC int fs_rdlink()
|
||||
/*===========================================================================*
|
||||
* remove_dir *
|
||||
*===========================================================================*/
|
||||
PRIVATE int remove_dir(rldirp, rip, dir_name)
|
||||
static int remove_dir(rldirp, rip, dir_name)
|
||||
struct inode *rldirp; /* parent directory */
|
||||
struct inode *rip; /* directory to be removed */
|
||||
char dir_name[NAME_MAX + 1]; /* name of directory to be removed */
|
||||
@@ -268,7 +268,7 @@ char dir_name[NAME_MAX + 1]; /* name of directory to be removed */
|
||||
/*===========================================================================*
|
||||
* unlink_file *
|
||||
*===========================================================================*/
|
||||
PRIVATE int unlink_file(dirp, rip, file_name)
|
||||
static int unlink_file(dirp, rip, file_name)
|
||||
struct inode *dirp; /* parent directory of file */
|
||||
struct inode *rip; /* inode of file, may be NULL too. */
|
||||
char file_name[NAME_MAX + 1]; /* name of file to be removed */
|
||||
@@ -304,7 +304,7 @@ char file_name[NAME_MAX + 1]; /* name of file to be removed */
|
||||
/*===========================================================================*
|
||||
* fs_rename *
|
||||
*===========================================================================*/
|
||||
PUBLIC int fs_rename()
|
||||
int fs_rename()
|
||||
{
|
||||
/* Perform the rename(name1, name2) system call. */
|
||||
struct inode *old_dirp, *old_ip; /* ptrs to old dir, file inodes */
|
||||
@@ -517,7 +517,7 @@ PUBLIC int fs_rename()
|
||||
/*===========================================================================*
|
||||
* fs_ftrunc *
|
||||
*===========================================================================*/
|
||||
PUBLIC int fs_ftrunc(void)
|
||||
int fs_ftrunc(void)
|
||||
{
|
||||
struct inode *rip;
|
||||
off_t start, end;
|
||||
@@ -541,7 +541,7 @@ PUBLIC int fs_ftrunc(void)
|
||||
/*===========================================================================*
|
||||
* truncate_inode *
|
||||
*===========================================================================*/
|
||||
PUBLIC int truncate_inode(rip, newsize)
|
||||
int truncate_inode(rip, newsize)
|
||||
register struct inode *rip; /* pointer to inode to be truncated */
|
||||
off_t newsize; /* inode must become this size */
|
||||
{
|
||||
@@ -587,7 +587,7 @@ off_t newsize; /* inode must become this size */
|
||||
/*===========================================================================*
|
||||
* freesp_inode *
|
||||
*===========================================================================*/
|
||||
PRIVATE int freesp_inode(rip, start, end)
|
||||
static int freesp_inode(rip, start, end)
|
||||
register struct inode *rip; /* pointer to inode to be partly freed */
|
||||
off_t start, end; /* range of bytes to free (end uninclusive) */
|
||||
{
|
||||
@@ -660,7 +660,7 @@ off_t start, end; /* range of bytes to free (end uninclusive) */
|
||||
/*===========================================================================*
|
||||
* nextblock *
|
||||
*===========================================================================*/
|
||||
PRIVATE off_t nextblock(pos, block_size)
|
||||
static off_t nextblock(pos, block_size)
|
||||
off_t pos;
|
||||
unsigned short block_size;
|
||||
{
|
||||
@@ -678,7 +678,7 @@ unsigned short block_size;
|
||||
/*===========================================================================*
|
||||
* zeroblock_half *
|
||||
*===========================================================================*/
|
||||
PRIVATE void zeroblock_half(rip, pos, half)
|
||||
static void zeroblock_half(rip, pos, half)
|
||||
struct inode *rip;
|
||||
off_t pos;
|
||||
int half;
|
||||
@@ -708,7 +708,7 @@ int half;
|
||||
/*===========================================================================*
|
||||
* zeroblock_range *
|
||||
*===========================================================================*/
|
||||
PRIVATE void zeroblock_range(rip, pos, len)
|
||||
static void zeroblock_range(rip, pos, len)
|
||||
struct inode *rip;
|
||||
off_t pos;
|
||||
off_t len;
|
||||
|
||||
Reference in New Issue
Block a user