~ubuntu-branches/ubuntu/vivid/gzip/vivid

« back to all changes in this revision

Viewing changes to lib/dirname-lgpl.c

  • Committer: Steve Langasek
  • Date: 2012-06-29 02:07:40 UTC
  • mfrom: (4.1.9 sid)
  • Revision ID: steve.langasek@canonical.com-20120629020740-qqikrblzana08v2y
Merge version 1.5-1.1 from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* dirname.c -- return all but the last element in a file name
2
2
 
3
 
   Copyright (C) 1990, 1998, 2000-2001, 2003-2006, 2009-2010 Free Software
 
3
   Copyright (C) 1990, 1998, 2000-2001, 2003-2006, 2009-2012 Free Software
4
4
   Foundation, Inc.
5
5
 
6
6
   This program is free software: you can redistribute it and/or modify
25
25
 
26
26
/* Return the length of the prefix of FILE that will be used by
27
27
   dir_name.  If FILE is in the working directory, this returns zero
28
 
   even though `dir_name (FILE)' will return ".".  Works properly even
 
28
   even though 'dir_name (FILE)' will return ".".  Works properly even
29
29
   if there are trailing slashes (by effectively ignoring them).  */
30
30
 
31
31
size_t
53
53
}
54
54
 
55
55
 
56
 
/* In general, we can't use the builtin `dirname' function if available,
 
56
/* In general, we can't use the builtin 'dirname' function if available,
57
57
   since it has different meanings in different environments.
58
 
   In some environments the builtin `dirname' modifies its argument.
 
58
   In some environments the builtin 'dirname' modifies its argument.
59
59
 
60
60
   Return the leading directories part of FILE, allocated with malloc.
61
61
   Works properly even if there are trailing slashes (by effectively