Home
last modified time | relevance | path

Searched refs:home_len (Results 1 – 25 of 118) sorted by relevance

12345

/dports/net-im/sshout/sshout-1.2.0/
H A Dmain.c58 size_t home_len = strlen(home); in main() local
59 if(home_len + 1 + sizeof SOCKET_NAME > sizeof sockaddr.sun_path) { in main()
60 fprintf(stderr, "home path too long (%zu bytes)\n", home_len); in main()
63 memcpy(sockaddr.sun_path, home, home_len); in main()
64 sockaddr.sun_path[home_len] = '/'; in main()
65 memcpy(sockaddr.sun_path + home_len + 1, SOCKET_NAME, sizeof SOCKET_NAME); in main()
/dports/devel/libafterbase/libAfterBase-0.92/
H A Dfs.c124 static int home_len = 0; in put_file_home() local
140 home_len = strlen (home); in put_file_home()
144 str = safemalloc (home_len + i); in put_file_home()
145 for (ptr = str + home_len-1; i > 0; i--) in put_file_home()
147 for (i = 0; i < home_len; i++) in put_file_home()
268 int pos = 0, len, home_len = 0; in do_replace_envvar() local
276 home_len = strlen (home); in do_replace_envvar()
297 len += home_len; in do_replace_envvar()
301 strcpy (tmp + pos + home_len, data + pos + 1); in do_replace_envvar()
305 pos += home_len; in do_replace_envvar()
/dports/emulators/anese/ANESE-0.9.1/thirdparty/headeronly/
H A Dcfgpath.h101 unsigned int home_len = strlen(home); in get_user_config_file() local
106 if (home_len + 1 + config_len + appname_len + ext_len + 1 > maxlen) { in get_user_config_file()
111 memcpy(out, home, home_len); in get_user_config_file()
112 out += home_len; in get_user_config_file()
/dports/cad/magic/magic-8.3.245/readline/readline-4.3/
H A Dhistfile.c105 int home_len; local
117 home_len = 1;
120 home_len = strlen (home);
122 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
124 return_val[home_len] = '/';
126 strcpy (return_val + home_len + 1, "_history");
128 strcpy (return_val + home_len + 1, ".history");
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gdb/readline/
H A Dhistfile.c105 int home_len; local
117 home_len = 1;
120 home_len = strlen (home);
122 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
124 return_val[home_len] = '/';
126 strcpy (return_val + home_len + 1, "_history");
128 strcpy (return_val + home_len + 1, ".history");
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gdb/readline/
H A Dhistfile.c105 int home_len; local
117 home_len = 1;
120 home_len = strlen (home);
122 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
124 return_val[home_len] = '/';
126 strcpy (return_val + home_len + 1, "_history");
128 strcpy (return_val + home_len + 1, ".history");
/dports/databases/gqlplus/gqlplus-1.16/readline/
H A Dhistfile.c105 int home_len; local
117 home_len = 1;
120 home_len = strlen (home);
122 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
124 return_val[home_len] = '/';
126 strcpy (return_val + home_len + 1, "_history");
128 strcpy (return_val + home_len + 1, ".history");
/dports/databases/gqlplus/gqlplus-1.16/gqlplus-1.15/readline/
H A Dhistfile.c105 int home_len; local
117 home_len = 1;
120 home_len = strlen (home);
122 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
124 return_val[home_len] = '/';
126 strcpy (return_val + home_len + 1, "_history");
128 strcpy (return_val + home_len + 1, ".history");
/dports/net-p2p/amule/aMule-2.3.3/src/utils/cas/
H A Dfunctions.c72 static size_t home_len = 0; in get_path() local
156 home_len = strlen(home); in get_path()
166 ret = malloc((home_len + strlen(file) + 2) * sizeof(char)); in get_path()
171 ret[home_len] = CAS_DIR_SEPARATOR[0]; in get_path()
172 ret[home_len+1] = '\0'; in get_path()
/dports/net-p2p/amule-devel/aMule-SVN-r11065/src/utils/cas/
H A Dfunctions.c72 static size_t home_len = 0; in get_path() local
156 home_len = strlen(home); in get_path()
166 ret = malloc((home_len + strlen(file) + 2) * sizeof(char)); in get_path()
171 ret[home_len] = CAS_DIR_SEPARATOR[0]; in get_path()
172 ret[home_len+1] = '\0'; in get_path()
/dports/devel/avr-gdb/gdb-7.3.1/readline/
H A Dhistfile.c117 int home_len; local
129 home_len = 1;
132 home_len = strlen (home);
134 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
136 return_val[home_len] = '/';
138 strcpy (return_val + home_len + 1, "_history");
140 strcpy (return_val + home_len + 1, ".history");
/dports/devel/gdb761/gdb-7.6.1/readline/
H A Dhistfile.c118 int home_len; local
131 home_len = 1;
137 home_len = strlen (home);
139 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
141 return_val[home_len] = '/';
143 strcpy (return_val + home_len + 1, "_history");
145 strcpy (return_val + home_len + 1, ".history");
/dports/databases/mariadb105-client/mariadb-10.5.15/extra/readline/
H A Dhistfile.c117 int home_len; local
129 home_len = 1;
132 home_len = strlen (home);
134 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
136 return_val[home_len] = '/';
138 strcpy (return_val + home_len + 1, "_history");
140 strcpy (return_val + home_len + 1, ".history");
/dports/databases/mariadb104-server/mariadb-10.4.24/extra/readline/
H A Dhistfile.c117 int home_len;
129 home_len = 1;
132 home_len = strlen (home);
134 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
136 return_val[home_len] = '/';
138 strcpy (return_val + home_len + 1, "_history");
140 strcpy (return_val + home_len + 1, ".history");
/dports/databases/mariadb105-server/mariadb-10.5.15/extra/readline/
H A Dhistfile.c117 int home_len; local
129 home_len = 1;
132 home_len = strlen (home);
134 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
136 return_val[home_len] = '/';
138 strcpy (return_val + home_len + 1, "_history");
140 strcpy (return_val + home_len + 1, ".history");
/dports/databases/mariadb103-server/mariadb-10.3.34/extra/readline/
H A Dhistfile.c117 int home_len; local
129 home_len = 1;
132 home_len = strlen (home);
134 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
136 return_val[home_len] = '/';
138 strcpy (return_val + home_len + 1, "_history");
140 strcpy (return_val + home_len + 1, ".history");
/dports/databases/mariadb103-client/mariadb-10.3.34/extra/readline/
H A Dhistfile.c117 int home_len; local
129 home_len = 1;
132 home_len = strlen (home);
134 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
136 return_val[home_len] = '/';
138 strcpy (return_val + home_len + 1, "_history");
140 strcpy (return_val + home_len + 1, ".history");
/dports/databases/mariadb104-client/mariadb-10.4.24/extra/readline/
H A Dhistfile.c117 int home_len; local
129 home_len = 1;
132 home_len = strlen (home);
134 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
136 return_val[home_len] = '/';
138 strcpy (return_val + home_len + 1, "_history");
140 strcpy (return_val + home_len + 1, ".history");
/dports/databases/mysql55-client/mysql-5.5.62/cmd-line-utils/readline/
H A Dhistfile.c117 int home_len; local
129 home_len = 1;
132 home_len = strlen (home);
134 return_val = (char *)xmalloc (2 + home_len + 8); /* strlen(".history") == 8 */
136 return_val[home_len] = '/';
138 strcpy (return_val + home_len + 1, "_history");
140 strcpy (return_val + home_len + 1, ".history");
/dports/deskutils/calibre/calibre-src-5.34.0/bypy/linux/
H A Dutil.c35 size_t home_len = p - interpreter_data.python_home_path; in get_paths() local
36 if (home_len == 0) fatal("base directory empty"); in get_paths()
37 wcsncat(interpreter_data.executables_path, interpreter_data.python_home_path, home_len); in get_paths()
/dports/x11-wm/afterstep-stable/afterstep-devel-2.2.12/libAfterBase/
H A Dfs.c242 static int home_len = 0; in put_file_home() local
259 home_len = strlen (home); in put_file_home()
263 str = safemalloc (home_len + i + 1); in put_file_home()
264 for (ptr = str + home_len; i >= 0; i--) in put_file_home()
266 for (i = 0; i < home_len; i++) in put_file_home()
404 int pos = 0, len, home_len = 0; in do_replace_envvar() local
412 home_len = strlen (home); in do_replace_envvar()
433 len += home_len; in do_replace_envvar()
437 strcpy (tmp + pos + home_len, data + pos + 1); in do_replace_envvar()
441 pos += home_len; in do_replace_envvar()
/dports/editors/dte/dte-cae7c45ea5a563c022001a54d1eee71c268f62b4/src/
H A Dbuffer.c177 size_t home_len = strlen(editor.home_dir); in short_filename_cwd() local
189 abs_len > home_len in short_filename_cwd()
190 && !memcmp(absolute, editor.home_dir, home_len) in short_filename_cwd()
191 && absolute[home_len] == '/' in short_filename_cwd()
193 size_t len = abs_len - home_len + 1; in short_filename_cwd()
197 memcpy(filename + 1, absolute + home_len, len); in short_filename_cwd()
/dports/audio/sndio/sndio-1.8.1/libsndio/
H A Daucat.c252 size_t home_len, path_len; in aucat_mkcookie() local
264 home_len = strlen(home); in aucat_mkcookie()
265 path = malloc(home_len + sizeof(COOKIE_SUFFIX)); in aucat_mkcookie()
268 memcpy(path, home, home_len); in aucat_mkcookie()
269 memcpy(path + home_len, COOKIE_SUFFIX, sizeof(COOKIE_SUFFIX)); in aucat_mkcookie()
270 path_len = home_len + sizeof(COOKIE_SUFFIX) - 1; in aucat_mkcookie()
323 memcpy(tmp, home, home_len); in aucat_mkcookie()
324 memcpy(tmp + home_len, COOKIE_DIR, sizeof(COOKIE_DIR)); in aucat_mkcookie()
/dports/textproc/link-grammar/link-grammar-5.8.0/link-parser/
H A Dparser-utilities.c88 size_t home_len = strlen(home); in expand_homedir() local
90 char *eh_filename = malloc(home_len + filename_len + 1); in expand_homedir()
91 memcpy(eh_filename, home, home_len); in expand_homedir()
92 memcpy(eh_filename + home_len, filename, filename_len + 1); in expand_homedir()
/dports/ftp/lftp/lftp-4.9.2/src/
H A DCmdExec.cc859 int home_len=xstrlen(home); in FormatPrompt() local
860 if(home_len>1 && !strncmp(cwd,home,home_len) in FormatPrompt()
861 && (cwd[home_len]=='/' || cwd[home_len]==0)) in FormatPrompt()
863 cwd=xstring::format("~%s",cwd+home_len); in FormatPrompt()
876 int home_len=xstrlen(home); in FormatPrompt() local
877 if(home_len>1 && !strncmp(lcwd,home,home_len) in FormatPrompt()
878 && (lcwd[home_len]=='/' || lcwd[home_len]==0)) in FormatPrompt()
880 lcwd=xstring::format("~%s",lcwd+home_len); in FormatPrompt()

12345