1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* include/fcntl.h: Declare __openat, __open64. Use libc_hidden_proto.

* io/openat.c (__openat): Define instead of openat.
	Use libc_hidden_def.  Define openat with weak_alias.
	* io/openat64.c (__openat64): Define instead of openat64.
	Use libc_hidden_def.  Define openat64 with weak_alias.
	* sysdeps/unix/sysv/linux/openat.c: Likewise.

	* libio/genops.c: Include <sched.h> for __sched_yield decl.
This commit is contained in:
Roland McGrath
2006-03-01 05:32:59 +00:00
parent 3192fd8e46
commit e2c7e1de2b
6 changed files with 34 additions and 5 deletions

View File

@ -135,12 +135,16 @@ OPENAT_NOT_CANCEL (fd, file, oflag, mode)
#endif
}
#define UNDERIZE(name) UNDERIZE_1 (name)
#define UNDERIZE_1(name) __##name
#define __OPENAT UNDERIZE (OPENAT)
/* Open FILE with access OFLAG. Interpret relative paths relative to
the directory associated with FD. If OFLAG includes O_CREAT, a
third argument is the file protection. */
int
OPENAT (fd, file, oflag)
__OPENAT (fd, file, oflag)
int fd;
const char *file;
int oflag;
@ -165,3 +169,5 @@ OPENAT (fd, file, oflag)
return res;
}
libc_hidden_def (__OPENAT)
weak_alias (__OPENAT, OPENAT)