Check-in [9fb1a353d1]
Overview
Comment:Removed references to PATH_MAX
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9fb1a353d1dbf548fa3407757ce5a54602ba83cc
User & Date: rkeene on 2010-09-26 04:45:52
Other Links: manifest | tags
Context
2010-09-26
04:45
Updated to support patching Tcl using scripts

Created internal build script to create statically linked Diet Libc-based Tclkits check-in: e854407d3f user: rkeene tags: trunk

04:45
Removed references to PATH_MAX check-in: 9fb1a353d1 user: rkeene tags: trunk
04:45
Updated to use Tcl_FindExecutable() to set executable path check-in: 719fef74cb user: rkeene tags: trunk
Changes

Modified kitsh/buildsrc/kitsh-0.0/kitInit.c from [e36e6b04a3] to [04a2d744f1].

   177    177   
   178    178   static void FindAndSetExecName(Tcl_Interp *interp) {
   179    179   	int len = 0;
   180    180   	Tcl_Obj *execNameObj;
   181    181   	Tcl_Obj *lobjv[1];
   182    182   #if defined(HAVE_READLINK)
   183    183   	ssize_t readlink_ret;
   184         -	char procpath[PATH_MAX + 1];
   185         -	char exe_buf[PATH_MAX + 1];
          184  +	char procpath[4096];
          185  +	char exe_buf[4096];
   186    186   	int snprintf_ret;
   187    187   
   188    188   	if (Tcl_GetNameOfExecutable() == NULL) {
   189    189   		snprintf_ret = snprintf(procpath, sizeof(procpath), "/proc/%lu/exe", (unsigned long) getpid());
   190    190   		if (snprintf_ret < sizeof(procpath)) {
   191    191   			readlink_ret = readlink(procpath, exe_buf, sizeof(exe_buf) - 1);
   192    192