home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / unix / volume27 / clc / part01 < prev    next >
Encoding:
Text File  |  1993-11-28  |  34.5 KB  |  1,301 lines

  1. Newsgroups: comp.sources.unix
  2. From: panos@anchor.cs.colorado.edu (Panos Tsirigotis)
  3. Subject: v27i107: clc - C Libraries Collection, Part01/20
  4. References: <1.754527080.23891@gw.home.vix.com>
  5. Sender: unix-sources-moderator@gw.home.vix.com
  6. Approved: vixie@gw.home.vix.com
  7.  
  8. Submitted-By: panos@anchor.cs.colorado.edu (Panos Tsirigotis)
  9. Posting-Number: Volume 27, Issue 107
  10. Archive-Name: clc/part01
  11.  
  12. #! /bin/sh
  13. # This is a shell archive.  Remove anything before this line, then unpack
  14. # it by saving it into a file and typing "sh file".  To overwrite existing
  15. # files, type "sh file -c".  You can also feed this as standard input via
  16. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  17. # will see the following message at the end:
  18. #        "End of archive 1 (of 20)."
  19. # Contents:  README fixman libs libs/include libs/lib libs/man libs/src
  20. #   libs/src/dict libs/src/dict/CHANGELOG libs/src/dict/dll.h
  21. #   libs/src/dict/dlltest.out libs/src/dict/htest.out libs/src/fsma
  22. #   libs/src/fsma/impl.h libs/src/misc libs/src/misc/README
  23. #   libs/src/misc/env.h libs/src/misc/ftwx.h libs/src/misc/misc.h
  24. #   libs/src/pq libs/src/pq/hpqimpl.h libs/src/pq/pq.c
  25. #   libs/src/pq/pq.h libs/src/pset libs/src/pset/ops.c libs/src/sio
  26. #   libs/src/sio/CHANGELOG libs/src/sio/suite
  27. #   libs/src/sio/suite/buftest.c libs/src/sio/suite/example.c
  28. #   libs/src/sio/suite/tietest.c libs/src/str libs/src/str/CHANGELOG
  29. #   libs/src/str/ss_bmh.h libs/src/str/ss_kmp.h libs/src/str/ss_rk.h
  30. #   libs/src/str/ss_sbm.h libs/src/str/ss_so.h libs/src/timer
  31. #   libs/src/timer/CHANGELOG libs/src/xlog libs/src/xlog/CHANGELOG
  32. #   libs/src/xlog/slog.h
  33. # Wrapped by panos@eclipse on Sun Nov 28 14:48:15 1993
  34. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  35. if test -f 'README' -a "${1}" != "-c" ; then 
  36.   echo shar: Will not clobber existing file \"'README'\"
  37. else
  38. echo shar: Extracting \"'README'\" \(2025 characters\)
  39. sed "s/^X//" >'README' <<'END_OF_FILE'
  40. X
  41. XCLC is the acronym for my C Libraries Collection, a group of general
  42. Xpurpose C libraries. The following is a short description of what each
  43. Xlibrary does. Please read the man pages for more information.
  44. X
  45. Xdict  :  support for various types of data structures, including double
  46. X         linked lists, hash tables and binary search trees (which can also
  47. X         be balanced using the red-black balancing algorithms). The data
  48. X         structures support operations for insertion/deletion/location of
  49. X         an object, as well as operations for finding the minimum/maximum
  50. X         object and for enumeration of all objects.
  51. X
  52. Xfsma  :  support for quick memory allocation/deallocation of fixed size
  53. X         objects.
  54. X
  55. Xmisc  :  a collection of generic functions including management of
  56. X         environment variables, a tree walk function to replace ftw(3),
  57. X         functions to get the basename/dirname of a pathname etc.
  58. X
  59. Xpq    :  an implementation of priority queues using heaps.
  60. X
  61. Xpset  :  support for pointer sets, implemented as dynamic pointer arrays.
  62. X
  63. Xsio   :  supports fast stream I/O, optionally using memory mapping for input
  64. X         if the operating system supports it.
  65. X
  66. Xstr   :  this library contains 4 types of functions: string matching
  67. X         functions (offering the Boyer-Moore, Knuth-Morris-Pratt,
  68. X         Rabin-Karp, and Shift-Or algorithms), string printing functions
  69. X         (similar to sprintf), string parsing functions, and string
  70. X         utility functions (convert a string to upper/lower case etc).
  71. X
  72. Xtimer :  support for multiple timers by multiplexing the timers provided
  73. X         by the operating system.
  74. X
  75. Xxlog  :  this library provides logging objects which can be connected
  76. X         either to syslog or to a file. Objects connected to files
  77. X         may be customized to not exceed a certain file size.
  78. X
  79. X
  80. XThe INSTALL file contains information on how to install any or all
  81. Xof these libraries.
  82. X
  83. XPlease send comments/bug-reports to panos@cs.colorado.edu
  84. X
  85. X    -- Panos Tsirigotis, Nov. 26, 1993 --
  86. X
  87. END_OF_FILE
  88. if test 2025 -ne `wc -c <'README'`; then
  89.     echo shar: \"'README'\" unpacked with wrong size!
  90. fi
  91. # end of 'README'
  92. fi
  93. if test -f 'fixman' -a "${1}" != "-c" ; then 
  94.   echo shar: Will not clobber existing file \"'fixman'\"
  95. else
  96. echo shar: Extracting \"'fixman'\" \(768 characters\)
  97. sed "s/^X//" >'fixman' <<'END_OF_FILE'
  98. X#!/bin/sh
  99. X
  100. Xscript_name=`basename $0`
  101. X
  102. Xusage="Usage: $script_name manpage manpage ..."
  103. X
  104. Xif test $# -eq 0 ; then echo $usage ; exit 1 ; fi
  105. X
  106. Xcatch_sigs="2 15"
  107. X
  108. X#
  109. X# We can't take any interrupts while processing the manpages
  110. X#
  111. Xtrap 'interrupt_occured=yes' $catch_sigs
  112. X
  113. Xtemp_file=/tmp/tmp.$$
  114. X
  115. Xfor i in $*
  116. Xdo
  117. X    rm -f $temp_file
  118. X    sed 's/[.]SB/.B/' $i > $temp_file         # do the replacement
  119. X    cmp -s $i $temp_file                      # and compare
  120. X    if test $? -ne 0 ; then                   # if not equal, then
  121. X        mv $i $i.orig && mv $temp_file $i      # save original, and move
  122. X    fi                                        # the other one in its place
  123. X    rm -f $temp_file
  124. X    if test "$interrupt_occured" = "yes" ; then
  125. X        echo "$script_name: Interrupt: quiting"
  126. X        exit 1
  127. X    fi
  128. Xdone
  129. X
  130. END_OF_FILE
  131. if test 768 -ne `wc -c <'fixman'`; then
  132.     echo shar: \"'fixman'\" unpacked with wrong size!
  133. fi
  134. chmod +x 'fixman'
  135. # end of 'fixman'
  136. fi
  137. if test ! -d 'libs' ; then
  138.     echo shar: Creating directory \"'libs'\"
  139.     mkdir 'libs'
  140. fi
  141. if test ! -d 'libs/include' ; then
  142.     echo shar: Creating directory \"'libs/include'\"
  143.     mkdir 'libs/include'
  144. fi
  145. if test ! -d 'libs/lib' ; then
  146.     echo shar: Creating directory \"'libs/lib'\"
  147.     mkdir 'libs/lib'
  148. fi
  149. if test ! -d 'libs/man' ; then
  150.     echo shar: Creating directory \"'libs/man'\"
  151.     mkdir 'libs/man'
  152. fi
  153. if test ! -d 'libs/src' ; then
  154.     echo shar: Creating directory \"'libs/src'\"
  155.     mkdir 'libs/src'
  156. fi
  157. if test ! -d 'libs/src/dict' ; then
  158.     echo shar: Creating directory \"'libs/src/dict'\"
  159.     mkdir 'libs/src/dict'
  160. fi
  161. if test -f 'libs/src/dict/CHANGELOG' -a "${1}" != "-c" ; then 
  162.   echo shar: Will not clobber existing file \"'libs/src/dict/CHANGELOG'\"
  163. else
  164. echo shar: Extracting \"'libs/src/dict/CHANGELOG'\" \(623 characters\)
  165. sed "s/^X//" >'libs/src/dict/CHANGELOG' <<'END_OF_FILE'
  166. X
  167. X1.2.0: First release
  168. X    This was never advertised but was obtainable via anonymous FTP.
  169. X
  170. X1.2.1: submitted to comp.sources.unix
  171. X    The only change was that the README file became part of the archive.
  172. X    There were no changes to the source code.
  173. X
  174. X1.2.2:
  175. X    No source code changes.
  176. X    The test programs are now included in the distribution.
  177. X    An EXAMPLE section has been included in the dict.3 man page
  178. X
  179. X1.2.3:
  180. X    Specifying a ko_comp function is now optional. If such a function
  181. X    is not specified, use of <lib>_search will cause a segmentation
  182. X    violation.
  183. X
  184. X1.2.4:
  185. X    Bug fix: tree_header fields 'anchor' and 'nil' changed to type btnode_s
  186. END_OF_FILE
  187. if test 623 -ne `wc -c <'libs/src/dict/CHANGELOG'`; then
  188.     echo shar: \"'libs/src/dict/CHANGELOG'\" unpacked with wrong size!
  189. fi
  190. # end of 'libs/src/dict/CHANGELOG'
  191. fi
  192. if test -f 'libs/src/dict/dll.h' -a "${1}" != "-c" ; then 
  193.   echo shar: Will not clobber existing file \"'libs/src/dict/dll.h'\"
  194. else
  195. echo shar: Extracting \"'libs/src/dict/dll.h'\" \(1077 characters\)
  196. sed "s/^X//" >'libs/src/dict/dll.h' <<'END_OF_FILE'
  197. X/*
  198. X * (c) Copyright 1993 by Panagiotis Tsirigotis
  199. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  200. X * and conditions for redistribution.
  201. X */
  202. X
  203. X#ifndef __DLL_H
  204. X#define __DLL_H
  205. X
  206. X/*
  207. X * $Id: dll.h,v 3.1 93/04/23 17:48:53 panos Exp $
  208. X */
  209. X
  210. X#include "dict.h"
  211. X
  212. Xdict_h dll_create
  213. X    __ARGS( (
  214. X                    dict_function oo_compare,
  215. X                    dict_function ko_compare,
  216. X                    int flags,
  217. X                    int *errnop
  218. X            ) ) ;
  219. Xvoid         dll_destroy            __ARGS( ( dict_h lh ) ) ;
  220. Xint         dll_insert            __ARGS( ( dict_h lh, dict_obj obj ) ) ;
  221. Xint         dll_insert_uniq     __ARGS( ( dict_h lh, dict_obj, dict_obj * ) ) ;
  222. Xint         dll_delete             __ARGS( ( dict_h lh, dict_obj obj ) ) ;
  223. Xdict_obj dll_search             __ARGS( ( dict_h lh, dict_key key ) ) ;
  224. Xdict_obj dll_minimum         __ARGS( ( dict_h lh ) ) ;
  225. Xdict_obj dll_maximum         __ARGS( ( dict_h lh ) ) ;
  226. Xdict_obj dll_successor         __ARGS( ( dict_h lh, dict_obj obj ) ) ;
  227. Xdict_obj dll_predecessor     __ARGS( ( dict_h lh, dict_obj obj ) ) ;
  228. Xvoid         dll_iterate            __ARGS( ( dict_h lh, enum dict_direction ) ) ;
  229. Xdict_obj dll_nextobj            __ARGS( ( dict_h lh ) ) ;
  230. X
  231. X#endif     /* __DLL_H */
  232. X
  233. END_OF_FILE
  234. if test 1077 -ne `wc -c <'libs/src/dict/dll.h'`; then
  235.     echo shar: \"'libs/src/dict/dll.h'\" unpacked with wrong size!
  236. fi
  237. # end of 'libs/src/dict/dll.h'
  238. fi
  239. if test -f 'libs/src/dict/dlltest.out' -a "${1}" != "-c" ; then 
  240.   echo shar: Will not clobber existing file \"'libs/src/dict/dlltest.out'\"
  241. else
  242. echo shar: Extracting \"'libs/src/dict/dlltest.out'\" \(199 characters\)
  243. sed "s/^X//" >'libs/src/dict/dlltest.out' <<'END_OF_FILE'
  244. XSuccessor test
  245. X1
  246. X2
  247. X3
  248. X4
  249. X5
  250. X6
  251. X7
  252. X8
  253. X9
  254. X10
  255. XPredecessor test
  256. X10
  257. X9
  258. X8
  259. X7
  260. X6
  261. X5
  262. X4
  263. X3
  264. X2
  265. X1
  266. XSearch/delete test
  267. XSuccessor test 2
  268. X1
  269. X2
  270. X3
  271. X4
  272. X5
  273. X6
  274. X8
  275. X9
  276. X10
  277. XPredecessor test 2
  278. X10
  279. X9
  280. X8
  281. X6
  282. X5
  283. X4
  284. X3
  285. X2
  286. X1
  287. XIteration test
  288. X1
  289. X2
  290. X3
  291. X4
  292. X6
  293. X8
  294. X9
  295. X10
  296. END_OF_FILE
  297. if test 199 -ne `wc -c <'libs/src/dict/dlltest.out'`; then
  298.     echo shar: \"'libs/src/dict/dlltest.out'\" unpacked with wrong size!
  299. fi
  300. # end of 'libs/src/dict/dlltest.out'
  301. fi
  302. if test -f 'libs/src/dict/htest.out' -a "${1}" != "-c" ; then 
  303.   echo shar: Will not clobber existing file \"'libs/src/dict/htest.out'\"
  304. else
  305. echo shar: Extracting \"'libs/src/dict/htest.out'\" \(404 characters\)
  306. sed "s/^X//" >'libs/src/dict/htest.out' <<'END_OF_FILE'
  307. XSearch/delete test
  308. X10 found
  309. X9 found
  310. X8 found
  311. X7 not found
  312. X6 found
  313. X5 found
  314. X4 found
  315. X3 found
  316. X2 found
  317. X1 found
  318. XObject = 1
  319. XObject = 2
  320. XObject = 3
  321. XObject = 4
  322. XObject = 5
  323. XObject = 6
  324. XObject = 8
  325. XObject = 9
  326. XObject = 10
  327. XObject = 1
  328. XObject = 2
  329. XObject = 3
  330. XObject = 4
  331. XObject = 5
  332. XObject = 6
  333. XObject = 8
  334. XObject = 9
  335. XObject = 10
  336. XObject = 10
  337. XObject = 9
  338. XObject = 8
  339. XObject = 6
  340. XObject = 5
  341. XObject = 4
  342. XObject = 3
  343. XObject = 2
  344. XObject = 1
  345. END_OF_FILE
  346. if test 404 -ne `wc -c <'libs/src/dict/htest.out'`; then
  347.     echo shar: \"'libs/src/dict/htest.out'\" unpacked with wrong size!
  348. fi
  349. # end of 'libs/src/dict/htest.out'
  350. fi
  351. if test ! -d 'libs/src/fsma' ; then
  352.     echo shar: Creating directory \"'libs/src/fsma'\"
  353.     mkdir 'libs/src/fsma'
  354. fi
  355. if test -f 'libs/src/fsma/impl.h' -a "${1}" != "-c" ; then 
  356.   echo shar: Will not clobber existing file \"'libs/src/fsma/impl.h'\"
  357. else
  358. echo shar: Extracting \"'libs/src/fsma/impl.h'\" \(572 characters\)
  359. sed "s/^X//" >'libs/src/fsma/impl.h' <<'END_OF_FILE'
  360. X/*
  361. X * (c) Copyright 1992 by Panagiotis Tsirigotis
  362. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  363. X * and conditions for redistribution.
  364. X */
  365. X
  366. X/*
  367. X * $Id: impl.h,v 5.1 1992/10/10 07:23:18 panos Exp $
  368. X */
  369. X
  370. X#ifndef NULL
  371. X#define NULL 0
  372. X#endif
  373. X
  374. X#ifndef FALSE
  375. X#define FALSE     0
  376. X#define TRUE      1
  377. X#endif
  378. X
  379. X#define PRIVATE                     static
  380. X
  381. X#define SLOTS_PER_CHUNK             100
  382. X
  383. X#define POINTER                            __fsma_pointer
  384. X#define MINSIZE                     sizeof( POINTER )
  385. X
  386. X#define CHUNK_HEADER( p )           ((union __fsma_chunk_header *)(p))
  387. X
  388. END_OF_FILE
  389. if test 572 -ne `wc -c <'libs/src/fsma/impl.h'`; then
  390.     echo shar: \"'libs/src/fsma/impl.h'\" unpacked with wrong size!
  391. fi
  392. # end of 'libs/src/fsma/impl.h'
  393. fi
  394. if test ! -d 'libs/src/misc' ; then
  395.     echo shar: Creating directory \"'libs/src/misc'\"
  396.     mkdir 'libs/src/misc'
  397. fi
  398. if test -f 'libs/src/misc/README' -a "${1}" != "-c" ; then 
  399.   echo shar: Will not clobber existing file \"'libs/src/misc/README'\"
  400. else
  401. echo shar: Extracting \"'libs/src/misc/README'\" \(439 characters\)
  402. sed "s/^X//" >'libs/src/misc/README' <<'END_OF_FILE'
  403. X
  404. X
  405. XThis library is made of 3 parts:
  406. X    ftwx, misc, env
  407. X
  408. Xenv is a collection of environment processing functions.
  409. Xmisc is a collection of miscellaneous functions.
  410. Xftwx is a replacement for the standard ftw(3) function.
  411. X
  412. XWhen installing this library you may need to define the following
  413. Xflags in the Makefile:
  414. X    OLD_DIR if your system does not have the file /usr/include/dirent.h
  415. X    __FTWX_NO_FTW if your system does not have the ftw(3) function
  416. X
  417. END_OF_FILE
  418. if test 439 -ne `wc -c <'libs/src/misc/README'`; then
  419.     echo shar: \"'libs/src/misc/README'\" unpacked with wrong size!
  420. fi
  421. # end of 'libs/src/misc/README'
  422. fi
  423. if test -f 'libs/src/misc/env.h' -a "${1}" != "-c" ; then 
  424.   echo shar: Will not clobber existing file \"'libs/src/misc/env.h'\"
  425. else
  426. echo shar: Extracting \"'libs/src/misc/env.h'\" \(1147 characters\)
  427. sed "s/^X//" >'libs/src/misc/env.h' <<'END_OF_FILE'
  428. X/*
  429. X * (c) Copyright 1992 by Panagiotis Tsirigotis
  430. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  431. X * and conditions for redistribution.
  432. X */
  433. X
  434. X#ifndef __ENV_H
  435. X#define __ENV_H
  436. X
  437. X/*
  438. X * $Id: env.h,v 1.2 1992/10/31 03:09:33 panos Exp $
  439. X */
  440. X
  441. Xstruct __env
  442. X{
  443. X    unsigned max_vars ;
  444. X    unsigned n_vars ;
  445. X    char **vars ;
  446. X} ;
  447. X
  448. Xtypedef struct __env *env_h ;
  449. X
  450. X#define ENV_NULL                        ((env_h)0)
  451. X
  452. X/*
  453. X * Return values
  454. X */
  455. X#define ENV_ERR                        (-1)
  456. X#define ENV_OK                            0
  457. X
  458. X/*
  459. X * Error codes
  460. X */
  461. X#define ENV_ENOMEM                    1
  462. X#define ENV_EBADVAR                    2
  463. X#define ENV_EBADSTRING                3
  464. X
  465. X
  466. X#ifdef __ARGS
  467. X#undef __ARGS
  468. X#endif
  469. X
  470. X#ifdef PROTOTYPES
  471. X#  define __ARGS( s )               s
  472. X#else
  473. X#  define __ARGS( s )               ()
  474. X#endif
  475. X
  476. Xenv_h env_create __ARGS( ( env_h ) ) ;
  477. Xvoid env_destroy __ARGS( ( env_h ) ) ;
  478. Xenv_h env_make __ARGS( ( char **env_strings ) ) ;
  479. Xint env_addvar __ARGS( ( env_h, env_h from_env, char *var ) ) ;
  480. Xint env_addstr __ARGS( ( env_h, char *str ) ) ;
  481. Xint env_remvar __ARGS( ( env_h, char *var ) ) ;
  482. Xchar *env_lookup __ARGS( ( env_h, char *var ) ) ;
  483. X
  484. X#define env_getvars( env )                (env)->vars
  485. X
  486. Xextern int env_errno ;
  487. X
  488. X#endif    /* __ENV_H */
  489. X
  490. END_OF_FILE
  491. if test 1147 -ne `wc -c <'libs/src/misc/env.h'`; then
  492.     echo shar: \"'libs/src/misc/env.h'\" unpacked with wrong size!
  493. fi
  494. # end of 'libs/src/misc/env.h'
  495. fi
  496. if test -f 'libs/src/misc/ftwx.h' -a "${1}" != "-c" ; then 
  497.   echo shar: Will not clobber existing file \"'libs/src/misc/ftwx.h'\"
  498. else
  499. echo shar: Extracting \"'libs/src/misc/ftwx.h'\" \(702 characters\)
  500. sed "s/^X//" >'libs/src/misc/ftwx.h' <<'END_OF_FILE'
  501. X/*
  502. X * (c) Copyright 1992 by Panagiotis Tsirigotis
  503. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  504. X * and conditions for redistribution.
  505. X */
  506. X
  507. X
  508. X#ifndef __FTWX_H
  509. X#define __FTWX_H
  510. X
  511. X/*
  512. X * $Id: ftwx.h,v 2.1 1992/10/01 00:41:02 panos Exp $
  513. X */
  514. X
  515. X#ifndef __FTWX_NO_FTW
  516. X#include <ftw.h>
  517. X#else
  518. X#define FTW_F   0
  519. X#define FTW_D   1
  520. X#define FTW_DNR 2
  521. X#define FTW_NS  3
  522. X#endif
  523. X
  524. X
  525. X/*
  526. X * Flags
  527. X */
  528. X#define FTWX_ALL        -1
  529. X#define FTWX_FOLLOW     0x1
  530. X
  531. X
  532. X#ifdef __ARGS
  533. X#undef _ARGS
  534. X#endif
  535. X
  536. X#ifdef PROTOTYPES
  537. X#  define __ARGS( s )               s
  538. X#else
  539. X#  define __ARGS( s )               ()
  540. X#endif
  541. X
  542. Xint ftwx __ARGS( ( char *path, int (*func)(), int depth, int flags ) ) ;
  543. X
  544. X#endif     /* __FTWX_H */
  545. X
  546. END_OF_FILE
  547. if test 702 -ne `wc -c <'libs/src/misc/ftwx.h'`; then
  548.     echo shar: \"'libs/src/misc/ftwx.h'\" unpacked with wrong size!
  549. fi
  550. # end of 'libs/src/misc/ftwx.h'
  551. fi
  552. if test -f 'libs/src/misc/misc.h' -a "${1}" != "-c" ; then 
  553.   echo shar: Will not clobber existing file \"'libs/src/misc/misc.h'\"
  554. else
  555. echo shar: Extracting \"'libs/src/misc/misc.h'\" \(806 characters\)
  556. sed "s/^X//" >'libs/src/misc/misc.h' <<'END_OF_FILE'
  557. X/*
  558. X * (c) Copyright 1992 by Panagiotis Tsirigotis
  559. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  560. X * and conditions for redistribution.
  561. X */
  562. X
  563. X
  564. X#ifndef __MISC_H
  565. X#define __MISC_H
  566. X
  567. X
  568. X/*
  569. X * $Id: misc.h,v 2.1 1992/10/01 00:41:34 panos Exp $
  570. X */
  571. X
  572. X/*
  573. X * Align to a power of 2
  574. X */
  575. X#define align2( num, al )                    (((num)+(al)-1) & ~((al)-1))
  576. X
  577. X#ifdef __ARGS
  578. X#undef __ARGS
  579. X#endif
  580. X
  581. X#ifdef PROTOTYPES
  582. X#   define __ARGS( s )               s
  583. X#else
  584. X#   define __ARGS( s )               ()
  585. X#endif
  586. X
  587. X
  588. Xchar *make_string __ARGS( ( unsigned count, ... ) ) ;
  589. Xchar *make_pathname __ARGS( ( unsigned count, ... ) ) ;
  590. X
  591. Xchar **argv_copy_and_clear __ARGS( ( char **argv, int start, int count ) ) ;
  592. Xchar *dirname __ARGS( ( char *pathname ) ) ;
  593. Xchar *basename __ARGS( ( char *pathname ) ) ;
  594. X
  595. X#endif     /* __MISC_H */
  596. X
  597. END_OF_FILE
  598. if test 806 -ne `wc -c <'libs/src/misc/misc.h'`; then
  599.     echo shar: \"'libs/src/misc/misc.h'\" unpacked with wrong size!
  600. fi
  601. # end of 'libs/src/misc/misc.h'
  602. fi
  603. if test ! -d 'libs/src/pq' ; then
  604.     echo shar: Creating directory \"'libs/src/pq'\"
  605.     mkdir 'libs/src/pq'
  606. fi
  607. if test -f 'libs/src/pq/hpqimpl.h' -a "${1}" != "-c" ; then 
  608.   echo shar: Will not clobber existing file \"'libs/src/pq/hpqimpl.h'\"
  609. else
  610. echo shar: Extracting \"'libs/src/pq/hpqimpl.h'\" \(785 characters\)
  611. sed "s/^X//" >'libs/src/pq/hpqimpl.h' <<'END_OF_FILE'
  612. X/*
  613. X * (c) Copyright 1993 by Panagiotis Tsirigotis
  614. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  615. X * and conditions for redistribution.
  616. X */
  617. X
  618. X/*
  619. X * $Id: hpqimpl.h,v 1.1 1992/11/23 16:25:25 panos Exp $
  620. X */
  621. X
  622. X#include "hpq.h"
  623. X
  624. Xtypedef struct __hpq_header header_s ;
  625. X
  626. X#define HHP( p )            ((header_s *)p)
  627. X
  628. X#define HANDLE_ERROR( flags, retval, errp, errval, msg )        \
  629. X                if ( flags & PQ_RETURN_ERROR )                        \
  630. X                {                                                                \
  631. X                    *errp = errval ;                                        \
  632. X                    return( retval ) ;                                    \
  633. X                }                                                                \
  634. X                else                                                            \
  635. X                {                                                                \
  636. X                    char *s = msg ;                                        \
  637. X                                                                                \
  638. X                    (void) write( 2, s, strlen( s ) ) ;                \
  639. X                    abort() ;                                                \
  640. X                    _exit( 1 ) ;                                             \
  641. X                    /* NOTREACHED */                                        \
  642. X                }
  643. X
  644. X
  645. END_OF_FILE
  646. if test 785 -ne `wc -c <'libs/src/pq/hpqimpl.h'`; then
  647.     echo shar: \"'libs/src/pq/hpqimpl.h'\" unpacked with wrong size!
  648. fi
  649. # end of 'libs/src/pq/hpqimpl.h'
  650. fi
  651. if test -f 'libs/src/pq/pq.c' -a "${1}" != "-c" ; then 
  652.   echo shar: Will not clobber existing file \"'libs/src/pq/pq.c'\"
  653. else
  654. echo shar: Extracting \"'libs/src/pq/pq.c'\" \(289 characters\)
  655. sed "s/^X//" >'libs/src/pq/pq.c' <<'END_OF_FILE'
  656. X/*
  657. X * (c) Copyright 1993 by Panagiotis Tsirigotis
  658. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  659. X * and conditions for redistribution.
  660. X */
  661. X
  662. Xstatic char RCSid[] = "$Id: pq.c,v 1.1 1992/11/23 16:25:25 panos Exp $" ;
  663. Xstatic char version[] = VERSION ;
  664. X
  665. Xint pq_errno ;
  666. X
  667. END_OF_FILE
  668. if test 289 -ne `wc -c <'libs/src/pq/pq.c'`; then
  669.     echo shar: \"'libs/src/pq/pq.c'\" unpacked with wrong size!
  670. fi
  671. # end of 'libs/src/pq/pq.c'
  672. fi
  673. if test -f 'libs/src/pq/pq.h' -a "${1}" != "-c" ; then 
  674.   echo shar: Will not clobber existing file \"'libs/src/pq/pq.h'\"
  675. else
  676. echo shar: Extracting \"'libs/src/pq/pq.h'\" \(686 characters\)
  677. sed "s/^X//" >'libs/src/pq/pq.h' <<'END_OF_FILE'
  678. X/*
  679. X * (c) Copyright 1993 by Panagiotis Tsirigotis
  680. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  681. X * and conditions for redistribution.
  682. X */
  683. X
  684. X#ifndef __PQ_H
  685. X#define __PQ_H
  686. X
  687. X/*
  688. X * $Id: pq.h,v 1.4 1993/04/01 02:14:52 panos Exp $
  689. X */
  690. X
  691. X/*
  692. X * Return values
  693. X */
  694. X#define PQ_OK            0
  695. X#define PQ_ERR            (-1)
  696. X
  697. Xextern int pq_errno ;
  698. X
  699. X/*
  700. X * pq_errno values
  701. X */
  702. X#define PQ_ENOERROR                0
  703. X#define PQ_ENOFUNC                1
  704. X#define PQ_ENOMEM                    2
  705. X#define PQ_ENULLOBJECT            3
  706. X#define PQ_ENOTFOUND                4
  707. X#define PQ_ENOTSUPPORTED        5
  708. X
  709. X/*
  710. X * flag values
  711. X */
  712. X#define PQ_NOFLAGS                0x0
  713. X#define PQ_RETURN_ERROR            0x1
  714. X
  715. Xtypedef void *pq_h ;
  716. Xtypedef void *pq_obj ;
  717. X
  718. X#include "hpq.h"
  719. X
  720. X#endif    /* __PQ_H */
  721. X
  722. END_OF_FILE
  723. if test 686 -ne `wc -c <'libs/src/pq/pq.h'`; then
  724.     echo shar: \"'libs/src/pq/pq.h'\" unpacked with wrong size!
  725. fi
  726. # end of 'libs/src/pq/pq.h'
  727. fi
  728. if test ! -d 'libs/src/pset' ; then
  729.     echo shar: Creating directory \"'libs/src/pset'\"
  730.     mkdir 'libs/src/pset'
  731. fi
  732. if test -f 'libs/src/pset/ops.c' -a "${1}" != "-c" ; then 
  733.   echo shar: Will not clobber existing file \"'libs/src/pset/ops.c'\"
  734. else
  735. echo shar: Extracting \"'libs/src/pset/ops.c'\" \(946 characters\)
  736. sed "s/^X//" >'libs/src/pset/ops.c' <<'END_OF_FILE'
  737. X/*
  738. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  739. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  740. X * and conditions for redistribution.
  741. X */
  742. X
  743. Xstatic char RCSid[] = "$Id: ops.c,v 3.2 93/11/23 19:49:05 panos Exp $" ;
  744. X
  745. X#include "pset.h"
  746. X
  747. X#define PRIVATE                static
  748. X
  749. X#ifndef NULL
  750. X#define NULL                    0
  751. X#endif
  752. X
  753. X
  754. X/*
  755. X * Remove all NULL pointers from a pset
  756. X */
  757. Xvoid pset_compact( pset )
  758. X    register pset_h pset ;
  759. X{
  760. X    register unsigned u ;
  761. X
  762. X    for ( u = 0 ; u < pset_count( pset ) ; )
  763. X        if ( pset_pointer( pset, u ) != NULL )
  764. X            u++ ;
  765. X        else
  766. X            pset_remove_index( pset, u ) ;
  767. X}
  768. X
  769. X
  770. X/*
  771. X * Apply a function to all pointers of a pset
  772. X */
  773. Xvoid pset_apply( pset, func, arg )
  774. X    register pset_h            pset ;
  775. X    register void                (*func)() ;
  776. X    register __pset_pointer arg ;
  777. X{
  778. X    register unsigned u ;
  779. X
  780. X    for ( u = 0 ; u < pset_count( pset ) ; u++ )
  781. X        if ( arg )
  782. X            (*func)( arg, pset_pointer( pset, u ) ) ;
  783. X        else
  784. X            (*func)( pset_pointer( pset, u ) ) ;
  785. X}
  786. X
  787. END_OF_FILE
  788. if test 946 -ne `wc -c <'libs/src/pset/ops.c'`; then
  789.     echo shar: \"'libs/src/pset/ops.c'\" unpacked with wrong size!
  790. fi
  791. # end of 'libs/src/pset/ops.c'
  792. fi
  793. if test ! -d 'libs/src/sio' ; then
  794.     echo shar: Creating directory \"'libs/src/sio'\"
  795.     mkdir 'libs/src/sio'
  796. fi
  797. if test -f 'libs/src/sio/CHANGELOG' -a "${1}" != "-c" ; then 
  798.   echo shar: Will not clobber existing file \"'libs/src/sio/CHANGELOG'\"
  799. else
  800. echo shar: Extracting \"'libs/src/sio/CHANGELOG'\" \(1106 characters\)
  801. sed "s/^X//" >'libs/src/sio/CHANGELOG' <<'END_OF_FILE'
  802. X
  803. X1.0.x-1.4.x:
  804. X    -    These version have not been released.
  805. X
  806. X1.5.0:
  807. X    -    Added the function Smorefds
  808. X    -    Improved the handling of pointers in Sprint
  809. X
  810. X1.5.3:
  811. X    -    Fixed a bug in Srdline
  812. X
  813. X1.5.6:
  814. X    -    Added multiple ways of determining the number of available fds
  815. X
  816. X1.6.0:
  817. X    -    Updated the way SIO is configured. Instead of multiple configuration
  818. X        files, one per OS/machine, there is now a single configuration header
  819. X        file where the user can define via preprocessor flags the features
  820. X        supported by the particular OS/machine.
  821. X
  822. X1.6.1:
  823. X    -    Simplified the Sprint-related configuration flags
  824. X    -    Fixed a bug in the events code
  825. X    -    Replaced all uses of memcpy with sio_memcopy
  826. X
  827. X1.6.2:
  828. X    -    Fixed a bug in the INS_CHAR macro: the buffer size was not respected
  829. X        when printing to strings. This had no effect on the SIO library,
  830. X        but it did affect the strx_* functions of the STR library
  831. X
  832. X1.6.3:
  833. X    -    The values for INCLUDEDIR and MANDIR in the Makefile were reversed
  834. X        (this might have been confusing to people trying to install the
  835. X        library).
  836. X    -    Updated the sio manpage with respect to the handling of interrupted
  837. X        system calls.
  838. X
  839. END_OF_FILE
  840. if test 1106 -ne `wc -c <'libs/src/sio/CHANGELOG'`; then
  841.     echo shar: \"'libs/src/sio/CHANGELOG'\" unpacked with wrong size!
  842. fi
  843. # end of 'libs/src/sio/CHANGELOG'
  844. fi
  845. if test ! -d 'libs/src/sio/suite' ; then
  846.     echo shar: Creating directory \"'libs/src/sio/suite'\"
  847.     mkdir 'libs/src/sio/suite'
  848. fi
  849. if test -f 'libs/src/sio/suite/buftest.c' -a "${1}" != "-c" ; then 
  850.   echo shar: Will not clobber existing file \"'libs/src/sio/suite/buftest.c'\"
  851. else
  852. echo shar: Extracting \"'libs/src/sio/suite/buftest.c'\" \(748 characters\)
  853. sed "s/^X//" >'libs/src/sio/suite/buftest.c' <<'END_OF_FILE'
  854. X/*
  855. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  856. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  857. X * and conditions for redistribution.
  858. X */
  859. X
  860. Xstatic char RCSid[] = "$Id: buftest.c,v 8.1 1993/03/13 01:23:09 panos Exp $" ;
  861. X
  862. X#include "sio.h"
  863. X
  864. Xmain()
  865. X{
  866. X    int i ;
  867. X    int sleep_interval = 3 ;
  868. X
  869. X    if ( Sbuftype( 1, SIO_LINEBUF ) == SIO_ERR )
  870. X    {
  871. X        Sprint( 2, "Sbuftype failed\n" ) ;
  872. X        exit( 1 ) ;
  873. X    }
  874. X
  875. X    for ( i = 0 ; i < 10 ; i++ )
  876. X    {
  877. X        Sprint( 1, "Line %d\n", i ) ;
  878. X        if ( i == 5 )
  879. X        {
  880. X            Sprint( 1, "Now switching to full buffering\n" ) ;
  881. X            sleep_interval = 2 ;
  882. X            if ( Sbuftype( 1, SIO_FULLBUF ) == SIO_ERR )
  883. X            {
  884. X                Sprint( 2, "2nd Sbuftype failed\n" ) ;
  885. X                exit( 1 ) ;
  886. X            }
  887. X        }
  888. X        sleep( sleep_interval ) ;
  889. X    }
  890. X    exit( 0 ) ;
  891. X}
  892. X
  893. END_OF_FILE
  894. if test 748 -ne `wc -c <'libs/src/sio/suite/buftest.c'`; then
  895.     echo shar: \"'libs/src/sio/suite/buftest.c'\" unpacked with wrong size!
  896. fi
  897. # end of 'libs/src/sio/suite/buftest.c'
  898. fi
  899. if test -f 'libs/src/sio/suite/example.c' -a "${1}" != "-c" ; then 
  900.   echo shar: Will not clobber existing file \"'libs/src/sio/suite/example.c'\"
  901. else
  902. echo shar: Extracting \"'libs/src/sio/suite/example.c'\" \(569 characters\)
  903. sed "s/^X//" >'libs/src/sio/suite/example.c' <<'END_OF_FILE'
  904. X/*
  905. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  906. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  907. X * and conditions for redistribution.
  908. X */
  909. X
  910. Xstatic char RCSid[] = "$Id: example.c,v 8.1 1993/03/13 01:21:48 panos Exp $" ;
  911. X
  912. X#include "sio.h"
  913. X
  914. Xmain( argc, argv )
  915. X   int argc ;
  916. X   char *argv[] ;
  917. X{
  918. X   char *file = (argc > 1) ? argv[ 1 ] : "tee.file" ;
  919. X   int fd = creat( file, 0644 ) ;
  920. X   long length ;
  921. X   char *s ;
  922. X
  923. X   while ( s = Sfetch( 0, &length ) )
  924. X   {
  925. X      Swrite( 1, s, length ) ;
  926. X      Swrite( fd, s, length ) ;
  927. X   }
  928. X   exit( 0 ) ;
  929. X}
  930. X
  931. END_OF_FILE
  932. if test 569 -ne `wc -c <'libs/src/sio/suite/example.c'`; then
  933.     echo shar: \"'libs/src/sio/suite/example.c'\" unpacked with wrong size!
  934. fi
  935. # end of 'libs/src/sio/suite/example.c'
  936. fi
  937. if test -f 'libs/src/sio/suite/tietest.c' -a "${1}" != "-c" ; then 
  938.   echo shar: Will not clobber existing file \"'libs/src/sio/suite/tietest.c'\"
  939. else
  940. echo shar: Extracting \"'libs/src/sio/suite/tietest.c'\" \(669 characters\)
  941. sed "s/^X//" >'libs/src/sio/suite/tietest.c' <<'END_OF_FILE'
  942. X/*
  943. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  944. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  945. X * and conditions for redistribution.
  946. X */
  947. X
  948. Xstatic char RCSid[] = "$Id: tietest.c,v 8.1 1993/03/13 01:24:07 panos Exp $" ;
  949. X
  950. X#include "sio.h"
  951. X#include <stdio.h>
  952. X
  953. Xmain()
  954. X{
  955. X    char *s ;
  956. X
  957. X    Stie( 0, 1 ) ;
  958. X    Sprint( 1, "Enter 1st command --> " ) ;
  959. X    s = Srdline( 0 ) ;
  960. X    Sprint( 1, "Received command: %s\n", s ) ;
  961. X    Sprint( 1, "Enter 2nd command --> " ) ;
  962. X    s = Srdline( 0 ) ;
  963. X    Sprint( 1, "Received command: %s\n", s ) ;
  964. X    Suntie( 0 ) ;
  965. X    Sprint( 1, "Enter 3rd command --> " ) ;
  966. X    s = Srdline( 0 ) ;
  967. X    Sprint( 1, "Received command: %s\n", s ) ;
  968. X    exit( 0 ) ;
  969. X}
  970. END_OF_FILE
  971. if test 669 -ne `wc -c <'libs/src/sio/suite/tietest.c'`; then
  972.     echo shar: \"'libs/src/sio/suite/tietest.c'\" unpacked with wrong size!
  973. fi
  974. # end of 'libs/src/sio/suite/tietest.c'
  975. fi
  976. if test ! -d 'libs/src/str' ; then
  977.     echo shar: Creating directory \"'libs/src/str'\"
  978.     mkdir 'libs/src/str'
  979. fi
  980. if test -f 'libs/src/str/CHANGELOG' -a "${1}" != "-c" ; then 
  981.   echo shar: Will not clobber existing file \"'libs/src/str/CHANGELOG'\"
  982. else
  983. echo shar: Extracting \"'libs/src/str/CHANGELOG'\" \(507 characters\)
  984. sed "s/^X//" >'libs/src/str/CHANGELOG' <<'END_OF_FILE'
  985. X
  986. X1.2.0: 
  987. X    First release (as part of xinetd 1.3)
  988. X
  989. X1.3.2:
  990. X    Added the string matching functions
  991. X
  992. X1.3.3: (posted to alt.sources)
  993. X    Changed the way the library is configured
  994. X
  995. X1.4.0:
  996. X    Added the shift-or string matching algorithm
  997. X    Implemented the automatic switching to the proper search algorithm
  998. X    Added the STRS_NOSWITCH flag to disallow switching
  999. X    Added the STRS_PATLEN flag
  1000. X
  1001. X1.4.1:
  1002. X    Moved definition of u_wide_int from ss_rk.h to ss_impl.h
  1003. X
  1004. X1.4.2:
  1005. X    Update the README file to remove all references to mystique.
  1006. X
  1007. END_OF_FILE
  1008. if test 507 -ne `wc -c <'libs/src/str/CHANGELOG'`; then
  1009.     echo shar: \"'libs/src/str/CHANGELOG'\" unpacked with wrong size!
  1010. fi
  1011. # end of 'libs/src/str/CHANGELOG'
  1012. fi
  1013. if test -f 'libs/src/str/ss_bmh.h' -a "${1}" != "-c" ; then 
  1014.   echo shar: Will not clobber existing file \"'libs/src/str/ss_bmh.h'\"
  1015. else
  1016. echo shar: Extracting \"'libs/src/str/ss_bmh.h'\" \(366 characters\)
  1017. sed "s/^X//" >'libs/src/str/ss_bmh.h' <<'END_OF_FILE'
  1018. X/*
  1019. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  1020. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  1021. X * and conditions for redistribution.
  1022. X */
  1023. X
  1024. X#ifndef SS_BMH_H
  1025. X#define SS_BMH_H
  1026. X
  1027. X/*
  1028. X * $Id: ss_bmh.h,v 3.1 1993/06/13 02:42:53 panos Exp $
  1029. X */
  1030. X
  1031. Xtypedef unsigned shift_int ;
  1032. X
  1033. Xstruct bmh_header
  1034. X{
  1035. X    shift_int *shift ;
  1036. X} ;
  1037. X
  1038. X#endif    /* SS_BMH_H */
  1039. X
  1040. END_OF_FILE
  1041. if test 366 -ne `wc -c <'libs/src/str/ss_bmh.h'`; then
  1042.     echo shar: \"'libs/src/str/ss_bmh.h'\" unpacked with wrong size!
  1043. fi
  1044. # end of 'libs/src/str/ss_bmh.h'
  1045. fi
  1046. if test -f 'libs/src/str/ss_kmp.h' -a "${1}" != "-c" ; then 
  1047.   echo shar: Will not clobber existing file \"'libs/src/str/ss_kmp.h'\"
  1048. else
  1049. echo shar: Extracting \"'libs/src/str/ss_kmp.h'\" \(381 characters\)
  1050. sed "s/^X//" >'libs/src/str/ss_kmp.h' <<'END_OF_FILE'
  1051. X/*
  1052. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  1053. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  1054. X * and conditions for redistribution.
  1055. X */
  1056. X
  1057. X#ifndef SS_KMP_H
  1058. X#define SS_KMP_H
  1059. X
  1060. X/*
  1061. X * $Id: ss_kmp.h,v 3.1 1993/06/13 02:44:52 panos Exp $
  1062. X */
  1063. X
  1064. Xtypedef int next_int ;            /* must be signed */
  1065. X
  1066. Xstruct kmp_header
  1067. X{
  1068. X    next_int *next ;
  1069. X} ;
  1070. X
  1071. X#endif    /* SS_KMP_H */
  1072. X
  1073. END_OF_FILE
  1074. if test 381 -ne `wc -c <'libs/src/str/ss_kmp.h'`; then
  1075.     echo shar: \"'libs/src/str/ss_kmp.h'\" unpacked with wrong size!
  1076. fi
  1077. # end of 'libs/src/str/ss_kmp.h'
  1078. fi
  1079. if test -f 'libs/src/str/ss_rk.h' -a "${1}" != "-c" ; then 
  1080.   echo shar: Will not clobber existing file \"'libs/src/str/ss_rk.h'\"
  1081. else
  1082. echo shar: Extracting \"'libs/src/str/ss_rk.h'\" \(579 characters\)
  1083. sed "s/^X//" >'libs/src/str/ss_rk.h' <<'END_OF_FILE'
  1084. X/*
  1085. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  1086. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  1087. X * and conditions for redistribution.
  1088. X */
  1089. X
  1090. X#ifndef SS_RK_H
  1091. X#define SS_RK_H
  1092. X
  1093. X/*
  1094. X * $Id: ss_rk.h,v 3.2 1993/06/16 00:06:34 panos Exp $
  1095. X */
  1096. X
  1097. Xstruct rk_header
  1098. X{
  1099. X    u_wide_int rk_digit1 ;                /* in the appropriate radix */
  1100. X    u_wide_int rk_patval ;
  1101. X} ;
  1102. X
  1103. X#if WIDE_INT_SIZE == 32
  1104. X#    define PRIME                        16777213
  1105. X#else
  1106. X#    if WIDE_INT_SIZE == 16
  1107. X#        define PRIME                    251
  1108. X#    else
  1109. X        int WIDE_INT_SIZE_has_bad_value = or_is_undefined ;
  1110. X#    endif 
  1111. X#endif
  1112. X
  1113. X#endif    /* SS_RK_H */
  1114. X
  1115. END_OF_FILE
  1116. if test 579 -ne `wc -c <'libs/src/str/ss_rk.h'`; then
  1117.     echo shar: \"'libs/src/str/ss_rk.h'\" unpacked with wrong size!
  1118. fi
  1119. # end of 'libs/src/str/ss_rk.h'
  1120. fi
  1121. if test -f 'libs/src/str/ss_sbm.h' -a "${1}" != "-c" ; then 
  1122.   echo shar: Will not clobber existing file \"'libs/src/str/ss_sbm.h'\"
  1123. else
  1124. echo shar: Extracting \"'libs/src/str/ss_sbm.h'\" \(393 characters\)
  1125. sed "s/^X//" >'libs/src/str/ss_sbm.h' <<'END_OF_FILE'
  1126. X/*
  1127. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  1128. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  1129. X * and conditions for redistribution.
  1130. X */
  1131. X
  1132. X
  1133. X#ifndef SS_SBM_H
  1134. X#define SS_SBM_H
  1135. X
  1136. X/*
  1137. X * $Id: ss_sbm.h,v 3.1 1993/06/13 02:46:00 panos Exp $
  1138. X */
  1139. X
  1140. Xtypedef int last_int ;            /* must be signed */
  1141. X
  1142. Xstruct sbm_header
  1143. X{
  1144. X    last_int *last_occurrence ;
  1145. X} ;
  1146. X
  1147. X#endif    /* SS_SBM_H */
  1148. X
  1149. END_OF_FILE
  1150. if test 393 -ne `wc -c <'libs/src/str/ss_sbm.h'`; then
  1151.     echo shar: \"'libs/src/str/ss_sbm.h'\" unpacked with wrong size!
  1152. fi
  1153. # end of 'libs/src/str/ss_sbm.h'
  1154. fi
  1155. if test -f 'libs/src/str/ss_so.h' -a "${1}" != "-c" ; then 
  1156.   echo shar: Will not clobber existing file \"'libs/src/str/ss_so.h'\"
  1157. else
  1158. echo shar: Extracting \"'libs/src/str/ss_so.h'\" \(353 characters\)
  1159. sed "s/^X//" >'libs/src/str/ss_so.h' <<'END_OF_FILE'
  1160. X/*
  1161. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  1162. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  1163. X * and conditions for redistribution.
  1164. X */
  1165. X
  1166. X#ifndef SS_SO_H
  1167. X#define SS_SO_H
  1168. X
  1169. X/*
  1170. X * $Id: ss_so.h,v 3.1 1993/06/13 02:46:47 panos Exp $
  1171. X */
  1172. X
  1173. Xstruct so_header
  1174. X{
  1175. X    wide_int *mask ;
  1176. X    wide_int offset_mask ;
  1177. X} ;
  1178. X
  1179. X#endif     /* SS_SO_H */
  1180. END_OF_FILE
  1181. if test 353 -ne `wc -c <'libs/src/str/ss_so.h'`; then
  1182.     echo shar: \"'libs/src/str/ss_so.h'\" unpacked with wrong size!
  1183. fi
  1184. # end of 'libs/src/str/ss_so.h'
  1185. fi
  1186. if test ! -d 'libs/src/timer' ; then
  1187.     echo shar: Creating directory \"'libs/src/timer'\"
  1188.     mkdir 'libs/src/timer'
  1189. fi
  1190. if test -f 'libs/src/timer/CHANGELOG' -a "${1}" != "-c" ; then 
  1191.   echo shar: Will not clobber existing file \"'libs/src/timer/CHANGELOG'\"
  1192. else
  1193. echo shar: Extracting \"'libs/src/timer/CHANGELOG'\" \(206 characters\)
  1194. sed "s/^X//" >'libs/src/timer/CHANGELOG' <<'END_OF_FILE'
  1195. X
  1196. X1.2.2:
  1197. X    Posted as part of xinetd
  1198. X
  1199. X1.3.0:
  1200. X    -    Minor fixes to the Makefile
  1201. X    -    The STATES file was added to the distribution
  1202. X    -    Preprocessor flags were added to selectively disable timers of
  1203. X        specific types.
  1204. END_OF_FILE
  1205. if test 206 -ne `wc -c <'libs/src/timer/CHANGELOG'`; then
  1206.     echo shar: \"'libs/src/timer/CHANGELOG'\" unpacked with wrong size!
  1207. fi
  1208. # end of 'libs/src/timer/CHANGELOG'
  1209. fi
  1210. if test ! -d 'libs/src/xlog' ; then
  1211.     echo shar: Creating directory \"'libs/src/xlog'\"
  1212.     mkdir 'libs/src/xlog'
  1213. fi
  1214. if test -f 'libs/src/xlog/CHANGELOG' -a "${1}" != "-c" ; then 
  1215.   echo shar: Will not clobber existing file \"'libs/src/xlog/CHANGELOG'\"
  1216. else
  1217. echo shar: Extracting \"'libs/src/xlog/CHANGELOG'\" \(527 characters\)
  1218. sed "s/^X//" >'libs/src/xlog/CHANGELOG' <<'END_OF_FILE'
  1219. X
  1220. X1.0.8:
  1221. X    First release
  1222. X
  1223. X1.0.9:
  1224. X    Fixed bug in the syslog xlogs.
  1225. X
  1226. X1.1.2:
  1227. X    * Timestamps are now always included
  1228. X    * If NO_SYSLOG is defined, syslog xlogs become unavailable (this was
  1229. X      available in 1.0.9 but it didn't work right).
  1230. X
  1231. X1.1.3:
  1232. X    * corrected macros SYSLOG/FILELOG in slog.h/filelog.h
  1233. X    * removed slp_ident_is_malloced field from struct syslog_parms (slog.h)
  1234. X    * Conditional use of LOG_PID/LOG_NOWAIT (slog.c)
  1235. X    * slog_control returns XLOG_EBADOP for XLOG_GETFD (slog.c)
  1236. X    * documented how xlog_control should work (xlog.3)
  1237. X
  1238. END_OF_FILE
  1239. if test 527 -ne `wc -c <'libs/src/xlog/CHANGELOG'`; then
  1240.     echo shar: \"'libs/src/xlog/CHANGELOG'\" unpacked with wrong size!
  1241. fi
  1242. # end of 'libs/src/xlog/CHANGELOG'
  1243. fi
  1244. if test -f 'libs/src/xlog/slog.h' -a "${1}" != "-c" ; then 
  1245.   echo shar: Will not clobber existing file \"'libs/src/xlog/slog.h'\"
  1246. else
  1247. echo shar: Extracting \"'libs/src/xlog/slog.h'\" \(584 characters\)
  1248. sed "s/^X//" >'libs/src/xlog/slog.h' <<'END_OF_FILE'
  1249. X/*
  1250. X * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis
  1251. X * All rights reserved.  The file named COPYRIGHT specifies the terms 
  1252. X * and conditions for redistribution.
  1253. X */
  1254. X
  1255. X
  1256. X/*
  1257. X * $Id: slog.h,v 2.2 1993/10/28 01:37:08 panos Exp $
  1258. X */
  1259. X
  1260. X
  1261. Xstruct syslog
  1262. X{
  1263. X    int sl_facility ;
  1264. X    int sl_default_level ;
  1265. X} ;
  1266. X
  1267. X
  1268. Xstruct syslog_parms
  1269. X{
  1270. X   int         slp_n_xlogs ;              /* # of xlogs using syslog */
  1271. X   int         slp_logopts ;              /* used at openlog */
  1272. X   int         slp_facility ;
  1273. X   char        *slp_ident ;                    /* used at openlog */
  1274. X} ;
  1275. X
  1276. X#define SYSLOG( xp )         ((struct syslog *)(xp)->xl_data)
  1277. X
  1278. END_OF_FILE
  1279. if test 584 -ne `wc -c <'libs/src/xlog/slog.h'`; then
  1280.     echo shar: \"'libs/src/xlog/slog.h'\" unpacked with wrong size!
  1281. fi
  1282. # end of 'libs/src/xlog/slog.h'
  1283. fi
  1284. echo shar: End of archive 1 \(of 20\).
  1285. cp /dev/null ark1isdone
  1286. MISSING=""
  1287. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ; do
  1288.     if test ! -f ark${I}isdone ; then
  1289.     MISSING="${MISSING} ${I}"
  1290.     fi
  1291. done
  1292. if test "${MISSING}" = "" ; then
  1293.     echo You have unpacked all 20 archives.
  1294.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1295. else
  1296.     echo You still need to unpack the following archives:
  1297.     echo "        " ${MISSING}
  1298. fi
  1299. ##  End of shell archive.
  1300. exit 0
  1301.