home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSCCCCSSSSccccaaaannnn((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSCCCCSSSSccccaaaannnn((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- SCScan, SCScanFD - start scanning from a scanning device.
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccaaaannnnnnnneeeerrrr....hhhh>>>>
-
- iiiinnnntttt SSSSCCCCSSSSccccaaaannnn((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss))));;;;
-
- iiiinnnntttt SSSSCCCCSSSSccccaaaannnnFFFFDDDD((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss,,,, iiiinnnntttt ffffdddd))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _S_C_S_c_a_n tells the scanner driver to start scanning. _s specifies a
- connection to a scanner driver established by a call to _S_C_O_p_e_n,
- _S_C_O_p_e_n_F_i_l_e, or _S_C_O_p_e_n_S_c_r_e_e_n. The scan data is then retrieved by calling
- _S_C_G_e_t_S_c_a_n_L_i_n_e(3) or _S_C_G_e_t_S_c_a_n_F_D(3).
-
- _S_C_S_c_a_n_F_D tells the scanner driver to start scanning, with the scan data
- being written directly to _f_d. _l_i_b_s_c_a_n will pass the file descriptor to
- the scanner driver, and the scanner driver will write the scan data
- directly to the file descriptor.
-
- Before calling either of these functions, _S_C_S_e_t_u_p(3) and _S_C_G_e_t_S_c_a_n_S_i_z_e(3)
- should be called.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _S_C_S_c_a_n and _S_C_S_c_a_n_F_D return 0 if successful. If an error occurs, -1 is
- returned and _S_C_e_r_r_n_o is set to indicate the reason for failure.
-
- EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
- _S_C_S_c_a_n and _S_C_S_c_a_n_F_D will fail under the following circumstances.
-
- SCECOMM Error communicating with scanner driver
-
- SCEDEV Scanner driver error
-
- SCEDRVMSG Driver specific error. _S_C_E_r_r_o_r_S_t_r_i_n_g(3) will
- return a custom message supplied by the scanner
- driver
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _l_i_b_s_c_a_n(3), _S_C_O_p_e_n(3), _S_C_S_e_t_u_p(3), _S_C_G_e_t_S_c_a_n_S_i_z_e(3).
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-