Skip to content

Commit

Permalink
Remove unused definition of __openat(64)_nocancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Aug 11, 2015
1 parent 4afe4b2 commit dc8a7ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2015-08-11 Andreas Schwab <schwab@suse.de>

* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
* sysdeps/unix/sysv/linux/wordsize-64/openat.c
(__openat64_nocancel): Likewise.

2015-08-11 Joseph Myers <joseph@codesourcery.com>

* math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
Expand Down
18 changes: 0 additions & 18 deletions sysdeps/unix/sysv/linux/openat.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,6 @@
# define OPENAT openat
#endif


#define OPENAT_NOT_CANCEL CONCAT (OPENAT)
#define CONCAT(name) CONCAT2 (name)
#define CONCAT2(name) __##name##_nocancel


int
OPENAT_NOT_CANCEL (int fd, const char *file, int oflag, mode_t mode)
{

/* We have to add the O_LARGEFILE flag for openat64. */
#ifdef MORE_OFLAGS
oflag |= MORE_OFLAGS;
#endif

return INLINE_SYSCALL (openat, 4, fd, file, oflag, mode);
}

#define UNDERIZE(name) UNDERIZE_1 (name)
#define UNDERIZE_1(name) __##name
#define __OPENAT UNDERIZE (OPENAT)
Expand Down
3 changes: 0 additions & 3 deletions sysdeps/unix/sysv/linux/wordsize-64/openat.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#define __openat64 __rename___openat64
#define __openat64_nocancel __rename___openat64_nocancel
#define openat64 __rename_openat64

#include "../openat.c"

#undef __openat64
#undef __openat64_nocancel
#undef openat64

strong_alias (__openat, __openat64)
hidden_ver (__openat, __openat64)
strong_alias (__openat_nocancel, __openat64_nocancel)
weak_alias (openat, openat64)

0 comments on commit dc8a7ff

Please sign in to comment.