# define CHAR_MAX SCHAR_MAX
#endif
-#ifdef __minix
-#define SYMLOOP_MAX 16
-#define SYMLINK_MAX 1024
-#endif /* __minix */
-
#include <sys/syslimits.h>
#endif /* !_LIMITS_H_ */
*offsetp = 0;
/* Symloop limit reached? */
- if (++(*symlinkp) > SYMLOOP_MAX)
+ if (++(*symlinkp) > _POSIX_SYMLOOP_MAX)
r = ELOOP;
if (r != OK)
(ptr[0] != '\0' ||
!(fs_m_in.REQ_FLAGS & PATH_RET_SYMLINK))) {
- if (++symloop == SYMLOOP_MAX) {
+ if (++symloop == _POSIX_SYMLOOP_MAX) {
put_inode(next_ino);
r = ELOOP;
*offsetp = 0;
/* Symloop limit reached? */
- if (++(*symlinkp) > SYMLOOP_MAX)
+ if (++(*symlinkp) > _POSIX_SYMLOOP_MAX)
r = ELOOP;
if (r != OK) {
*offsetp = 0;
/* Symloop limit reached? */
- if (++(*symlinkp) > SYMLOOP_MAX)
+ if (++(*symlinkp) > _POSIX_SYMLOOP_MAX)
r = ELOOP;
if (r != OK) {
vname2_length = job_m_in.VFS_LINK_LEN2;
if (vname1_length <= 1) return(ENOENT);
- if (vname1_length >= SYMLINK_MAX) return(ENAMETOOLONG);
+ if (vname1_length >= _POSIX_SYMLINK_MAX) return(ENAMETOOLONG);
/* Get dir inode of 'name2' */
if (fetch_name(vname2, vname2_length, fullpath) != OK) return(err_code);
}
}
break;
- } while (symloop < SYMLOOP_MAX);
+ } while (symloop < _POSIX_SYMLOOP_MAX);
- if (symloop >= SYMLOOP_MAX) {
+ if (symloop >= _POSIX_SYMLOOP_MAX) {
err_code = ELOOP;
res_vp = NULL;
}
/* Update the current value of the symloop counter */
symloop += res.symloop;
- if (symloop > SYMLOOP_MAX) {
+ if (symloop > _POSIX_SYMLOOP_MAX) {
if (vmpres) unlock_vmnt(vmpres);
*(resolve->l_vmp) = NULL;
return(ELOOP);
/* encountered a symlink -- loop again */
strlcpy(orig_path, temp_path, PATH_MAX);
symloop++;
- } while (symloop < SYMLOOP_MAX);
+ } while (symloop < _POSIX_SYMLOOP_MAX);
- if (symloop >= SYMLOOP_MAX) {
+ if (symloop >= _POSIX_SYMLOOP_MAX) {
if (dir_vp) {
unlock_vnode(dir_vp);
unlock_vmnt(dir_vmp);