diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-06-06 23:57:51 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-06-06 23:57:51 +0400 |
commit | 729d1ff9d89641b443bca6fcd5d4a9e3d9f3896a (patch) | |
tree | f524ca68a74099700bb72b862615ce9310d44f3d /newlib/libc/posix/scandir.c | |
parent | 045e4d2e0829b6c07ef10171bf5d00ab85cbb497 (diff) |
2003-06-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/argz/argz_add.c: Change to use _DEFUN macro for function
definition.
* libc/argz/argz_add_sep.c: Ditto.
* libc/argz/argz_append.c libc/argz/argz_count.c: Ditto.
* libc/argz/argz_create.c libc/argz/argz_create_sep.c: Ditto.
* libc/argz/argz_delete.c libc/argz/argz_extract.c: Ditto.
* libc/argz/argz_insert.c libc/argz/argz_next.c: Ditto.
* libc/argz/argz_replace.c libc/argz/argz_stringify.c: Ditto.
* libc/argz/envz_add.c libc/argz/envz_entry.c: Ditto.
* libc/argz/envz_get.c libc/argz/envz_merge.c: Ditto.
* libc/argz/envz_remove.c libc/argz/envz_strip.c: Ditto.
* libc/locale/nl_langinfo.c libc/misc/ffs.c: Ditto.
* libc/posix/closedir.c libc/posix/creat.c: Ditto.
* libc/posix/execl.c libc/posix/execle.c: Ditto.
* libc/posix/execlp.c libc/posix/execve.c: Ditto.
* libc/posix/isatty.c libc/posix/opendir.c: Ditto.
* libc/posix/popen.c libc/posix/readdir.c: Ditto.
* libc/posix/readdir_r.c libc/posix/rewinddir.c: Ditto.
* libc/posix/scandir.c libc/posix/seekdir.c: Ditto.
* libc/posix/telldir.c libc/search/hcreate.c: Ditto.
* libc/search/tdelete.c libc/search/tdestroy.c: Ditto.
* libc/search/tfind.c libc/search/tsearch.c: Ditto.
* libc/search/twalk.c libc/signal/signal.c: Ditto.
Diffstat (limited to 'newlib/libc/posix/scandir.c')
-rw-r--r-- | newlib/libc/posix/scandir.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/newlib/libc/posix/scandir.c b/newlib/libc/posix/scandir.c index bcbe57fbd..97094a676 100644 --- a/newlib/libc/posix/scandir.c +++ b/newlib/libc/posix/scandir.c @@ -71,11 +71,11 @@ static char sccsid[] = "@(#)scandir.c 5.10 (Berkeley) 2/23/91"; #endif int -scandir(dirname, namelist, select, dcomp) - const char *dirname; - struct dirent ***namelist; - int (*select) __P((struct dirent *)); - int (*dcomp) __P((const void *, const void *)); +_DEFUN(scandir, (dirname, namelist, select, dcomp), + const char *dirname _AND + struct dirent ***namelist _AND + int (*select) __P((struct dirent *)) _AND + int (*dcomp) __P((const void *, const void *))) { register struct dirent *d, *p, **names; register size_t nitems; @@ -167,9 +167,9 @@ scandir(dirname, namelist, select, dcomp) * Alphabetic order comparison routine for those who want it. */ int -alphasort(d1, d2) - const struct dirent **d1; - const struct dirent **d2; +_DEFUN(alphasort, (d1, d2), + const struct dirent **d1 _AND + const struct dirent **d2) { return(strcmp((*d1)->d_name, (*d2)->d_name)); } |