Lines Matching +defs:child +defs:name

246     char    *name;	/* Signal name (not char_u!). */
588 * mch_am_i_owner(name): do I own the file (or am I root)
593 mch_am_i_owner(name)
594 char_u *name;
603 if (stat((char *)vms_fixfilename(name), &statb))
605 if (stat((char *)name, &statb))
1049 * You need to manually adjust the file name and Vim executable name.
1071 /* try to find the name of this signal */
1106 signal_info[i].name);
1407 * name, mostly it's just "vim" and found in the path, which is unusable.
1773 /* could not get old icon, use terminal name */
1796 /* Get window/icon name if any */
1803 * If terminal is xterm, then x11_window may be a child window of the
1804 * outer xterm window that actually contains the window/icon name, so
2018 if (T_NAME == NULL) /* no terminal name (yet) */
2120 * Return TRUE if "name" looks like some xterm name.
2124 vim_is_xterm(name)
2125 char_u *name;
2127 if (name == NULL)
2129 return (STRNICMP(name, "xterm", 5) == 0
2130 || STRNICMP(name, "nxterm", 6) == 0
2131 || STRNICMP(name, "kterm", 5) == 0
2132 || STRNICMP(name, "mlterm", 6) == 0
2133 || STRNICMP(name, "rxvt", 4) == 0
2134 || STRCMP(name, "builtin_xterm") == 0);
2139 * Return TRUE if "name" appears to be that of a terminal
2144 use_xterm_like_mouse(name)
2145 char_u *name;
2147 return (name != NULL
2148 && (term_is_xterm || STRNICMP(name, "screen", 6) == 0));
2170 vim_is_iris(name)
2171 char_u *name;
2173 if (name == NULL)
2175 return (STRNICMP(name, "iris-ansi", 9) == 0
2176 || STRCMP(name, "builtin_iris-ansi") == 0);
2180 vim_is_vt300(name)
2181 char_u *name;
2183 if (name == NULL)
2186 return ((STRNICMP(name, "vt", 2) == 0
2187 && vim_strchr((char_u *)"12345", name[2]) != NULL)
2188 || STRCMP(name, "builtin_vt320") == 0);
2192 * Return TRUE if "name" is a terminal for which 'ttyfast' should be set.
2196 vim_is_fastterm(name)
2197 char_u *name;
2199 if (name == NULL)
2201 if (vim_is_xterm(name) || vim_is_vt300(name) || vim_is_iris(name))
2203 return ( STRNICMP(name, "hpterm", 6) == 0
2204 || STRNICMP(name, "sun-cmd", 7) == 0
2205 || STRNICMP(name, "screen", 6) == 0
2206 || STRNICMP(name, "dtterm", 6) == 0);
2210 * Insert user name in s[len].
2211 * Return OK if a name found.
2227 * Insert user name for "uid" in s[len].
2228 * Return OK if a name found.
2247 return FAIL; /* a number is not a name */
2251 * Insert host name is s[len].
2315 * Get name of current directory into buffer 'buf' of length 'len' bytes.
2354 * Get absolute file name into "buf[len]".
2366 int only_drive; /* file name is only a drive letter */
2400 * If the file name has a path, change to that directory for a moment,
2402 * This will get the correct path name with "../" things.
2448 * path separator detected in the file name; the _next_
2455 * the file name without changing it (could be a string in
2551 * Set the case of the file name, if it already exists. This will cause the
2552 * file name to remain exactly the same.
2556 fname_case(name, len)
2557 char_u *name;
2558 int len UNUSED; /* buffer size, only used when name gets longer */
2565 if (lstat((char *)name, &st) >= 0)
2568 slash = vim_strrchr(name, '/');
2572 tail = name;
2577 dirp = opendir((char *)name);
2587 * length. TODO: accept different length name. */
2595 vim_strncpy(newname, name, MAXPATHL);
2596 vim_strncpy(newname + (tail - name), (char_u *)dp->d_name,
2597 MAXPATHL - (tail - name));
2615 * Get file permissions for 'name'.
2619 mch_getperm(name)
2620 char_u *name;
2626 if (stat((char *)vms_fixfilename(name), &statb))
2628 if (stat((char *)name, &statb))
2641 * set file permission for 'name' to 'perm'
2646 mch_setperm(name, perm)
2647 char_u *name;
2652 vms_fixfilename(name),
2654 name,
2837 * Set hidden flag for "name".
2840 mch_hide(name)
2841 char_u *name UNUSED;
2847 * return TRUE if "name" is a directory
2848 * return FALSE if "name" is not a directory
2852 mch_isdir(name)
2853 char_u *name;
2857 if (*name == NUL) /* Some stat()s don't flag "" as an error. */
2859 if (stat((char *)name, &statb))
2868 static int executable_file __ARGS((char_u *name));
2871 * Return 1 if "name" is an executable file, 0 if not or it doesn't exist.
2874 executable_file(name)
2875 char_u *name;
2879 if (stat((char *)name, &st))
2881 return S_ISREG(st.st_mode) && mch_access((char *)name, X_OK) == 0;
2885 * Return 1 if "name" can be found in $PATH and executed, 0 if not.
2889 mch_can_exe(name)
2890 char_u *name;
2897 if (mch_isFullName(name) || (name[0] == '.' && (name[1] == '/'
2898 || (name[1] == '.' && name[2] == '/'))))
2899 return executable_file(name);
2904 buf = alloc((unsigned)(STRLEN(name) + STRLEN(p) + 2));
2909 * Walk through all entries in $PATH to check if "name" exists there and
2924 STRCAT(buf, name);
2939 * Check what "name" is:
2945 mch_nodetype(name)
2946 char_u *name;
2950 if (stat((char *)name, &st))
3080 mch_restore_title(3); /* restore xterm title and icon name */
3974 else if (pid == 0) /* child */
4022 /* Create our own process group, so that the child and all its
4084 /* set up stdin/stdout/stderr for the child */
4100 /* set up stdin for the child */
4106 /* set up stdout for the child */
4115 /* set up stderr for the child */
4136 * While child is running, ignore terminating signals.
4189 * Write to the child if there are typed characters.
4190 * Read from the child if there are characters available.
4196 * characters available and the child has exited.
4197 * Only check if the child has exited when there is no more
4198 * output. The child may exit before all the output has
4225 /* child */
4287 * Check if keys have been typed, write them to the child
4294 * Don't get characters when the child has already
4326 * Check for CTRL-C: send interrupt signal to child.
4327 * Check for CTRL-D: EOF, close pipe to child.
4333 * Send SIGINT to the child's group or all
4411 * Write the characters to the child, unless EOF has
4433 /* CTRL-C sends a signal to the child, we ignore it
4446 * Check if the child has any characters to be printed.
4557 /* If we already detected the child has finished break the
4563 * Check if the child still exists, before checking for
4610 * Wait until our child has exited.
4614 * child already exited.
4644 /* Make sure the child that writes to the external program is
5411 * get a name for the temp file
5484 * - Add the temp file name.
5485 * - Add the file name patterns.
5635 /* Something went wrong, perhaps a file name with a special char. */
5816 add_pathsep(p); /* add '/' to a directory name */
5980 if (link(src, dest) != 0) /* link file to new name */
5982 if (mch_remove(src) == 0) /* delete link to old name */
6366 /* try to find the name of this signal */
6370 EMSG2("E368: got SIG%s in libcall()", signal_info[i].name);
6540 Window root, child;
6577 XQueryPointer(xterm_dpy, x11_window, &root, &child, &root_x, &root_y,
6595 XQueryPointer(xterm_dpy, x11_window, &root, &child, &root_x, &root_y,
6953 smnameprop.name = "SmProgram";