miscbltin.c (194767) | miscbltin.c (201053) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)miscbltin.c 8.4 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)miscbltin.c 8.4 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/miscbltin.c 194767 2009-06-23 20:57:27Z kib $"); | 39__FBSDID("$FreeBSD: head/bin/sh/miscbltin.c 201053 2009-12-27 18:04:05Z jilles $"); |
40 41/* 42 * Miscellaneous builtins. 43 */ 44 45#include <sys/types.h> 46#include <sys/stat.h> 47#include <sys/time.h> --- 40 unchanged lines hidden (view full) --- 88int 89readcmd(int argc __unused, char **argv __unused) 90{ 91 char **ap; 92 int backslash; 93 char c; 94 int rflag; 95 char *prompt; | 40 41/* 42 * Miscellaneous builtins. 43 */ 44 45#include <sys/types.h> 46#include <sys/stat.h> 47#include <sys/time.h> --- 40 unchanged lines hidden (view full) --- 88int 89readcmd(int argc __unused, char **argv __unused) 90{ 91 char **ap; 92 int backslash; 93 char c; 94 int rflag; 95 char *prompt; |
96 char *ifs; | 96 const char *ifs; |
97 char *p; 98 int startword; 99 int status; 100 int i; 101 int is_ifs; 102 int saveall = 0; 103 struct timeval tv; 104 char *tvptr; --- 144 unchanged lines hidden (view full) --- 249 while (*++ap != NULL) 250 setvar(*ap, nullstr, 0); 251 return status; 252} 253 254 255 256int | 97 char *p; 98 int startword; 99 int status; 100 int i; 101 int is_ifs; 102 int saveall = 0; 103 struct timeval tv; 104 char *tvptr; --- 144 unchanged lines hidden (view full) --- 249 while (*++ap != NULL) 250 setvar(*ap, nullstr, 0); 251 return status; 252} 253 254 255 256int |
257umaskcmd(int argc __unused, char **argv) | 257umaskcmd(int argc __unused, char **argv __unused) |
258{ 259 char *ap; 260 int mask; 261 int i; 262 int symbolic_mode = 0; 263 264 while ((i = nextopt("S")) != '\0') { 265 symbolic_mode = 1; --- 235 unchanged lines hidden --- | 258{ 259 char *ap; 260 int mask; 261 int i; 262 int symbolic_mode = 0; 263 264 while ((i = nextopt("S")) != '\0') { 265 symbolic_mode = 1; --- 235 unchanged lines hidden --- |