From a98858ce4870c60982711687608a1ec14bf32093 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Thu, 1 Jul 2004 23:46:45 +0000 Subject: [PATCH] Remove unused file iauth.h and elaborate on why fileio.h is needed. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1085 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 6 ++++++ include/fileio.h | 2 ++ include/iauth.h | 36 ------------------------------------ 3 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 include/iauth.h diff --git a/ChangeLog b/ChangeLog index d4d341b..baedcdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-07-01 Michael Poole + + * include/fileio.h: Elaborate on "works for any file descriptor." + + * include/iauth.h: Remove unused file. + 2004-07-01 Michael Poole * include/map.h, ircd/map.c: Remove unused code. diff --git a/include/fileio.h b/include/fileio.h index f3c5300..f7bf6c2 100644 --- a/include/fileio.h +++ b/include/fileio.h @@ -17,6 +17,8 @@ struct stat; * FileBuf is a mirror of the ANSI FILE struct, but it works for any * file descriptor. FileBufs are allocated when a file is opened with * fbopen, and they are freed when the file is closed using fbclose. + * (Some OSes limit the range of file descriptors in a FILE*, for + * example to fit in "char".) */ typedef struct FileBuf FBFILE; diff --git a/include/iauth.h b/include/iauth.h deleted file mode 100644 index e980ac3..0000000 --- a/include/iauth.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - Internet Relay Chat, include/iauth.h - * Copyright (C) 2001 Perry Lorier - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 1, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * - * $Id$ - */ -#ifndef INCLUDED_iauth_h -#define INCLUDED_iauth_h - -struct Iauth { - struct Iauth* next; /* list node pointer */ - int fd; /* file descriptor */ - char* service; /* service name */ - int ref_count; /* number of connection references */ - unsigned char active; /* current state of iauth */ -}; - -extern struct Iauth* IauthPollList; /* GLOBAL - iauth list */ - - -#endif /* INCLUDED_iauth_h */ - -- 2.20.1