Home
last modified time | relevance | path

Searched refs:basedev (Results 1 – 6 of 6) sorted by relevance

/external/iproute2/ip/
Dtunnel.c68 int tnl_get_ioctl(const char *basedev, void *p) in tnl_get_ioctl() argument
74 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl()
85 fprintf(stderr, "get tunnel \"%s\" failed: %s\n", basedev, in tnl_get_ioctl()
92 int tnl_add_ioctl(int cmd, const char *basedev, const char *name, void *p) in tnl_add_ioctl() argument
101 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl()
118 int tnl_del_ioctl(const char *basedev, const char *name, void *p) in tnl_del_ioctl() argument
127 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl()
Dtunnel.h28 int tnl_get_ioctl(const char *basedev, void *p);
29 int tnl_add_ioctl(int cmd, const char *basedev, const char *name, void *p);
30 int tnl_del_ioctl(const char *basedev, const char *name, void *p);
Dip6tunnel.c414 const char *basedev = "ip6tnl0"; in do_add() local
422 basedev = "ip6gre0"; in do_add()
424 basedev = "ip6_vti0"; in do_add()
426 return tnl_add_ioctl(cmd, basedev, p.name, &p); in do_add()
432 const char *basedev = "ip6tnl0"; in do_del() local
440 basedev = "ip6gre0"; in do_del()
442 basedev = "ip6_vti0"; in do_del()
444 return tnl_del_ioctl(basedev, p.name, &p); in do_del()
Diptunnel.c267 const char *basedev; in do_add() local
277 basedev = tnl_defname(&p); in do_add()
278 if (!basedev) { in do_add()
284 return tnl_add_ioctl(cmd, basedev, p.name, &p); in do_add()
453 const char *basedev; in do_show() local
459 basedev = tnl_defname(&p); in do_show()
460 if (!basedev) in do_show()
463 if (tnl_get_ioctl(p.name[0] ? p.name : basedev, &p)) in do_show()
/external/python/cpython2/Modules/
Dlinuxaudiodev.c84 char *basedev = NULL; in newladobject() local
92 if (!PyArg_ParseTuple(arg, "s|s:open", &basedev, &mode)) in newladobject()
95 mode = basedev; in newladobject()
96 basedev = NULL; in newladobject()
117 if (basedev == NULL) { /* called with one arg */ in newladobject()
118 basedev = getenv("AUDIODEV"); in newladobject()
119 if (basedev == NULL) /* $AUDIODEV not set */ in newladobject()
120 basedev = "/dev/dsp"; in newladobject()
123 if ((fd = open(basedev, imode)) == -1) { in newladobject()
124 PyErr_SetFromErrnoWithFilename(LinuxAudioError, basedev); in newladobject()
[all …]
Dsunaudiodev.c56 char* basedev; in newsadobject() local
81 basedev = getenv("AUDIODEV"); in newsadobject()
82 if (!basedev) in newsadobject()
83 basedev = "/dev/audio"; in newsadobject()
84 ctldev = PyMem_NEW(char, strlen(basedev) + 4); in newsadobject()
89 strcpy(ctldev, basedev); in newsadobject()
97 opendev = basedev; in newsadobject()
98 fd = open(basedev, imode); in newsadobject()