~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/dirname-lgpl.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

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-2011 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