glibc/io/Versions
Ulrich Drepper ca10f33858 Update.
2003-11-07  Jakub Jelinek  <jakub@redhat.com>

	* io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
	(ftw_dir, ftw_startup): Add __attribute ((noinline)).
	(NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
	(NFTW_NAME): Only define if !_LIBC, add versioned_symbol
	and compat_symbol.
	* io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
	* io/Versions (libc): Export nftw@@GLIBC_2.3.3
	and nftw64@@GLIBC_2.3.3.

	* io/ftw.h (FTW_ACTIONRETVAL): New flag.
	(FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
	* io/ftw.c (ftw_dir): Add old_dir argument.
	Clear result if it was FTW_SKIP_SIBLINGS after processing all
	dir entries.  Change cwd back if old_dir != NULL.
	(process_entry): Adjust caller.  Don't change cwd back here.
	Change FTW_SKIP_SUBTREE result to 0.
	(ftw_startup): Adjust ftw_dir caller.
	Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
	* io/ftwtest.c (skip_subtree, skip_siblings): New variables.
	(options, main): Add --skip-subtree and --skip-siblings options.
	(cb): Use return FTW_CONTINUE instead of return 0.
	Handle --skip-subtree and --skip-siblings.
	* io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
	* manual/filesys.texi: Document FTW_ACTIONRETVAL.
2003-11-07 23:00:00 +00:00

107 lines
1.6 KiB
Plaintext

libc {
GLIBC_2.0 {
# functions used in inline functions or macros
__xstat; __fxstat; __lxstat; __xmknod; __write; __close; __fcntl;
__lseek; __open; __read;
# functions used by libstdc++ 2.7.2
__dup2; __pipe;
# a*
access;
# c*
chdir; chmod; chown; close; creat;
# d*
dup; dup2;
# e*
euidaccess;
# f*
fchdir; fchmod; fchown; fcntl; flock; fstatfs; fts_children; fts_close;
fts_open; fts_read; fts_set; ftw;
# g*
get_current_dir_name; getcwd; getwd;
# i*
isatty;
# l*
lchown; link; lockf; lseek;
# m*
mkdir; mkfifo;
# o*
open;
# p*
pipe; poll;
# r*
read; readlink; rmdir;
# s*
statfs; symlink;
# t*
ttyname; ttyname_r;
# u*
umask; unlink; utime;
# w*
write;
}
GLIBC_2.1 {
# functions used in other libraries
__xstat64; __fxstat64; __lxstat64; __poll;
# c*
creat64;
# f*
fstatfs64; fstatvfs; fstatvfs64; ftw64;
# l*
lockf64; lseek64;
# n*
nftw; nftw64;
# o*
open64;
# s*
sendfile;
statfs64; statvfs; statvfs64;
}
GLIBC_2.2 {
# p*
posix_fadvise; posix_fadvise64; posix_fallocate; posix_fallocate64;
__open64;
}
GLIBC_2.3 {
# s*
sendfile64;
}
GLIBC_2.3.2 {
# l*
lchmod;
}
GLIBC_2.3.3 {
# n*
nftw; nftw64;
}
GLIBC_PRIVATE {
# functions which have an additional interface since they are
# cancelable.
__libc_open; __libc_close; __libc_read; __libc_write;
__libc_lseek; __libc_fcntl; __libc_open64; __libc_lseek64;
}
}