Lines Matching +defs:pathname +defs:device
473 static void set_owner(char *device, unsigned uid, unsigned gid, unsigned mode);
1940 my_pty_name(char *device)
1942 size_t len = strlen(device);
1946 int ch = device[len - 1];
1960 TRACE(("my_pty_name(%s) -> '%s'\n", device, device + len));
1961 return device + len;
1969 my_pty_id(char *device)
1971 char *name = my_pty_name(device);
1979 TRACE(("my_pty_id (%s) -> '%s'\n", NonNull(device), NonNull(leaf)));
1987 set_pty_id(char *device, char *id)
1989 char *name = my_pty_name(device);
1993 strcpy(my_pty_id(device), id);
1997 TRACE(("set_pty_id(%s) -> '%s'\n", id, device));
2051 my_utmp_id(char *device)
2068 * last three digits of the device name, regardless of the format of the
2069 * device name, with leading 0's added where necessary. For instance, an
2076 len = strlen(device);
2079 while ((n > 0) && (len > 0) && isdigit(device[len - 1]))
2080 result[--n] = device[--len];
2085 char *name = my_pty_name(device);
2094 TRACE(("my_utmp_id (%s) -> '%s'\n", device, result));
3177 * Use the clone device if it works, otherwise use pty_search logic.
3446 TRACE(("handshake %s %s errno=%d, error=%d device \"%s\"\n",
3478 TRACE(("HsSysError errno=%d, error=%d device \"%s\"\n",
3487 xtermWarning("fatal pty error errno=%d, error=%d device \"%s\"\n",
3535 set_owner(char *device, unsigned uid, unsigned gid, unsigned mode)
3541 device, (int) uid, (int) gid, (unsigned) mode));
3543 if (chown(device, (uid_t) uid, (gid_t) gid) < 0) {
3548 device, (long) uid, (long) gid);
3551 } else if (chmod(device, (mode_t) mode) < 0) {
3555 if (stat(device, &sb) < 0) {
3557 device, (unsigned) mode);
3560 device,
3723 ourValidShell(const char *pathname)
3726 int result = findValidShell(trimmed, pathname);
3733 validShell(const char *pathname)
3737 if (validProgram(pathname)) {
3745 if (!strcmp(q, pathname)) {
3753 result = ourValidShell(pathname);
3756 TRACE(("validShell %s ->%d\n", NonNull(pathname), result));
3764 validShell(const char *pathname)
3773 if (validProgram(pathname)) {
3789 result = findValidShell(blob, pathname);
3795 result = ourValidShell(pathname);
3797 TRACE(("validShell %s ->%d\n", NonNull(pathname), result));
4282 * utempter checks the ownership of the device; some implementations