Skip to main content

Buffered Input and Output

  • Chapter
Programming the UNIX™ System

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 51 Accesses

Abstract

The UNIX system provides system calls which give direct access to the I/O functions of the kernel however, the efficiency of programmed I/O can be greatly improved by buffering data in the users program and so reducing the number of these calls. In fact, buffered I/O is such a commonly used technique that UNIX provides a complete package called the Standard I/O Libraries to support it. Not only does this package provide a standard I/O interface for programs but it also provides a wide variety of useful functions such as formatted input and output. The use of these libraries is the subject of this chapter.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Further Reading

  • B. W. Kernighan (1978) UNIX Programming — Second Edition, UNIX V7, volume 2a.

    Google Scholar 

Download references

Authors

Copyright information

© 1985 M. R. M. Dunsmuir and G. J. Davies

About this chapter

Cite this chapter

Dunsmuir, M.R.M., Davies, G.J. (1985). Buffered Input and Output. In: Programming the UNIX™ System. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-07371-9_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-07371-9_5

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-1-349-07373-3

  • Online ISBN: 978-1-349-07371-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics