summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-12-16 15:32:32 +0000
committerJim Meyering <jim@meyering.net>1997-12-16 15:32:32 +0000
commit03f9f3dbec05c3b5fad721f5be0203c57c455d0f (patch)
tree8abb75825016abd7db2d8c6af56b58f6a04dc083
parentfc22546441c3f0460fd93ec9c0ad6cc6ef2c9698 (diff)
downloadcoreutils-03f9f3dbec05c3b5fad721f5be0203c57c455d0f.tar.gz
coreutils-03f9f3dbec05c3b5fad721f5be0203c57c455d0f.tar.bz2
coreutils-03f9f3dbec05c3b5fad721f5be0203c57c455d0f.zip
s/__P/PARAMS/g
-rw-r--r--src/chgrp.c4
-rw-r--r--src/chmod.c6
-rw-r--r--src/copy.c8
-rw-r--r--src/dd.c30
-rw-r--r--src/du.c20
-rw-r--r--src/install.c17
-rw-r--r--src/ls.c124
7 files changed, 106 insertions, 103 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index 4d8b3c2db..ffb64d760 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -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;
diff --git a/src/chmod.c b/src/chmod.c
index c67a76ccf..8c3927d2f 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -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;
diff --git a/src/copy.c b/src/copy.c
index 31d05a6e8..238a6656e 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -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;
diff --git a/src/dd.c b/src/dd.c
index 4e36c9734..66a9b1180 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -64,22 +64,22 @@
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;
diff --git a/src/du.c b/src/du.c
index 4dbb315d6..ffd87d327 100644
--- 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;
diff --git a/src/install.c b/src/install.c
index 360264a66..e0c4cc7ba 100644
--- a/src/install.c
+++ b/src/install.c
@@ -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;
diff --git a/src/ls.c b/src/ls.c
index 6a239e158..5d0550ce6 100644
--- 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;