|
��������
ldshread, ldnshread - ������ ��������� ������ ���������� ����� �������� �������
���������
#include <stdio.h> #include <filehdr.h> #include <scnhdr.h> #include <ldfcn.h> int ldshread (ldptr, sectindx, secthead) LDFILE *ldptr; unsigned short sectindx; SCNHDR *secthead; int ldnshread (ldptr, sectname, secthead) LDFILE *ldptr; char *sectname; SCNHDR *secthead;
��������
������� ldshread ������ �� ���������� �����, ���������������� � ���������� ldptr, ��������� ������ � �������
sectindx (������ ���������� � �������). ��������� �������� � ������� ������ � ������� secthead.
������� ldnshread ���������� ������ ���, ��� ������ �������� ������ *sectname.
��� ������� ���������� �������� FAILURE, ����:
��� �������������� ������ ���������� ��������� ������� ���������� ���������� �������� ������� � ��������� ������ libld.a.
��. �����
ldclose(3X), ldopen(3X), ldfcn(4).
|