# $NetBSD: string.m4,v 1.4 1995/09/28 05:38:03 tls Exp $ # # Copyright (c) 1989, 1993 # The Regents of the University of California. All rights reserved. # # This code is derived from software contributed to Berkeley by # Ozan Yigit. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the University of # California, Berkeley and its contributors. # 4. Neither the name of the University nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # @(#)string.m4 8.1 (Berkeley) 6/6/93 # define(string,`integer $1(len(substr($2,1))) str($1,substr($2,1),0) data $1(len(substr($2,1)))/EOS/ ') define(str,`ifelse($2,",,data $1(incr($3))/`LET'substr($2,0,1)/ `str($1,substr($2,1),incr($3))')') e00b6871cec94dea8be89818cb043e'>root/libexec/comsat
AgeCommit message (Expand)Author
2016-12-20s/users/user'sabhinav
2010-05-29Remove useless cast, probably motivated by an older and stupider lint.dholland
2010-05-29Update outdated comment (and docs) about which header lines are printed.dholland
2010-05-29Don't launder constdholland
2009-03-16Default to WARNS=4lukem
2009-03-14fix sign-compare issuelukem
2008-07-20Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2008-07-13Clarify how one is supposed to use the pointers returned by getutentries()dholland
2007-05-03PR/36266: David A. Holland: Don't read and write sig_atomic_t variables inchristos
2007-02-21Remove unnecessary ctype.h from libexec/comsat/comsat.c filehubertf
2005-07-18Don't do things you are not supposed to inside a signal handler.christos
2005-05-07PR/30170: Markus W Kilbinger: src/libexec/comsat complains about: '/' inchristos
2004-09-15Fix off by one reported by David A. Holland in PR bin/26778.martin
2004-07-10Whitespace nits.enami
2004-07-10Use strtoimax rather than strtol to parse a number which representsenami
2004-07-10stat the right file.christos
2004-07-10No need to pretty print the errno with err() or warn().enami
2004-06-252004, not 1994.wiz
2004-06-25Forgot to include utmpx support for this one.christos
2003-09-19realloc mistake. from openbsditojun
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2003-01-16Rename `sigset' locals to avoid symbol shadowing warning.kleink
2002-09-29Begin new sentences on new lines.wiz
2002-03-18strncpy() -> strlcpy()mjl
2002-01-15Sort sections.wiz
2001-04-02ignore trailing newline which is included in the message from mail.local.onoe
2001-03-16Use strtol() instead of atoi() for reading the number out of theatatat
2001-03-14Fix output to a tty that is missing ONLCR (eg emacs, vi, mutt,atatat
2001-02-19convert to use getprogname()cgd
2001-02-04fix nested externchristos
2000-10-04Un-__P and ANSIfy.mjl
2000-10-04No \n in syslog messages.mjl
2000-08-22Use sockaddr_storage.mjl
2000-08-14remove extra periodmsaitoh
1999-03-22More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled