summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/unlinkat.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-11-19 20:05:14 +0000
committerJakub Jelinek <jakub@redhat.com>2005-11-19 20:05:14 +0000
commit8e8c8d3c871666d3c4fb0cda0147fb2231beeb09 (patch)
tree8205dc9da58d4c3090372b155fdede74e7b3d6b1 /sysdeps/unix/sysv/linux/unlinkat.c
parentb9616a4d2d0ff113b95a638127ad27c98e6c713b (diff)
Updated to fedora-glibc-20051119T1959
Diffstat (limited to 'sysdeps/unix/sysv/linux/unlinkat.c')
-rw-r--r--sysdeps/unix/sysv/linux/unlinkat.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/unlinkat.c b/sysdeps/unix/sysv/linux/unlinkat.c
index 36c0215b48..821029f5e5 100644
--- a/sysdeps/unix/sysv/linux/unlinkat.c
+++ b/sysdeps/unix/sysv/linux/unlinkat.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 2005 Free Software Foundation, Inc.
+/* unlinkat -- Remove a link by relative name.
+ Copyright (C) 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,7 +21,9 @@
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
+#include <sysdep.h>
#include <unistd.h>
@@ -51,7 +54,7 @@ unlinkat (fd, file, flag)
due to the format elements compensates for possible negative
numbers. */
size_t buflen = sizeof (procfd) + sizeof (int) * 3 + filelen;
- buf = alloca (buflen);
+ buf = __alloca (buflen);
__snprintf (buf, buflen, procfd, fd, file);
file = buf;