local.h (98121) | local.h (110560) |
---|---|
1/* 2 * Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Chris Torek. 9 * 10 * By using this file, you agree to the terms and conditions set 11 * forth in the LICENSE file which can be found at the top level of 12 * the sendmail distribution. 13 * | 1/* 2 * Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Chris Torek. 9 * 10 * By using this file, you agree to the terms and conditions set 11 * forth in the LICENSE file which can be found at the top level of 12 * the sendmail distribution. 13 * |
14 * $Id: local.h,v 1.51 2002/02/20 02:40:24 ca Exp $ | 14 * $Id: local.h,v 1.51.2.1 2002/09/09 21:38:08 gshapiro Exp $ |
15 */ 16 17/* 18** Information local to this implementation of stdio, 19** in particular, macros and private variables. 20*/ 21 22#include <sys/time.h> --- 251 unchanged lines hidden (view full) --- 274 errno = EINVAL; \ 275 return SM_IO_EOF; \ 276 } \ 277 else \ 278 { \ 279 sm_io_to.tv_sec = (to) / 1000; \ 280 sm_io_to.tv_usec = ((to) - (sm_io_to.tv_sec * 1000)) * 10; \ 281 } \ | 15 */ 16 17/* 18** Information local to this implementation of stdio, 19** in particular, macros and private variables. 20*/ 21 22#include <sys/time.h> --- 251 unchanged lines hidden (view full) --- 274 errno = EINVAL; \ 275 return SM_IO_EOF; \ 276 } \ 277 else \ 278 { \ 279 sm_io_to.tv_sec = (to) / 1000; \ 280 sm_io_to.tv_usec = ((to) - (sm_io_to.tv_sec * 1000)) * 10; \ 281 } \ |
282 if (FD_SETSIZE > 0 && (fd) >= FD_SETSIZE) \ 283 { \ 284 errno = EINVAL; \ 285 return SM_IO_EOF; \ 286 } \ |
|
282 FD_ZERO(&sm_io_to_mask); \ 283 FD_SET((fd), &sm_io_to_mask); \ 284 FD_ZERO(&sm_io_x_mask); \ 285 FD_SET((fd), &sm_io_x_mask); \ 286 if (gettimeofday(&sm_io_to_before, NULL) < 0) \ 287 return SM_IO_EOF; \ 288 sm_io_to_sel = select((fd) + 1, NULL, &sm_io_to_mask, &sm_io_x_mask, \ 289 &sm_io_to); \ --- 35 unchanged lines hidden --- | 287 FD_ZERO(&sm_io_to_mask); \ 288 FD_SET((fd), &sm_io_to_mask); \ 289 FD_ZERO(&sm_io_x_mask); \ 290 FD_SET((fd), &sm_io_x_mask); \ 291 if (gettimeofday(&sm_io_to_before, NULL) < 0) \ 292 return SM_IO_EOF; \ 293 sm_io_to_sel = select((fd) + 1, NULL, &sm_io_to_mask, &sm_io_x_mask, \ 294 &sm_io_to); \ --- 35 unchanged lines hidden --- |