diff options
author | raf <none@none> | 2008-06-06 14:02:15 -0700 |
---|---|---|
committer | raf <none@none> | 2008-06-06 14:02:15 -0700 |
commit | 7257d1b4d25bfac0c802847390e98a464fd787ac (patch) | |
tree | c73fc17df920bc2ca9438c25fea3529890296afd /usr/src/lib/libmail/common | |
parent | 455903679f53d12d92035adc60bc7c3d95e6b6a2 (diff) | |
download | illumos-gate-7257d1b4d25bfac0c802847390e98a464fd787ac.tar.gz |
PSARC 2008/309 expunge synonyms.h
6700179 expunge synonyms.h
--HG--
rename : usr/src/cmd/sgs/libelf/common/syn.h => deleted_files/usr/src/cmd/sgs/libelf/common/syn.h
rename : usr/src/cmd/sgs/librtld/common/lintsup.c => deleted_files/usr/src/cmd/sgs/librtld/common/lintsup.c
rename : usr/src/cmd/sgs/rtld/common/_synonyms.h => deleted_files/usr/src/cmd/sgs/rtld/common/_synonyms.h
rename : usr/src/common/atomic/atomic_asm_weak.h => deleted_files/usr/src/common/atomic/atomic_asm_weak.h
rename : usr/src/lib/common/inc/c_synonyms.h => deleted_files/usr/src/lib/common/inc/c_synonyms.h
rename : usr/src/lib/libc/amd64/gen/lexp10.c => deleted_files/usr/src/lib/libc/amd64/gen/lexp10.c
rename : usr/src/lib/libc/amd64/gen/llog10.c => deleted_files/usr/src/lib/libc/amd64/gen/llog10.c
rename : usr/src/lib/libc/amd64/gen/ltostr.c => deleted_files/usr/src/lib/libc/amd64/gen/ltostr.c
rename : usr/src/lib/libc/i386/gen/lexp10.c => deleted_files/usr/src/lib/libc/i386/gen/lexp10.c
rename : usr/src/lib/libc/i386/gen/llog10.c => deleted_files/usr/src/lib/libc/i386/gen/llog10.c
rename : usr/src/lib/libc/i386/gen/ltostr.c => deleted_files/usr/src/lib/libc/i386/gen/ltostr.c
rename : usr/src/lib/libc/inc/synonyms.h => deleted_files/usr/src/lib/libc/inc/synonyms.h
rename : usr/src/lib/libc/sparcv9/gen/lexp10.c => deleted_files/usr/src/lib/libc/sparcv9/gen/lexp10.c
rename : usr/src/lib/libc/sparcv9/gen/llog10.c => deleted_files/usr/src/lib/libc/sparcv9/gen/llog10.c
rename : usr/src/lib/libc_psr/inc.flg => deleted_files/usr/src/lib/libc_psr/inc.flg
rename : usr/src/lib/libcrypt/inc/des_synonyms.h => deleted_files/usr/src/lib/libcrypt/inc/des_synonyms.h
rename : usr/src/lib/libgen/inc/gen_synonyms.h => deleted_files/usr/src/lib/libgen/inc/gen_synonyms.h
rename : usr/src/lib/libtsnet/common/synonyms.h => deleted_files/usr/src/lib/libtsnet/common/synonyms.h
rename : usr/src/tools/scripts/check_fnames.sh => deleted_files/usr/src/tools/scripts/check_fnames.sh
rename : usr/src/lib/libc/sparc/gen/lexp10.c => usr/src/lib/libc/port/gen/lexp10.c
rename : usr/src/lib/libc/sparc/gen/llog10.c => usr/src/lib/libc/port/gen/llog10.c
Diffstat (limited to 'usr/src/lib/libmail/common')
-rw-r--r-- | usr/src/lib/libmail/common/abspath.c | 16 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/casncmp.c | 15 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/copystream.c | 43 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/delempty.c | 15 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/getdomain.c | 17 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/maillock.c | 15 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/notifyu.c | 17 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/popenvp.c | 19 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/s_string.c | 18 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/setup_exec.c | 19 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/skipspace.c | 15 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/strmove.c | 15 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/substr.c | 18 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/systemvp.c | 19 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/trimnl.c | 17 | ||||
-rw-r--r-- | usr/src/lib/libmail/common/xgetenv.c | 15 |
16 files changed, 124 insertions, 169 deletions
diff --git a/usr/src/lib/libmail/common/abspath.c b/usr/src/lib/libmail/common/abspath.c index 9f2bfae895..644772ea01 100644 --- a/usr/src/lib/libmail/common/abspath.c +++ b/usr/src/lib/libmail/common/abspath.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,16 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ + /* * NAME * abspath - expand a path relative to some `.' @@ -43,7 +42,6 @@ * returned in "to". Otherwise, the value of "path" is * returned in "to". */ -#include "c_synonyms.h" #include "libmail.h" #include <sys/types.h> diff --git a/usr/src/lib/libmail/common/casncmp.c b/usr/src/lib/libmail/common/casncmp.c index 18a61eaf23..fc56d228ef 100644 --- a/usr/src/lib/libmail/common/casncmp.c +++ b/usr/src/lib/libmail/common/casncmp.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,16 +19,15 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ /* * NAME @@ -43,7 +41,6 @@ * Stop after n bytes or the trailing NUL. */ -#include "c_synonyms.h" #include "libmail.h" #include <ctype.h> #include <sys/types.h> diff --git a/usr/src/lib/libmail/common/copystream.c b/usr/src/lib/libmail/common/copystream.c index eb92f738bb..cdedd71382 100644 --- a/usr/src/lib/libmail/common/copystream.c +++ b/usr/src/lib/libmail/common/copystream.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,34 +19,32 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ /* - NAME - copystream - copy one FILE stream to another - - SYNOPSIS - int copystream(FILE *infp, FILE *outfp) - - DESCRIPTION - copystream() copies one stream to another. The stream - infp must be opened for reading and the stream outfp - must be opened for writing. - - It returns true if the stream is successively copied; - false if any writes fail. -*/ + * NAME + * copystream - copy one FILE stream to another + * + * SYNOPSIS + * int copystream(FILE *infp, FILE *outfp) + * + * DESCRIPTION + * copystream() copies one stream to another. The stream + * infp must be opened for reading and the stream outfp + * must be opened for writing. + * + * It returns true if the stream is successively copied; + * false if any writes fail. + */ -#include "c_synonyms.h" #include "libmail.h" #include <sys/types.h> diff --git a/usr/src/lib/libmail/common/delempty.c b/usr/src/lib/libmail/common/delempty.c index 49748593da..266b33b39b 100644 --- a/usr/src/lib/libmail/common/delempty.c +++ b/usr/src/lib/libmail/common/delempty.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,16 +19,15 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ /* * NAME @@ -45,7 +43,6 @@ * on the mode]. */ -#include "c_synonyms.h" #include "libmail.h" #include <sys/types.h> #include <unistd.h> diff --git a/usr/src/lib/libmail/common/getdomain.c b/usr/src/lib/libmail/common/getdomain.c index fc66e7f59c..6eada87322 100644 --- a/usr/src/lib/libmail/common/getdomain.c +++ b/usr/src/lib/libmail/common/getdomain.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include "libmail.h" #include <sys/types.h> #include <ctype.h> @@ -122,7 +119,7 @@ maildomain(void) /* if we've already been here, return the info */ if (domain != 0) - return (domain); + return (domain); domain = readdomain(dombuf+1, NMLN); diff --git a/usr/src/lib/libmail/common/maillock.c b/usr/src/lib/libmail/common/maillock.c index 6a0140620a..283e6b7472 100644 --- a/usr/src/lib/libmail/common/maillock.c +++ b/usr/src/lib/libmail/common/maillock.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include "maillock.h" #include <sys/types.h> #include <fcntl.h> diff --git a/usr/src/lib/libmail/common/notifyu.c b/usr/src/lib/libmail/common/notifyu.c index b4cb0ec119..9d4b7d4694 100644 --- a/usr/src/lib/libmail/common/notifyu.c +++ b/usr/src/lib/libmail/common/notifyu.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.4 */ -/*LINTLIBRARY*/ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + +#pragma ident "%Z%%M% %I% %E% SMI" -#include "c_synonyms.h" #include "libmail.h" #include <sys/types.h> #include <sys/stat.h> diff --git a/usr/src/lib/libmail/common/popenvp.c b/usr/src/lib/libmail/common/popenvp.c index 632c94de0f..a8c6faab76 100644 --- a/usr/src/lib/libmail/common/popenvp.c +++ b/usr/src/lib/libmail/common/popenvp.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,16 +19,15 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ /* * These routines are based on the standard UNIX stdio popen/pclose @@ -42,7 +40,6 @@ * quotes, etc. */ -#include "c_synonyms.h" #include <sys/types.h> #include <assert.h> #include <string.h> @@ -113,9 +110,9 @@ pclosevp(FILE *ptr) istat = signal(SIGINT, SIG_IGN); qstat = signal(SIGQUIT, SIG_IGN); hstat = signal(SIGHUP, SIG_IGN); - do + do { r = wait(&status); - while (r != popen_pid[f] && r != (pid_t)-1); + } while (r != popen_pid[f] && r != (pid_t)-1); if (r == (pid_t)-1) status = -1; diff --git a/usr/src/lib/libmail/common/s_string.c b/usr/src/lib/libmail/common/s_string.c index 5654f03eca..a57889d96a 100644 --- a/usr/src/lib/libmail/common/s_string.c +++ b/usr/src/lib/libmail/common/s_string.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include <sys/types.h> #include <stdio.h> #include <ctype.h> @@ -232,7 +229,8 @@ s_seq_read(FILE *fp, string *to, int lineortoken) return (NULL); case '#': /*LINTED*/ - while ((c = getc(fp)) != '\n' && c != EOF); + while ((c = getc(fp)) != '\n' && c != EOF) + continue; break; case ' ': case '\t': diff --git a/usr/src/lib/libmail/common/setup_exec.c b/usr/src/lib/libmail/common/setup_exec.c index b0efc3454e..f7fdfb3e45 100644 --- a/usr/src/lib/libmail/common/setup_exec.c +++ b/usr/src/lib/libmail/common/setup_exec.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include <sys/types.h> #include <ctype.h> #include "libmail.h" @@ -57,7 +54,7 @@ setup_exec(char *s) q = p; stop = FALSE; while (*q && (stop == FALSE)) { - again: + again: switch (*q) { case '\\': /* Slide command string 1 char to left */ @@ -65,7 +62,7 @@ setup_exec(char *s) break; case '"': ignorespace = ((ignorespace == TRUE) ? - FALSE : TRUE); + FALSE : TRUE); /* Slide command string 1 char to left */ strmove(q, q+1); goto again; diff --git a/usr/src/lib/libmail/common/skipspace.c b/usr/src/lib/libmail/common/skipspace.c index cbbc151852..2d44d22510 100644 --- a/usr/src/lib/libmail/common/skipspace.c +++ b/usr/src/lib/libmail/common/skipspace.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include <sys/types.h> #include "libmail.h" #include <ctype.h> diff --git a/usr/src/lib/libmail/common/strmove.c b/usr/src/lib/libmail/common/strmove.c index bb82e42c34..10079520f5 100644 --- a/usr/src/lib/libmail/common/strmove.c +++ b/usr/src/lib/libmail/common/strmove.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include <sys/types.h> #include "libmail.h" diff --git a/usr/src/lib/libmail/common/substr.c b/usr/src/lib/libmail/common/substr.c index e2589974fa..97ad4e90bf 100644 --- a/usr/src/lib/libmail/common/substr.c +++ b/usr/src/lib/libmail/common/substr.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include <sys/types.h> #include "libmail.h" @@ -51,7 +48,8 @@ substr(char *string1, char *string2) /*LINTED*/ len2 = (int)strlen(string2); for (i = 0; i < len1 - len2 + 1; i++) { - for (j = 0; j < len2 && string1[i+j] == string2[j]; j++); + for (j = 0; j < len2 && string1[i+j] == string2[j]; j++) + continue; if (j == len2) return (i); } diff --git a/usr/src/lib/libmail/common/systemvp.c b/usr/src/lib/libmail/common/systemvp.c index 4fb23af800..81f97e9c26 100644 --- a/usr/src/lib/libmail/common/systemvp.c +++ b/usr/src/lib/libmail/common/systemvp.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,14 +19,14 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + /* * These routines are based on the standard UNIX stdio popen/pclose * routines. This version takes an argv[][] argument instead of a string @@ -40,9 +39,7 @@ */ #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ -#include "c_synonyms.h" #include <sys/types.h> #include "libmail.h" #include <signal.h> @@ -66,9 +63,9 @@ systemvp(char *file, char **argv, int resetid) } istat = signal(SIGINT, SIG_IGN); qstat = signal(SIGQUIT, SIG_IGN); - do + do { w = wait(&status); - while (w != pid && w != (pid_t)-1); + } while (w != pid && w != (pid_t)-1); (void) signal(SIGINT, istat); (void) signal(SIGQUIT, qstat); return ((w == (pid_t)-1)? w: (pid_t)status); diff --git a/usr/src/lib/libmail/common/trimnl.c b/usr/src/lib/libmail/common/trimnl.c index 4f09d69036..c6bd0eb5e0 100644 --- a/usr/src/lib/libmail/common/trimnl.c +++ b/usr/src/lib/libmail/common/trimnl.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,18 +19,16 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.3 */ -/*LINTLIBRARY*/ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + +#pragma ident "%Z%%M% %I% %E% SMI" -#include "c_synonyms.h" #include <sys/types.h> #include "libmail.h" #include <string.h> diff --git a/usr/src/lib/libmail/common/xgetenv.c b/usr/src/lib/libmail/common/xgetenv.c index 5197a85d17..e29b7221a2 100644 --- a/usr/src/lib/libmail/common/xgetenv.c +++ b/usr/src/lib/libmail/common/xgetenv.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,16 +19,15 @@ * CDDL HEADER END */ -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" -/*LINTLIBRARY*/ /* * NAME @@ -66,7 +64,6 @@ * These values may be adjusted below. */ -#include "c_synonyms.h" #include <sys/types.h> #include "libmail.h" #include <stdio.h> |