2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

util: Introduce buffer size for carrying /proc/self/fd/N path

There's ... a number of places where we want to do something
with /proc/self/fd/%d path. Each time we guess buffer size
that is enough for this. Make standard constant for this and
save some space on stack and drop args for some functions.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-10-15 13:59:59 +04:00
parent baa2583a1d
commit b978c6f873
6 changed files with 19 additions and 16 deletions

View File

@@ -940,7 +940,7 @@ out:
static int fchroot(int fd)
{
char fd_path[32];
char fd_path[PSFDS];
/*
* There's no such thing in syscalls. We can emulate