Mercurial > hg > octave-kai > gnulib-hg
comparison lib/canonicalize.c @ 9169:dfa92826de1e
Rename mreadlink_with_size to areadlink_with_size.
* NEWS: Document the change.
* lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
* lib/areadlink-with-size.c (areadlink_with_size): ...this.
* lib/mreadlink.h: Rename this to...
* lib/areadlink.h: ...this.
* modules/mreadlink-with-size: Rename this to...
* modules/areadlink-with-size: ...this.
* lib/canonicalize.c: Reflect the renaming.
* modules/canonicalize: Likewise.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 28 Aug 2007 09:13:04 +0000 |
parents | 4162ebc5fa6c |
children | 484ada1ccebf |
comparison
equal
deleted
inserted
replaced
9168:9b8032e2af0c | 9169:dfa92826de1e |
---|---|
45 #ifndef __set_errno | 45 #ifndef __set_errno |
46 # define __set_errno(Val) errno = (Val) | 46 # define __set_errno(Val) errno = (Val) |
47 #endif | 47 #endif |
48 | 48 |
49 #include "pathmax.h" | 49 #include "pathmax.h" |
50 #include "mreadlink.h" | 50 #include "areadlink.h" |
51 | 51 |
52 #if !HAVE_CANONICALIZE_FILE_NAME | 52 #if !HAVE_CANONICALIZE_FILE_NAME |
53 /* Return the canonical absolute name of file NAME. A canonical name | 53 /* Return the canonical absolute name of file NAME. A canonical name |
54 does not contain any `.', `..' components nor any repeated file name | 54 does not contain any `.', `..' components nor any repeated file name |
55 separators ('/') or symlinks. All components must exist. | 55 separators ('/') or symlinks. All components must exist. |
244 continue; | 244 continue; |
245 else | 245 else |
246 goto error; | 246 goto error; |
247 } | 247 } |
248 | 248 |
249 buf = mreadlink_with_size (rname, st.st_size); | 249 buf = areadlink_with_size (rname, st.st_size); |
250 if (!buf) | 250 if (!buf) |
251 { | 251 { |
252 if (can_mode == CAN_MISSING && errno != ENOMEM) | 252 if (can_mode == CAN_MISSING && errno != ENOMEM) |
253 continue; | 253 continue; |
254 else | 254 else |