The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

core (5)
  • core (4) ( Solaris man: Специальные файлы /dev/* )
  • >> core (5) ( FreeBSD man: Форматы файлов )
  • core (5) ( Linux man: Форматы файлов )

  • BSD mandoc
     

    NAME

    
    
    core
    
     - memory image file format
    
     
    

    SYNOPSIS

       #include <sys/param.h>
     

    DESCRIPTION

    A small number of signals which cause abnormal termination of a process also cause a record of the process's in-core state to be written to disk for later examination by one of the available debuggers. (See sigaction(2).) This memory image is written to a file named by default programname.core in the working directory; provided the terminated process had write permission in the directory, and provided the abnormality did not cause a system crash. (In this event, the decision to save the core file is arbitrary, see savecore(8).)

    The maximum size of a core file is limited by setrlimit(2). Files which would be larger than the limit are not created.

    The name of the file is controlled via the sysctl(8) variable kern.corefile The contents of this variable describes a filename to store the core image to. This filename can be absolute, or relative (which will resolve to the current working directory of the program generating it). Any sequence of %N in this filename template will be replaced by the process name, %P by the processes PID, and %U by the UID. The name defaults to %N.core yielding the traditional Fx behaviour.

    By default, a process that changes user or group credentials whether real or effective will not create a corefile. This behaviour can be changed to generate a core dump by setting the sysctl(8) variable kern.sugid_coredump to 1.  

    EXAMPLES

    In order to store all core images in per-user private areas under /var/coredumps the following sysctl(8) command can be used:

    sysctl kern.corefile="/var/coredumps/%U/%N.core"
     

    SEE ALSO

    gdb(1), kgdb(1), setrlimit(2), sigaction(2), sysctl(8)  

    HISTORY

    A file format appeared in AT&T System v6 .


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    EXAMPLES
    SEE ALSO
    HISTORY


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру