[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rsync
Subject:    Re: [Bug 8001] Is MAXPATHLEN set properly on FreeBSD?
From:       Shinichi Maruyama <marya () st ! jip ! co ! jp>
Date:       2011-03-10 23:50:15
Message-ID: 4D7963B7.9000205 () st ! jip ! co ! jp
[Download RAW message or body]

I use FreeBSD on some machines.

> MAXPATHLEN is a system-defined value of the longest path a function such as
> open() can handle, so you can't just arbitrarily increase it.  If your OS
> provides a MAXPATHLEN value that is smaller than what open() can handle, file a
> bug with the FreeBSD folks.  If it doesn't provide any such define, rsync.h
> will set it to be a conservative 1024 bytes.  If you find that FreeBSD has some
> other define for this maximal value I can either get rsync.h to make use of it,
> or you can get the FreeBSD folks to define MAXPATHLEN.

	On FreeBSD 8.0 (a little old), MAXPATHLEN is defined in
<sys/param.h>.

	/usr/include/sys/param.h:
	#define        MAXPATHLEN      PATH_MAX

	And PATH_MAX is defined in <sys/syslimits.h> which is included
from <sys/param.h>.

	/usr/include/sys/syslimits.h:
	#define    PATH_MAX                 1024   /* max bytes in pathname */

-- 
marya@st.jip.co.jp

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic