pw.h (d6f907dc7a4aab1976e3040243e0242717dc13cb) | pw.h (48aee7f33a5dce843b51b7907af59573f8d3a7c4) |
---|---|
1/*- 2 * Copyright (c) 1996 by David L. Nugent <davidn@blaze.net.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 <unistd.h> 39#include <stdarg.h> 40#include <errno.h> 41#include <sys/types.h> 42#include <sys/stat.h> 43#include <pwd.h> 44#include <grp.h> 45#include <sys/queue.h> | 1/*- 2 * Copyright (c) 1996 by David L. Nugent <davidn@blaze.net.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 <unistd.h> 39#include <stdarg.h> 40#include <errno.h> 41#include <sys/types.h> 42#include <sys/stat.h> 43#include <pwd.h> 44#include <grp.h> 45#include <sys/queue.h> |
46#include <sysexits.h> |
|
46 47#include "psdate.h" 48 49enum _mode 50{ 51 M_ADD, 52 M_DELETE, 53 M_UPDATE, 54 M_PRINT, | 47 48#include "psdate.h" 49 50enum _mode 51{ 52 M_ADD, 53 M_DELETE, 54 M_UPDATE, 55 M_PRINT, |
56 M_NEXT, |
|
55 M_NUM 56}; 57 58enum _which 59{ 60 W_USER, 61 W_GROUP, 62 W_NUM 63}; 64 | 57 M_NUM 58}; 59 60enum _which 61{ 62 W_USER, 63 W_GROUP, 64 W_NUM 65}; 66 |
65enum _excode 66{ 67 X_ALLOK, 68 X_CMDERR, 69 X_PERMERR, 70 X_MEMERR, 71 X_NOUPDATE, 72 X_NOTFOUND, 73 X_UPDERROR, 74 X_TOOMANY, 75 X_EXISTS, 76 X_DBERROR, 77 X_CONFIG 78}; 79 | |
80struct carg 81{ 82 int ch; 83 char *val; 84 LIST_ENTRY(carg) list; 85}; 86 87extern LIST_HEAD(cargs, carg) arglist; --- 55 unchanged lines hidden --- | 67struct carg 68{ 69 int ch; 70 char *val; 71 LIST_ENTRY(carg) list; 72}; 73 74extern LIST_HEAD(cargs, carg) arglist; --- 55 unchanged lines hidden --- |