diff options
| author | Jim Meyering <jim@meyering.net> | 2002-03-08 16:46:26 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 2002-03-08 16:46:26 +0000 |
| commit | 29544710c677eee2b25c4d46e1ae0c95b10ce03d (patch) | |
| tree | 8c5b080c161facf9e5930abb8987a0a78d44323f /src/remove.h | |
| parent | (main): Call lstat `.' to get the device/inode numbers (diff) | |
| download | coreutils-29544710c677eee2b25c4d46e1ae0c95b10ce03d.tar.gz coreutils-29544710c677eee2b25c4d46e1ae0c95b10ce03d.zip | |
(struct dev_ino): Declare new type.
(rm): Add a parameter to the prototype.
Diffstat (limited to 'src/remove.h')
| -rw-r--r-- | src/remove.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/remove.h b/src/remove.h index deb5d628c..c35235fec 100644 --- a/src/remove.h +++ b/src/remove.h @@ -44,8 +44,16 @@ struct File_spec dev_t st_dev; }; -enum RM_status rm PARAMS ((struct File_spec *fs, int user_specified_name, - const struct rm_options *x)); +struct dev_ino +{ + ino_t st_ino; + dev_t st_dev; +}; + +enum RM_status rm PARAMS ((struct File_spec *fs, + int user_specified_name, + struct rm_options const *x, + struct dev_ino const *cwd_dev_ino)); void fspec_init_file PARAMS ((struct File_spec *fs, const char *filename)); void remove_init PARAMS ((void)); void remove_fini PARAMS ((void)); |
