Download The Tomes of Kylix: The Linux API by Glenn Thomas Stephens PDF

By Glenn Thomas Stephens

This advisor takes the Kylix developer throughout the middle aspects of Linux improvement from complicated dossier processing to Linux threading concerns, together with complex Linux verbal exchange tools relative to the appliance programming interface.

Show description

Read Online or Download The Tomes of Kylix: The Linux API PDF

Best operating systems books

Alan Simpson's Windows XP Reloaded Bible

What the ebook covers: specializes in home windows XP performance, this Bible covers the fundamentals (e. g. , navigating your machine) in addition to find out how to use the preferred net good points, customise the paintings atmosphere, continue and tweak the procedure, and use basic strategies for operating with textual content, numbers, and photos.

Mac OS X

Bei Mac OS X handelt es sich um das jüngste Betriebssystem von Apple laptop. Es unterscheidet sich vom Vorgänger Mac OS nine nicht nur durch eine Vielzahl von neuen Funktionen und durch die neue Benutzeroberfläche Aqua, sondern vor allen Dingen durch die Nutzung von Mach und BSD als foundation für seine Implementierung.

Extra info for The Tomes of Kylix: The Linux API

Sample text

Instead, when using a file descriptor, you can specify the security options in the call to the open function. In a similar fashion, when creating directories with Kylix, you would normally use the MkDir function found in the System unit. This function will only create a directory with default permissions for the new directory. Using the __mkdir function found in the LibC unit, however, will allow you to specify the permissions for that directory when it is created. Likewise, the creat function will allow you to specify the permissions of a file when the file is created.

It is this pointer that is the stream. 2 Simple operations on files and streams Reading and Writing Files Like opening and closing files, methods of reading and writing files depends on whether you are using file descriptors or streams. The Linux API functions allow reading and writing of single characters, strings, and blocks of data from file. What is more evident is that there are many more functions for reading and writing using streams than there are for using file descriptors. This is due to the fact that file descriptors were meant to be the low-level interface to files, whereas streams were designed to be an abstract way of dealing with files so you are not complicated with working with the limited functionality of file descriptors.

Whenever a file is opened using reset or write from within your application, the Kylix CLX is actually opening a file descriptor in a record structure called TFileRec. TFileRec is used internally with Kylix and is never really used outside. In Kylix the Handle field of the TFileRec record comes from a call to the open function. As a result, obtaining the file descriptor is a matter of getting the Handle field. Normal typecasting will not allow you to convert them directly. 11. Handle; //Read a character using the Linux API.

Download PDF sample

Rated 4.69 of 5 – based on 49 votes