ulimit -n in Solaris 10

ulimit -n behaves differently in Solaris 10. In Linux, I can modify the ulimit -n (open file descriptor limit) to any value as long as not exceeding the hard limit (ulimit -Hn). In Solaris, the default open file descriptor limits are:

rlim_fd_max= 65536 // hard limit
rlim_fd_cur= 256 // soft limit

After logging into Solaris, you can issue ulimit -n XXXX, then, the highest limit for your login session is set to XXXX. You can issue subsequent ulimit -n yyyy to lower the limit. Any attempt to increase the limit will be hit with an error.