]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
s/__P/PARAMS/g
authorJim Meyering <jim@meyering.net>
Tue, 16 Dec 1997 15:32:32 +0000 (15:32 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 16 Dec 1997 15:32:32 +0000 (15:32 +0000)
src/chgrp.c
src/chmod.c
src/copy.c
src/dd.c
src/du.c
src/install.c
src/ls.c

index 4d8b3c2dbab9412716f34feec20fdc83b852d94b..ffb64d76098b25eecd47626be8b2019edd6d7878 100644 (file)
@@ -56,8 +56,8 @@ enum Change_status
 
 char *group_member ();
 
-static int change_dir_group __P ((const char *dir, int group,
-                                 const struct stat *statp));
+static int change_dir_group PARAMS ((const char *dir, int group,
+                                    const struct stat *statp));
 
 /* The name the program was run with. */
 char *program_name;
index c67a76ccf826b4a724097547b8c24830c9a820bd..8c3927d2fc8a7a55b4ec8714f1913c8ab14d926e 100644 (file)
@@ -37,9 +37,9 @@ enum Change_status
 void mode_string ();
 void strip_trailing_slashes ();
 
-static int change_dir_mode __P ((const char *dir,
-                                const struct mode_change *changes,
-                                const struct stat *statp));
+static int change_dir_mode PARAMS ((const char *dir,
+                                   const struct mode_change *changes,
+                                   const struct stat *statp));
 
 /* The name the program was run with. */
 char *program_name;
index 31d05a6e8c4cd0ab83cf0d1aa9652eb2dd9a7a4f..238a6656e0923d6bdff97d6fa26a8c0a2d6e7115 100644 (file)
@@ -39,10 +39,10 @@ int full_write ();
 int euidaccess ();
 int yesno ();
 
-static int copy_internal __P ((const char *src_path, const char *dst_path,
-                              int new_dst, dev_t device,
-                              struct dir_list *ancestors,
-                              const struct cp_options *x));
+static int copy_internal PARAMS ((const char *src_path, const char *dst_path,
+                                 int new_dst, dev_t device,
+                                 struct dir_list *ancestors,
+                                 const struct cp_options *x));
 
 /* The invocation name of this program.  */
 extern char *program_name;
index 4e36c9734e6bbda843b79eccfb9eacdfb3ffe32e..66a9b11806e8ee60948726c43af42786213f530f 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
 int safe_read ();
 int full_write ();
 
-static RETSIGTYPE interrupt_handler __P ((int));
-static int bit_count __P ((register unsigned int i));
-static uintmax_t parse_integer __P ((char *str, int *));
-static void apply_translations __P ((void));
-static void copy __P ((void));
-static void copy_simple __P ((unsigned char *buf, int nread));
-static void copy_with_block __P ((unsigned char *buf, int nread));
-static void copy_with_unblock __P ((unsigned char *buf, int nread));
-static void parse_conversion __P ((char *str));
-static void translate_charset __P ((const unsigned char *new_trans));
-static void quit __P ((int code));
-static void scanargs __P ((int argc, char **argv));
-static void skip __P ((int fdesc, char *file, uintmax_t records,
+static RETSIGTYPE interrupt_handler PARAMS ((int));
+static int bit_count PARAMS ((register unsigned int i));
+static uintmax_t parse_integer PARAMS ((char *str, int *));
+static void apply_translations PARAMS ((void));
+static void copy PARAMS ((void));
+static void copy_simple PARAMS ((unsigned char *buf, int nread));
+static void copy_with_block PARAMS ((unsigned char *buf, int nread));
+static void copy_with_unblock PARAMS ((unsigned char *buf, int nread));
+static void parse_conversion PARAMS ((char *str));
+static void translate_charset PARAMS ((const unsigned char *new_trans));
+static void quit PARAMS ((int code));
+static void scanargs PARAMS ((int argc, char **argv));
+static void skip PARAMS ((int fdesc, char *file, uintmax_t records,
                       size_t blocksize, unsigned char *buf));
-static void usage __P ((int status));
-static void write_output __P ((void));
+static void usage PARAMS ((int status));
+static void write_output PARAMS ((void));
 
 /* The name this program was run with. */
 char *program_name;
index 4dbb315d639853440f85e8fbfd71ea6866f26ef9..ffd87d327ef4bbfd99001e704061a38e852dab4a 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -100,18 +100,18 @@ typedef struct String String;
 int stat ();
 int lstat ();
 
-static int hash_insert __P ((ino_t ino, dev_t dev));
-static int hash_insert2 __P ((struct htab *_htab, ino_t ino, dev_t dev));
-static uintmax_t count_entry __P ((const char *ent, int top, dev_t last_dev,
+static int hash_insert PARAMS ((ino_t ino, dev_t dev));
+static int hash_insert2 PARAMS ((struct htab *_htab, ino_t ino, dev_t dev));
+static uintmax_t count_entry PARAMS ((const char *ent, int top, dev_t last_dev,
                                   int depth));
-static void du_files __P ((char **files));
-static void hash_init __P ((unsigned int modulus,
+static void du_files PARAMS ((char **files));
+static void hash_init PARAMS ((unsigned int modulus,
                            unsigned int entry_tab_size));
-static void hash_reset __P ((void));
-static void str_concatc __P ((String *s1, char *cstr));
-static void str_copyc __P ((String *s1, char *cstr));
-static void str_init __P ((String **s1, unsigned int size));
-static void str_trunc __P ((String *s1, unsigned int length));
+static void hash_reset PARAMS ((void));
+static void str_concatc PARAMS ((String *s1, char *cstr));
+static void str_copyc PARAMS ((String *s1, char *cstr));
+static void str_init PARAMS ((String **s1, unsigned int size));
+static void str_trunc PARAMS ((String *s1, unsigned int length));
 
 /* Name under which this program was invoked.  */
 char *program_name;
index 360264a66b124302624400020d1759ff70796f1e..e0c4cc7ba5c0f56ec2729514344a49cd56e0d24b 100644 (file)
@@ -117,14 +117,15 @@ int full_write ();
 int isdir ();
 enum backup_type get_version ();
 
-static int change_timestamps __P ((const char *from, const char *to));
-static int change_attributes __P ((const char *path, int no_need_to_chown));
-static int copy_file __P ((const char *from, const char *to, int *to_created));
-static int install_file_in_dir __P ((const char *from, const char *to_dir));
-static int install_file_in_file __P ((const char *from, const char *to));
-static void get_ids __P ((void));
-static void strip __P ((const char *path));
-static void usage __P ((int status));
+static int change_timestamps PARAMS ((const char *from, const char *to));
+static int change_attributes PARAMS ((const char *path, int no_need_to_chown));
+static int copy_file PARAMS ((const char *from, const char *to,
+                             int *to_created));
+static int install_file_in_dir PARAMS ((const char *from, const char *to_dir));
+static int install_file_in_file PARAMS ((const char *from, const char *to));
+static void get_ids PARAMS ((void));
+static void strip PARAMS ((const char *path));
+static void usage PARAMS ((int status));
 
 /* The name this program was run with, for error messages. */
 char *program_name;
index 6a239e1581400854b17fd0fbf750f38b51ba7a31..5d0550ce6c8ea444fbc0f786c2a567b10f014927 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -138,67 +138,69 @@ void strip_trailing_slashes ();
 char *xstrdup ();
 void invalid_arg ();
 
-static size_t quote_filename __P ((FILE *out, const char *filename));
-static char *make_link_path __P ((const char *path, const char *linkname));
-static int compare_atime __P ((const struct fileinfo *file1,
-                              const struct fileinfo *file2));
-static int rev_cmp_atime __P ((const struct fileinfo *file2,
-                              const struct fileinfo *file1));
-static int compare_ctime __P ((const struct fileinfo *file1,
-                              const struct fileinfo *file2));
-static int rev_cmp_ctime __P ((const struct fileinfo *file2,
-                              const struct fileinfo *file1));
-static int compare_mtime __P ((const struct fileinfo *file1,
-                              const struct fileinfo *file2));
-static int rev_cmp_mtime __P ((const struct fileinfo *file2,
-                              const struct fileinfo *file1));
-static int compare_size __P ((const struct fileinfo *file1,
-                             const struct fileinfo *file2));
-static int rev_cmp_size __P ((const struct fileinfo *file2,
-                             const struct fileinfo *file1));
-static int compare_name __P ((const struct fileinfo *file1,
-                             const struct fileinfo *file2));
-static int rev_cmp_name __P ((const struct fileinfo *file2,
-                             const struct fileinfo *file1));
-static int compare_extension __P ((const struct fileinfo *file1,
-                                  const struct fileinfo *file2));
-static int rev_cmp_extension __P ((const struct fileinfo *file2,
-                                  const struct fileinfo *file1));
-static int compare_version __P ((const struct fileinfo *file1,
-                                  const struct fileinfo *file2));
-static int rev_cmp_version __P ((const struct fileinfo *file2,
-                                  const struct fileinfo *file1));
-static int decode_switches __P ((int argc, char **argv));
-static int file_interesting __P ((const struct dirent *next));
-static uintmax_t gobble_file __P ((const char *name, int explicit_arg,
-                                  const char *dirname));
-static int is_not_dot_or_dotdot __P ((const char *name));
-static void print_color_indicator __P ((const char *name, unsigned int mode,
-                                       int linkok));
-static void put_indicator __P ((const struct bin_str *ind));
-static int length_of_file_name_and_frills __P ((const struct fileinfo *f));
-static void add_ignore_pattern __P ((const char *pattern));
-static void attach __P ((char *dest, const char *dirname, const char *name));
-static void clear_files __P ((void));
-static void extract_dirs_from_files __P ((const char *dirname, int recursive));
-static void get_link_name __P ((const char *filename, struct fileinfo *f));
-static void indent __P ((int from, int to));
-static void init_col_info __P ((void));
-static void print_current_files __P ((void));
-static void print_dir __P ((const char *name, const char *realname));
-static void print_file_name_and_frills __P ((const struct fileinfo *f));
-static void print_horizontal __P ((void));
-static void print_long_format __P ((const struct fileinfo *f));
-static void print_many_per_line __P ((void));
-static void print_name_with_quoting __P ((const char *p, unsigned int mode,
-                                         int linkok, struct obstack *stack));
-static void prep_non_filename_text __P ((void));
-static void print_type_indicator __P ((unsigned int mode));
-static void print_with_commas __P ((void));
-static void queue_directory __P ((const char *name, const char *realname));
-static void sort_files __P ((void));
-static void parse_ls_color __P ((void));
-static void usage __P ((int status));
+static size_t quote_filename PARAMS ((FILE *out, const char *filename));
+static char *make_link_path PARAMS ((const char *path, const char *linkname));
+static int compare_atime PARAMS ((const struct fileinfo *file1,
+                                 const struct fileinfo *file2));
+static int rev_cmp_atime PARAMS ((const struct fileinfo *file2,
+                                 const struct fileinfo *file1));
+static int compare_ctime PARAMS ((const struct fileinfo *file1,
+                                 const struct fileinfo *file2));
+static int rev_cmp_ctime PARAMS ((const struct fileinfo *file2,
+                                 const struct fileinfo *file1));
+static int compare_mtime PARAMS ((const struct fileinfo *file1,
+                                 const struct fileinfo *file2));
+static int rev_cmp_mtime PARAMS ((const struct fileinfo *file2,
+                                 const struct fileinfo *file1));
+static int compare_size PARAMS ((const struct fileinfo *file1,
+                                const struct fileinfo *file2));
+static int rev_cmp_size PARAMS ((const struct fileinfo *file2,
+                                const struct fileinfo *file1));
+static int compare_name PARAMS ((const struct fileinfo *file1,
+                                const struct fileinfo *file2));
+static int rev_cmp_name PARAMS ((const struct fileinfo *file2,
+                                const struct fileinfo *file1));
+static int compare_extension PARAMS ((const struct fileinfo *file1,
+                                     const struct fileinfo *file2));
+static int rev_cmp_extension PARAMS ((const struct fileinfo *file2,
+                                     const struct fileinfo *file1));
+static int compare_version PARAMS ((const struct fileinfo *file1,
+                                   const struct fileinfo *file2));
+static int rev_cmp_version PARAMS ((const struct fileinfo *file2,
+                                   const struct fileinfo *file1));
+static int decode_switches PARAMS ((int argc, char **argv));
+static int file_interesting PARAMS ((const struct dirent *next));
+static uintmax_t gobble_file PARAMS ((const char *name, int explicit_arg,
+                                     const char *dirname));
+static int is_not_dot_or_dotdot PARAMS ((const char *name));
+static void print_color_indicator PARAMS ((const char *name, unsigned int mode,
+                                          int linkok));
+static void put_indicator PARAMS ((const struct bin_str *ind));
+static int length_of_file_name_and_frills PARAMS ((const struct fileinfo *f));
+static void add_ignore_pattern PARAMS ((const char *pattern));
+static void attach PARAMS ((char *dest, const char *dirname, const char *name));
+static void clear_files PARAMS ((void));
+static void extract_dirs_from_files PARAMS ((const char *dirname,
+                                            int recursive));
+static void get_link_name PARAMS ((const char *filename, struct fileinfo *f));
+static void indent PARAMS ((int from, int to));
+static void init_col_info PARAMS ((void));
+static void print_current_files PARAMS ((void));
+static void print_dir PARAMS ((const char *name, const char *realname));
+static void print_file_name_and_frills PARAMS ((const struct fileinfo *f));
+static void print_horizontal PARAMS ((void));
+static void print_long_format PARAMS ((const struct fileinfo *f));
+static void print_many_per_line PARAMS ((void));
+static void print_name_with_quoting PARAMS ((const char *p, unsigned int mode,
+                                            int linkok,
+                                            struct obstack *stack));
+static void prep_non_filename_text PARAMS ((void));
+static void print_type_indicator PARAMS ((unsigned int mode));
+static void print_with_commas PARAMS ((void));
+static void queue_directory PARAMS ((const char *name, const char *realname));
+static void sort_files PARAMS ((void));
+static void parse_ls_color PARAMS ((void));
+static void usage PARAMS ((int status));
 
 /* The name the program was run with, stripped of any leading path. */
 char *program_name;