Home
last modified time | relevance | path

Searched refs:namebuf (Results 1 – 9 of 9) sorted by relevance

/external/dropbear/
Dsshpty.c49 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) in pty_allocate() argument
67 strlcpy(namebuf, name, namebuflen); /* possible truncation */ in pty_allocate()
83 strlcpy(namebuf, slave, namebuflen); in pty_allocate()
85 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
125 strlcpy(namebuf, pts, namebuflen); in pty_allocate()
129 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
132 "error opening pts %.100s: %.100s", namebuf, strerror(errno)); in pty_allocate()
172 strlcpy(namebuf, name, namebuflen); in pty_allocate()
196 snprintf(namebuf, namebuflen, "/dev/tty%c%c", in pty_allocate()
203 snprintf(namebuf, namebuflen, "/dev/ttyp%d", i); in pty_allocate()
[all …]
Dscp.c939 static char *namebuf; local
945 if (namebuf)
946 xfree(namebuf);
947 namebuf = xmalloc(need);
950 (void) snprintf(namebuf, need, "%s%s%s", targ,
952 np = namebuf;
Dsvr-chansession.c526 unsigned char namebuf[65]; in sessionpty() local
540 if (pty_allocate(&chansess->master, &chansess->slave, namebuf, 64) == 0) { in sessionpty()
545 chansess->tty = (char*)m_strdup(namebuf); in sessionpty()
/external/qemu/distrib/sdl-1.2.12/src/joystick/linux/
DSDL_sysjoystick.c348 static void LogicalSuffix(int logicalno, char* namebuf, int len) in LogicalSuffix() argument
355 slen = SDL_strlen(namebuf); in LogicalSuffix()
362 namebuf[slen++] = ' '; in LogicalSuffix()
363 namebuf[slen++] = '#'; in LogicalSuffix()
364 namebuf[slen++] = suffix[0]; in LogicalSuffix()
365 namebuf[slen++] = suffix[1]; in LogicalSuffix()
366 namebuf[slen++] = 0; in LogicalSuffix()
503 static char namebuf[128]; in SDL_SYS_JoystickName() local
515 (ioctl(fd, EVIOCGNAME(sizeof(namebuf)), namebuf) <= 0) && in SDL_SYS_JoystickName()
517 (ioctl(fd, JSIOCGNAME(sizeof(namebuf)), namebuf) <= 0) ) { in SDL_SYS_JoystickName()
[all …]
/external/grub/stage2/
Dfsys_jfs.c282 char namebuf[JFS_NAME_MAX + 1], linkbuf[JFS_PATH_MAX]; in jfs_dir() local
339 uni2ansi (de->name, namebuf, namlen); in jfs_dir()
340 namebuf[namlen] = 0; in jfs_dir()
342 uni2ansi (de->name, namebuf, DTLHDRDATALEN); in jfs_dir()
343 ptr = namebuf; in jfs_dir()
358 cmp = (!*dirname) ? -1 : substring (dirname, namebuf); in jfs_dir()
364 print_a_completion (namebuf); in jfs_dir()
/external/qemu/distrib/sdl-1.2.12/src/audio/
DSDL_audio.c388 char *SDL_AudioDriverName(char *namebuf, int maxlen) in SDL_AudioDriverName() argument
391 SDL_strlcpy(namebuf, current_audio->name, maxlen); in SDL_AudioDriverName()
392 return(namebuf); in SDL_AudioDriverName()
/external/qemu/distrib/sdl-1.2.12/include/
DSDL_audio.h109 extern DECLSPEC char * SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
DSDL_video.h247 extern DECLSPEC char * SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_video.c281 char *SDL_VideoDriverName(char *namebuf, int maxlen) in SDL_VideoDriverName() argument
284 SDL_strlcpy(namebuf, current_video->name, maxlen); in SDL_VideoDriverName()
285 return(namebuf); in SDL_VideoDriverName()