[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
chdir-long spruceup to assume fcntl
From: |
Paul Eggert |
Subject: |
chdir-long spruceup to assume fcntl |
Date: |
Thu, 31 Aug 2006 14:56:25 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
I installed this:
2006-08-31 Paul Eggert <address@hidden>
* lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
Don't include unistd.h or limits.h; not needed, since chdir-long.h
does that for us.
(O_DIRECTORY): Remove.
* modules/chdir-long (Depends-on): Add fcntl.
--- lib/chdir-long.c 9 Jan 2006 23:13:56 -0000 1.7
+++ lib/chdir-long.c 31 Aug 2006 21:52:20 -0000
@@ -1,5 +1,5 @@
/* provide a chdir function that tries not to fail due to ENAMETOOLONG
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -23,22 +23,17 @@
#include "chdir-long.h"
+#include <fcntl.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
-#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <assert.h>
-#include <limits.h>
#include "memrchr.h"
#include "openat.h"
-#ifndef O_DIRECTORY
-# define O_DIRECTORY 0
-#endif
-
#ifndef PATH_MAX
# error "compile this file only if your system defines PATH_MAX"
#endif
--- modules/chdir-long 21 Aug 2006 21:46:31 -0000 1.6
+++ modules/chdir-long 31 Aug 2006 21:52:21 -0000
@@ -7,6 +7,7 @@ lib/chdir-long.c
m4/chdir-long.m4
Depends-on:
+fcntl
openat
mempcpy
memrchr
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- chdir-long spruceup to assume fcntl,
Paul Eggert <=