mktemp.c (92921) | mktemp.c (200420) |
---|---|
1/*- 2 * Copyright (c) 1994, 1995, 1996, 1998 Peter Wemm <peter@netplex.com.au> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 29 unchanged lines hidden (view full) --- 38#include <paths.h> 39#include <stdio.h> 40#include <stdlib.h> 41#include <string.h> 42#include <unistd.h> 43 44#ifndef lint 45static const char rcsid[] = | 1/*- 2 * Copyright (c) 1994, 1995, 1996, 1998 Peter Wemm <peter@netplex.com.au> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 29 unchanged lines hidden (view full) --- 38#include <paths.h> 39#include <stdio.h> 40#include <stdlib.h> 41#include <string.h> 42#include <unistd.h> 43 44#ifndef lint 45static const char rcsid[] = |
46 "$FreeBSD: head/usr.bin/mktemp/mktemp.c 92921 2002-03-22 01:33:25Z imp $"; | 46 "$FreeBSD: head/usr.bin/mktemp/mktemp.c 200420 2009-12-11 23:35:38Z delphij $"; |
47#endif /* not lint */ 48 49static void usage(void); 50 51int 52main(int argc, char **argv) 53{ 54 int c, fd, ret; --- 83 unchanged lines hidden (view full) --- 138 if (name) 139 free(name); 140 name = NULL; 141 } 142 return (ret); 143} 144 145static void | 47#endif /* not lint */ 48 49static void usage(void); 50 51int 52main(int argc, char **argv) 53{ 54 int c, fd, ret; --- 83 unchanged lines hidden (view full) --- 138 if (name) 139 free(name); 140 name = NULL; 141 } 142 return (ret); 143} 144 145static void |
146usage() | 146usage(void) |
147{ 148 fprintf(stderr, 149 "usage: mktemp [-d] [-q] [-t prefix] [-u] template ...\n"); 150 fprintf(stderr, 151 " mktemp [-d] [-q] [-u] -t prefix \n"); 152 exit (1); 153} | 147{ 148 fprintf(stderr, 149 "usage: mktemp [-d] [-q] [-t prefix] [-u] template ...\n"); 150 fprintf(stderr, 151 " mktemp [-d] [-q] [-u] -t prefix \n"); 152 exit (1); 153} |