Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 311953 Details for
Bug 412201
app-text/build-docbook-catalog-1.19 calls command flock, but G/FBSD don't have it
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
flock-2.21.1-remove-strmode.patch
flock-2.21.1-remove-strmode.patch (text/plain), 1.53 KB, created by
Naohiro Aota
on 2012-05-16 05:19:39 UTC
(
hide
)
Description:
flock-2.21.1-remove-strmode.patch
Filename:
MIME Type:
Creator:
Naohiro Aota
Created:
2012-05-16 05:19:39 UTC
Size:
1.53 KB
patch
obsolete
>diff --git a/include/strutils.h b/include/strutils.h >index ef283df..ed279e8 100644 >--- a/include/strutils.h >+++ b/include/strutils.h >@@ -28,8 +28,6 @@ static inline void xstrncpy(char *dest, const char *src, size_t n) > dest[n-1] = 0; > } > >-extern void strmode(mode_t mode, char *str); >- > /* Options for size_to_human_string() */ > enum > { >diff --git a/lib/strutils.c b/lib/strutils.c >index c40daf2..4a1d2c2 100644 >--- a/lib/strutils.c >+++ b/lib/strutils.c >@@ -265,45 +265,6 @@ err: > } > > /* >- * Converts stat->st_mode to ls(1)-like mode string. The size of "str" must >- * be 10 bytes. >- */ >-void strmode(mode_t mode, char *str) >-{ >- if (S_ISDIR(mode)) >- str[0] = 'd'; >- else if (S_ISLNK(mode)) >- str[0] = 'l'; >- else if (S_ISCHR(mode)) >- str[0] = 'c'; >- else if (S_ISBLK(mode)) >- str[0] = 'b'; >- else if (S_ISSOCK(mode)) >- str[0] = 's'; >- else if (S_ISFIFO(mode)) >- str[0] = 'p'; >- else if (S_ISREG(mode)) >- str[0] = '-'; >- >- str[1] = mode & S_IRUSR ? 'r' : '-'; >- str[2] = mode & S_IWUSR ? 'w' : '-'; >- str[3] = (mode & S_ISUID >- ? (mode & S_IXUSR ? 's' : 'S') >- : (mode & S_IXUSR ? 'x' : '-')); >- str[4] = mode & S_IRGRP ? 'r' : '-'; >- str[5] = mode & S_IWGRP ? 'w' : '-'; >- str[6] = (mode & S_ISGID >- ? (mode & S_IXGRP ? 's' : 'S') >- : (mode & S_IXGRP ? 'x' : '-')); >- str[7] = mode & S_IROTH ? 'r' : '-'; >- str[8] = mode & S_IWOTH ? 'w' : '-'; >- str[9] = (mode & S_ISVTX >- ? (mode & S_IXOTH ? 't' : 'T') >- : (mode & S_IXOTH ? 'x' : '-')); >- str[10] = '\0'; >-} >- >-/* > * returns exponent (2^x=n) in range KiB..PiB > */ > static int get_exp(uint64_t n)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 412201
:
311947
|
311951
| 311953