2N/A * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * percent_x() takes a string and performs %<char> expansions. It aborts the 2N/A * program when the expansion would overflow the output buffer. The result 2N/A * of %<char> expansion may be passed on to a shell process. For this 2N/A * reason, characters with a special meaning to shells are replaced by 2N/A * Diagnostics are reported through syslog(3). 2N/A * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. 2N/A/* System libraries. */ 2N/A/* percent_x - do %<char> expansion, abort if result buffer is too small */ 2N/Aabcdefghijklmnopqrstuvwxyz\ 2N/AABCDEFGHIJKLMNOPQRSTUVWXYZ";
2N/A * Warning: we may be called from a child process or after pattern 2N/A * matching, so we cannot use clean_exit() or tcpd_jump().