/* * Copyright (c) 1999-2003 Red Hat, Inc. All rights reserved. * * This software may be freely redistributed under the terms of the GNU * public license. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ #include #include #include #include #include #include #include int main(int argc, char **argv) { unsigned char twelve = 12; char *type; int maj, min, ret = 0, fg = -1; struct stat sb; fstat(0, &sb); maj = major(sb.st_rdev); min = minor(sb.st_rdev); if (maj != 3 && (maj < 136 || maj > 143)) { if ((fg = ioctl (0, TIOCLINUX, &twelve)) < 0) { type = "serial"; ret = 1; } else { #ifdef __powerpc__ int fd; char buf[65536]; fd = open("/proc/tty/drivers",O_RDONLY); read(fd, buf, 65535); if (strstr(buf,"vioconsole /dev/tty")) { type = "vio"; ret = 3; } else { type = "vt"; ret = 0; } #else type = "vt"; ret = 0; #endif } } else { type = "pty"; ret = 2; } if (argc > 1 && !strcmp(argv[1],"fg")) { if (fg < 0 || fg != (min-1)) return 1; return 0; } else { printf("%s\n",type); return ret; } } ='/web/forums/tree/phpBB/includes/utf/utf_normalizer.php?id=9fe8d05d5b6dd33c7f6e92c2a68da08864c86cea'>treecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-01-08 16:55:40 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-01-08 16:55:40 +0100
commit9fe8d05d5b6dd33c7f6e92c2a68da08864c86cea (patch)
treef6c0f07f1bd071a79881282f67bd9861017d6343 /phpBB/includes/utf/utf_normalizer.php
parent2ab7b124193ab87eeca8eef5d0e50eebd37d3336 (diff)
downloadforums-9fe8d05d5b6dd33c7f6e92c2a68da08864c86cea.tar
forums-9fe8d05d5b6dd33c7f6e92c2a68da08864c86cea.tar.gz
forums-9fe8d05d5b6dd33c7f6e92c2a68da08864c86cea.tar.bz2
forums-9fe8d05d5b6dd33c7f6e92c2a68da08864c86cea.tar.xz
forums-9fe8d05d5b6dd33c7f6e92c2a68da08864c86cea.zip
[ticket/14396] Use VCHAR_UNI and correct depends_on() version
PHPBB3-14396
Diffstat (limited to 'phpBB/includes/utf/utf_normalizer.php')
0 files changed, 0 insertions, 0 deletions