/dports/graphics/aloadimage/arcan-0.6.1/src/platform/wscons/ |
H A D | libbacklight.c | 17 static int console_fd = -1; variable 22 if (!backlight || -1 == console_fd) in backlight_get_brightness() 29 if (-1 == ioctl(console_fd, WSDISPLAYIO_GETPARAM, &disp)) in backlight_get_brightness() 37 if (!backlight || -1 == console_fd) in backlight_get_max_brightness() 44 if (-1 == ioctl(console_fd, WSDISPLAYIO_GETPARAM, &disp)) in backlight_get_max_brightness() 57 if (!backlight || -1 == console_fd) in backlight_set_brightness() 65 return ioctl(console_fd, WSDISPLAYIO_SETPARAM, &disp); in backlight_set_brightness() 77 close(console_fd); in backlight_destroy() 78 console_fd = -1; in backlight_destroy() 91 if (-1 == console_fd) in backlight_init() [all …]
|
/dports/sysutils/acfgfs/arcan-0.6.1/src/platform/wscons/ |
H A D | libbacklight.c | 17 static int console_fd = -1; variable 22 if (!backlight || -1 == console_fd) in backlight_get_brightness() 29 if (-1 == ioctl(console_fd, WSDISPLAYIO_GETPARAM, &disp)) in backlight_get_brightness() 37 if (!backlight || -1 == console_fd) in backlight_get_max_brightness() 44 if (-1 == ioctl(console_fd, WSDISPLAYIO_GETPARAM, &disp)) in backlight_get_max_brightness() 57 if (!backlight || -1 == console_fd) in backlight_set_brightness() 65 return ioctl(console_fd, WSDISPLAYIO_SETPARAM, &disp); in backlight_set_brightness() 77 close(console_fd); in backlight_destroy() 78 console_fd = -1; in backlight_destroy() 91 if (-1 == console_fd) in backlight_init() [all …]
|
/dports/x11/arcan-trayicon/arcan-0.6.1/src/platform/wscons/ |
H A D | libbacklight.c | 17 static int console_fd = -1; variable 22 if (!backlight || -1 == console_fd) in backlight_get_brightness() 29 if (-1 == ioctl(console_fd, WSDISPLAYIO_GETPARAM, &disp)) in backlight_get_brightness() 37 if (!backlight || -1 == console_fd) in backlight_get_max_brightness() 44 if (-1 == ioctl(console_fd, WSDISPLAYIO_GETPARAM, &disp)) in backlight_get_max_brightness() 57 if (!backlight || -1 == console_fd) in backlight_set_brightness() 65 return ioctl(console_fd, WSDISPLAYIO_SETPARAM, &disp); in backlight_set_brightness() 77 close(console_fd); in backlight_destroy() 78 console_fd = -1; in backlight_destroy() 91 if (-1 == console_fd) in backlight_init() [all …]
|
/dports/x11/aclip/arcan-0.6.1/src/platform/wscons/ |
H A D | libbacklight.c | 17 static int console_fd = -1; variable 22 if (!backlight || -1 == console_fd) in backlight_get_brightness() 29 if (-1 == ioctl(console_fd, WSDISPLAYIO_GETPARAM, &disp)) in backlight_get_brightness() 37 if (!backlight || -1 == console_fd) in backlight_get_max_brightness() 44 if (-1 == ioctl(console_fd, WSDISPLAYIO_GETPARAM, &disp)) in backlight_get_max_brightness() 57 if (!backlight || -1 == console_fd) in backlight_set_brightness() 65 return ioctl(console_fd, WSDISPLAYIO_SETPARAM, &disp); in backlight_set_brightness() 77 close(console_fd); in backlight_destroy() 78 console_fd = -1; in backlight_destroy() 91 if (-1 == console_fd) in backlight_init() [all …]
|
/dports/print/ghostscript7-base/ghostscript-7.07/src/ |
H A D | gdevsco.c | 73 if (console_fd != -1) in open_console() 78 console_fd = open(dev, 0); in open_console() 79 if (console_fd == -1) { in open_console() 97 if (console_fd == -1) in outportb() 105 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outportb() 121 if (console_fd == -1) in outport2() 131 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outport2() 212 mode = ioctl(console_fd, CONS_CURRENT, 0L); in pcfb_get_state() 257 i = ioctl(console_fd, mode, 0L); in pcfb_set_mode() 259 i = ioctl(console_fd, mode1, 0L); in pcfb_set_mode() [all …]
|
/dports/print/ghostscript9-base/ghostscript-9.06/base/ |
H A D | gdevsco.c | 70 if (console_fd != -1) in open_console() 75 console_fd = open(dev, 0); in open_console() 76 if (console_fd == -1) { in open_console() 94 if (console_fd == -1) in outportb() 102 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outportb() 118 if (console_fd == -1) in outport2() 128 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outport2() 209 mode = ioctl(console_fd, CONS_CURRENT, 0L); in pcfb_get_state() 254 i = ioctl(console_fd, mode, 0L); in pcfb_set_mode() 256 i = ioctl(console_fd, mode1, 0L); in pcfb_set_mode() [all …]
|
/dports/print/ghostscript9-x11/ghostscript-9.06/base/ |
H A D | gdevsco.c | 70 if (console_fd != -1) in open_console() 75 console_fd = open(dev, 0); in open_console() 76 if (console_fd == -1) { in open_console() 94 if (console_fd == -1) in outportb() 102 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outportb() 118 if (console_fd == -1) in outport2() 128 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outport2() 209 mode = ioctl(console_fd, CONS_CURRENT, 0L); in pcfb_get_state() 254 i = ioctl(console_fd, mode, 0L); in pcfb_set_mode() 256 i = ioctl(console_fd, mode1, 0L); in pcfb_set_mode() [all …]
|
/dports/print/ghostscript8-base/ghostscript-8.71/base/ |
H A D | gdevsco.c | 68 if (console_fd != -1) in open_console() 73 console_fd = open(dev, 0); in open_console() 74 if (console_fd == -1) { in open_console() 92 if (console_fd == -1) in outportb() 100 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outportb() 116 if (console_fd == -1) in outport2() 126 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outport2() 207 mode = ioctl(console_fd, CONS_CURRENT, 0L); in pcfb_get_state() 252 i = ioctl(console_fd, mode, 0L); in pcfb_set_mode() 254 i = ioctl(console_fd, mode1, 0L); in pcfb_set_mode() [all …]
|
/dports/print/ghostscript8-x11/ghostscript-8.71/base/ |
H A D | gdevsco.c | 68 if (console_fd != -1) in open_console() 73 console_fd = open(dev, 0); in open_console() 74 if (console_fd == -1) { in open_console() 92 if (console_fd == -1) in outportb() 100 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outportb() 116 if (console_fd == -1) in outport2() 126 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outport2() 207 mode = ioctl(console_fd, CONS_CURRENT, 0L); in pcfb_get_state() 252 i = ioctl(console_fd, mode, 0L); in pcfb_set_mode() 254 i = ioctl(console_fd, mode1, 0L); in pcfb_set_mode() [all …]
|
/dports/print/ghostscript7-x11/ghostscript-7.07/src/ |
H A D | gdevsco.c | 73 if (console_fd != -1) in open_console() 78 console_fd = open(dev, 0); in open_console() 79 if (console_fd == -1) { in open_console() 97 if (console_fd == -1) in outportb() 105 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outportb() 121 if (console_fd == -1) in outport2() 131 i = ioctl(console_fd, CONSIO, (long)(&pio)); in outport2() 212 mode = ioctl(console_fd, CONS_CURRENT, 0L); in pcfb_get_state() 257 i = ioctl(console_fd, mode, 0L); in pcfb_set_mode() 259 i = ioctl(console_fd, mode1, 0L); in pcfb_set_mode() [all …]
|
/dports/devel/sdl20/SDL2-2.0.18/src/core/freebsd/ |
H A D | SDL_evdev_kbd_freebsd.c | 50 int console_fd; member 101 ioctl(kbd->console_fd, CONS_MOUSECTL, &mData); in kbd_cleanup() 249 ioctl(kbd->console_fd, KDGKBINFO, kbd->kbInfo); in SDL_EVDEV_kbd_init() 250 ioctl(kbd->console_fd, CONS_MOUSECTL, &mData); in SDL_EVDEV_kbd_init() 252 if (ioctl(kbd->console_fd, KDGKBSTATE, &flag_state) == 0) { in SDL_EVDEV_kbd_init() 275 ioctl(kbd->console_fd, CONS_RELKBD, 1ul); in SDL_EVDEV_kbd_init() 282 kbd->keyboard_fd = kbd->console_fd; in SDL_EVDEV_kbd_init() 293 else kbd->keyboard_fd = kbd->console_fd; in SDL_EVDEV_kbd_init() 309 ioctl(kbd->console_fd, CONS_MOUSECTL, &mData); in SDL_EVDEV_kbd_quit() 318 if (kbd->console_fd != kbd->keyboard_fd && kbd->console_fd >= 0) in SDL_EVDEV_kbd_quit() [all …]
|
/dports/x11/controllermap/SDL2-2.0.18/src/core/freebsd/ |
H A D | SDL_evdev_kbd_freebsd.c | 50 int console_fd; member 101 ioctl(kbd->console_fd, CONS_MOUSECTL, &mData); in kbd_cleanup() 249 ioctl(kbd->console_fd, KDGKBINFO, kbd->kbInfo); in SDL_EVDEV_kbd_init() 250 ioctl(kbd->console_fd, CONS_MOUSECTL, &mData); in SDL_EVDEV_kbd_init() 252 if (ioctl(kbd->console_fd, KDGKBSTATE, &flag_state) == 0) { in SDL_EVDEV_kbd_init() 275 ioctl(kbd->console_fd, CONS_RELKBD, 1ul); in SDL_EVDEV_kbd_init() 282 kbd->keyboard_fd = kbd->console_fd; in SDL_EVDEV_kbd_init() 293 else kbd->keyboard_fd = kbd->console_fd; in SDL_EVDEV_kbd_init() 309 ioctl(kbd->console_fd, CONS_MOUSECTL, &mData); in SDL_EVDEV_kbd_quit() 318 if (kbd->console_fd != kbd->keyboard_fd && kbd->console_fd >= 0) in SDL_EVDEV_kbd_quit() [all …]
|
/dports/devel/sdl12/SDL-1.2.15/src/video/ps2gs/ |
H A D | SDL_gsvideo.c | 289 if ( console_fd < 0 ) { in GS_VideoInit() 295 close(console_fd); in GS_VideoInit() 296 console_fd = -1; in GS_VideoInit() 303 close(console_fd); in GS_VideoInit() 304 console_fd = -1; in GS_VideoInit() 632 ioctl(console_fd, PS2IOC_SENDQCT, 1); in GS_DMAFullUpdate() 645 loadimage_nonblock(console_fd, in GS_DMAFullUpdate() 650 ioctl(console_fd, PS2IOC_SENDQCT, 1); in GS_DMAFullUpdate() 669 if ( console_fd > 0 ) { in GS_VideoQuit() 684 close(console_fd); in GS_VideoQuit() [all …]
|
H A D | SDL_gsvideo.h | 43 int console_fd; member 71 #define console_fd (this->hidden->console_fd) macro
|
H A D | SDL_gsmouse.c | 65 ioctl(console_fd, PS2IOC_SENDQCT, 1); in GS_MoveCursor() 114 ioctl(console_fd, PS2IOC_LOADIMAGE, &image); in GS_MoveCursor() 118 scaleimage_nonblock(console_fd, in GS_MoveCursor()
|
/dports/devel/allegro/allegro-4.4.3.1/src/linux/ |
H A D | lconsole.c | 98 int tty, console_fd, fd, child; in init_console() local 121 if ((console_fd = open ("/dev/console", O_WRONLY)) < 0) { in init_console() 129 if ((console_fd = open (tty_name, O_WRONLY)) >= 0) break; in init_console() 135 if (ioctl (console_fd, VT_GETSTATE, &vts)) { in init_console() 137 close (console_fd); in init_console() 166 close (console_fd); in init_console() 177 close (console_fd); in init_console() 190 close (console_fd); in init_console()
|
/dports/devel/allegro5/allegro5-5.2.7.0/src/linux/ |
H A D | lconsole.c | 98 int tty, console_fd, fd, child; in init_console() local 121 if ((console_fd = open ("/dev/console", O_WRONLY)) < 0) { in init_console() 129 if ((console_fd = open (tty_name, O_WRONLY)) >= 0) in init_console() 137 if (ioctl (console_fd, VT_GETSTATE, &vts)) { in init_console() 139 close (console_fd); in init_console() 168 close (console_fd); in init_console() 179 close (console_fd); in init_console() 192 close (console_fd); in init_console()
|
/dports/misc/mc/mc-4.8.27/src/consaver/ |
H A D | cons.saver.c | 162 int console_fd, vcsa_fd, console_minor, buffer_size; in main() local 184 console_fd = open (tty_name, O_RDONLY); in main() 185 if (console_fd < 0) in main() 187 if (fstat (console_fd, &st) < 0 || !S_ISCHR (st.st_mode)) in main() 235 if (ioctl (console_fd, TIOCGWINSZ, &winsz) < 0 in main() 257 || fstat (console_fd, &st) < 0 || st.st_uid != uid in main() 259 || fstat (console_fd, &st) < 0 || st.st_uid != uid) in main() 266 && lseek (vcsa_fd, 0, 0) == 0 && fstat (console_fd, &st) >= 0 && st.st_uid == uid) in main()
|
/dports/misc/mc-nox11/mc-4.8.27/src/consaver/ |
H A D | cons.saver.c | 162 int console_fd, vcsa_fd, console_minor, buffer_size; in main() local 184 console_fd = open (tty_name, O_RDONLY); in main() 185 if (console_fd < 0) in main() 187 if (fstat (console_fd, &st) < 0 || !S_ISCHR (st.st_mode)) in main() 235 if (ioctl (console_fd, TIOCGWINSZ, &winsz) < 0 in main() 257 || fstat (console_fd, &st) < 0 || st.st_uid != uid in main() 259 || fstat (console_fd, &st) < 0 || st.st_uid != uid) in main() 266 && lseek (vcsa_fd, 0, 0) == 0 && fstat (console_fd, &st) >= 0 && st.st_uid == uid) in main()
|
/dports/devel/sdl20/SDL2-2.0.18/src/core/linux/ |
H A D | SDL_evdev_kbd.c | 89 int console_fd; member 172 if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_kbd_load_keymaps() 188 if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_kbd_load_keymaps() 219 ioctl(kbd->console_fd, KDSKBMODE, kbd->old_kbd_mode); in kbd_cleanup() 357 kbd->console_fd = open("/dev/tty", O_RDONLY | O_CLOEXEC); in SDL_EVDEV_kbd_init() 363 if (ioctl(kbd->console_fd, KDGKBLED, &flag_state) == 0) { in SDL_EVDEV_kbd_init() 375 ioctl(kbd->console_fd, KDSKBMODE, K_UNICODE); in SDL_EVDEV_kbd_init() 393 ioctl(kbd->console_fd, KDSKBMODE, K_OFF); in SDL_EVDEV_kbd_init() 422 if (kbd->console_fd >= 0) { in SDL_EVDEV_kbd_quit() 426 close(kbd->console_fd); in SDL_EVDEV_kbd_quit() [all …]
|
/dports/x11/controllermap/SDL2-2.0.18/src/core/linux/ |
H A D | SDL_evdev_kbd.c | 89 int console_fd; member 172 if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_kbd_load_keymaps() 188 if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_kbd_load_keymaps() 219 ioctl(kbd->console_fd, KDSKBMODE, kbd->old_kbd_mode); in kbd_cleanup() 357 kbd->console_fd = open("/dev/tty", O_RDONLY | O_CLOEXEC); in SDL_EVDEV_kbd_init() 363 if (ioctl(kbd->console_fd, KDGKBLED, &flag_state) == 0) { in SDL_EVDEV_kbd_init() 375 ioctl(kbd->console_fd, KDSKBMODE, K_UNICODE); in SDL_EVDEV_kbd_init() 393 ioctl(kbd->console_fd, KDSKBMODE, K_OFF); in SDL_EVDEV_kbd_init() 422 if (kbd->console_fd >= 0) { in SDL_EVDEV_kbd_quit() 426 close(kbd->console_fd); in SDL_EVDEV_kbd_quit() [all …]
|
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/SDL/src/core/linux/ |
H A D | SDL_evdev_kbd.c | 86 int console_fd; member 169 if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_kbd_load_keymaps() 185 if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_kbd_load_keymaps() 209 kbd->console_fd = open("/dev/tty", O_RDONLY); in SDL_EVDEV_kbd_init() 216 if (ioctl(kbd->console_fd, KDGKBLED, &flag_state) == 0) { in SDL_EVDEV_kbd_init() 228 ioctl(kbd->console_fd, KDSKBMODE, K_UNICODE); in SDL_EVDEV_kbd_init() 244 ioctl(kbd->console_fd, KDSKBMODE, K_OFF); in SDL_EVDEV_kbd_init() 263 if (kbd->console_fd >= 0) { in SDL_EVDEV_kbd_quit() 265 ioctl(kbd->console_fd, KDSKBMODE, kbd->old_kbd_mode); in SDL_EVDEV_kbd_quit() 267 close(kbd->console_fd); in SDL_EVDEV_kbd_quit() [all …]
|
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/core/linux/ |
H A D | SDL_evdev_kbd.c | 86 int console_fd; member 169 if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_kbd_load_keymaps() 185 if (ioctl(kbd->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_kbd_load_keymaps() 210 kbd->console_fd = open("/dev/tty", O_RDONLY); in SDL_EVDEV_kbd_init() 216 if (ioctl(kbd->console_fd, KDGKBLED, &flag_state) == 0) { in SDL_EVDEV_kbd_init() 228 ioctl(kbd->console_fd, KDSKBMODE, K_UNICODE); in SDL_EVDEV_kbd_init() 244 ioctl(kbd->console_fd, KDSKBMODE, K_OFF); in SDL_EVDEV_kbd_init() 263 if (kbd->console_fd >= 0) { in SDL_EVDEV_kbd_quit() 265 ioctl(kbd->console_fd, KDSKBMODE, kbd->old_kbd_mode); in SDL_EVDEV_kbd_quit() 267 close(kbd->console_fd); in SDL_EVDEV_kbd_quit() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/SDL2/src/core/linux/ |
H A D | SDL_evdev.c | 101 int console_fd; member 248 _this->console_fd = SDL_EVDEV_get_active_tty(); in SDL_EVDEV_Init() 252 SDL_EVDEV_mute_keyboard(_this->console_fd, &_this->kb_mode); in SDL_EVDEV_Init() 275 if (_this->console_fd >= 0) { in SDL_EVDEV_Quit() 276 SDL_EVDEV_unmute_keyboard(_this->console_fd, _this->kb_mode); in SDL_EVDEV_Quit() 277 close(_this->console_fd); in SDL_EVDEV_Quit() 329 if (_this->console_fd < 0) in SDL_EVDEV_do_text_input() 333 if (ioctl(_this->console_fd, TIOCLINUX, &shift_state) < 0) { in SDL_EVDEV_do_text_input() 341 if (ioctl(_this->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_do_text_input() 371 if (ioctl(_this->console_fd, KDGKBLED, &locks_state) < 0) { in SDL_EVDEV_do_text_input() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/SDL2/src/core/linux/ |
H A D | SDL_evdev.c | 101 int console_fd; member 248 _this->console_fd = SDL_EVDEV_get_active_tty(); in SDL_EVDEV_Init() 252 SDL_EVDEV_mute_keyboard(_this->console_fd, &_this->kb_mode); in SDL_EVDEV_Init() 275 if (_this->console_fd >= 0) { in SDL_EVDEV_Quit() 276 SDL_EVDEV_unmute_keyboard(_this->console_fd, _this->kb_mode); in SDL_EVDEV_Quit() 277 close(_this->console_fd); in SDL_EVDEV_Quit() 329 if (_this->console_fd < 0) in SDL_EVDEV_do_text_input() 333 if (ioctl(_this->console_fd, TIOCLINUX, &shift_state) < 0) { in SDL_EVDEV_do_text_input() 341 if (ioctl(_this->console_fd, KDGKBENT, &kbe) < 0) { in SDL_EVDEV_do_text_input() 371 if (ioctl(_this->console_fd, KDGKBLED, &locks_state) < 0) { in SDL_EVDEV_do_text_input() [all …]
|