options.c (215567) | options.c (218306) |
---|---|
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[] = "@(#)options.c 8.2 (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[] = "@(#)options.c 8.2 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/options.c 215567 2010-11-20 14:14:52Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/options.c 218306 2011-02-04 22:47:55Z jilles $"); |
40 41#include <signal.h> 42#include <unistd.h> 43#include <stdlib.h> 44 45#include "shell.h" 46#define DEFINE_OPTIONS 47#include "options.h" --- 251 unchanged lines hidden (view full) --- 299 Vflag = 0; 300 } 301 return; 302 } 303 error("Illegal option -%c", flag); 304} 305 306 | 40 41#include <signal.h> 42#include <unistd.h> 43#include <stdlib.h> 44 45#include "shell.h" 46#define DEFINE_OPTIONS 47#include "options.h" --- 251 unchanged lines hidden (view full) --- 299 Vflag = 0; 300 } 301 return; 302 } 303 error("Illegal option -%c", flag); 304} 305 306 |
307 308#ifdef mkinit 309INCLUDE "options.h" 310 311SHELLPROC { 312 int i; 313 314 for (i = 0; i < NOPTS; i++) 315 optlist[i].val = 0; 316 optschanged(); 317 318} 319#endif 320 321 | |
322/* 323 * Set the shell parameters. 324 */ 325 326void 327setparam(char **argv) 328{ 329 char **newparam; --- 259 unchanged lines hidden --- | 307/* 308 * Set the shell parameters. 309 */ 310 311void 312setparam(char **argv) 313{ 314 char **newparam; --- 259 unchanged lines hidden --- |