1. Друзья, в это тяжёлое и непонятное для всех нас время мы просим вас воздержаться от любых упоминаний политики на форуме, - этим ситуации не поможешь, а только возникнут ненужные ссоры и обиды. Это касается также шуток и юмора на тему конфликта. Пусть войны будут только виртуальными, а политики решают разногласия дипломатическим путём. С уважением, администрация Old-Games.RU.

    Скрыть объявление
  2. Пожалуйста, внимательно прочитайте правила раздела.
  3. Если Вы видите это сообщение, значит, вы ещё не зарегистрировались на нашем форуме.

    Зарегистрируйтесь, если вы хотите принять участие в обсуждениях. Перед регистрацией примите к сведению:
    1. Не регистрируйтесь с никами типа asdfdadhgd, 354621 и тому подобными, не несущими смысловой нагрузки (ник должен быть читаемым!): такие пользователи будут сразу заблокированы!
    2. Не регистрируйте больше одной учётной записи. Если у вас возникли проблемы при регистрации, то вы можете воспользоваться формой обратной связи внизу страницы.
    3. Регистрируйтесь с реально существующими E-mail адресами, иначе вы не сможете завершить регистрацию.
    4. Обязательно ознакомьтесь с правилами поведения на нашем форуме, чтобы избежать дальнейших конфликтов и непонимания.
    С уважением, администрация форума Old-Games.RU
    Скрыть объявление

Soft Вопрос по makefile

Тема в разделе "Hard & Soft", создана пользователем [no]name, 13 май 2008.

  1. John Freeman

    John Freeman

    Регистрация:
    13 май 2004
    Сообщения:
    14.241
    Ну, под freebsd оно точно собирается, а cygwin я ещё не переставил...
     
  2. [no]name

    [no]name

    Регистрация:
    5 июн 2005
    Сообщения:
    2.629
    Nil, вот wait.h из Cygwin.

    Код:
    /* sys/wait.h
    
       Copyright 1997, 1998, 2001, 2002, 2003, 2004, 2006 Red Hat, Inc.
    
    This file is part of Cygwin.
    
    This software is a copyrighted work licensed under the terms of the
    Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
    details. */
    
    #ifndef _SYS_WAIT_H
    #define _SYS_WAIT_H
    
    #include <sys/types.h>
    #include <sys/resource.h>
    #include <cygwin/wait.h>
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    pid_t wait (int *);
    pid_t waitpid (pid_t, int *, int);
    pid_t wait3 (int *__status, int __options, struct rusage *__rusage);
    pid_t wait4 (pid_t __pid, int *__status, int __options, struct rusage *__rusage);
    
    union wait
      {
        int w_status;
        struct
          {
    	unsigned int __w_termsig:7; /* Terminating signal.  */
    	unsigned int __w_coredump:1; /* Set if dumped core.  */
    	unsigned int __w_retcode:8; /* Return code if exited normally.  */
    	unsigned int:16;
          } __wait_terminated;
        struct
          {
    	unsigned int __w_stopval:8; /* W_STOPPED if stopped.  */
    	unsigned int __w_stopsig:8; /* Stopping signal.  */
    	unsigned int:16;
          } __wait_stopped;
      };
    
    #define	w_termsig	__wait_terminated.__w_termsig
    #define	w_coredump	__wait_terminated.__w_coredump
    #define	w_retcode	__wait_terminated.__w_retcode
    #define	w_stopsig	__wait_stopped.__w_stopsig
    #define	w_stopval	__wait_stopped.__w_stopval
    
    #ifdef __cplusplus
    };
    #endif
    
    #endif
    
     
  3. MisterGrim Very old

    MisterGrim

    Legacy

    Регистрация:
    29 ноя 2007
    Сообщения:
    25.423
    [no]name, невооружённым глазом видно, что он тянет за собой ещё два файла из cygwin.

    Вот они:

    sys/resource.h:
    Код:
    /* sys/resource.h
    
       Copyright 1997, 1998, 2000, 2001 Red Hat, Inc.
    
    This file is part of Cygwin.
    
    This software is a copyrighted work licensed under the terms of the
    Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
    details. */
    
    #ifndef _SYS_RESOURCE_H_
    #define _SYS_RESOURCE_H_
    
    #include <sys/time.h>
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    /* Used for get/setpriority */
    #define PRIO_PROCESS	0
    #define PRIO_PGRP	1
    #define PRIO_USER	2
    
    #define RLIMIT_CPU	0		/* CPU time in seconds */
    #define RLIMIT_FSIZE	1		/* Maximum filesize */
    #define RLIMIT_DATA	2		/* max data size */
    #define RLIMIT_STACK	3		/* max stack size */
    #define RLIMIT_CORE	4		/* max core file size */
    #define RLIMIT_NOFILE	5		/* max number of open files */
    #define RLIMIT_OFILE	RLIMIT_NOFILE	/* BSD name */
    #define RLIMIT_AS	6		/* address space (virt. memory) limit */
    
    #define RLIMIT_NLIMITS  7		/* upper bound of RLIMIT_* defines */
    #define RLIM_NLIMITS    RLIMIT_NLIMITS
    
    #define RLIM_INFINITY	(0xffffffffUL)
    #define RLIM_SAVED_MAX	RLIM_INFINITY
    #define RLIM_SAVED_CUR	RLIM_INFINITY
    
    typedef unsigned long rlim_t;
    
    struct rlimit {
    	rlim_t	rlim_cur;
    	rlim_t	rlim_max;
    };
    
    #define	RUSAGE_SELF	0		/* calling process */
    #define	RUSAGE_CHILDREN	-1		/* terminated child processes */
    
    struct rusage {
    	struct timeval ru_utime;	/* user time used */
    	struct timeval ru_stime;	/* system time used */
    	long ru_maxrss;
    	long ru_ixrss;               /* XXX: 0 */
    	long ru_idrss;               /* XXX: sum of rm_asrss */
    	long ru_isrss;               /* XXX: 0 */
    	long ru_minflt;              /* any page faults not requiring I/O */
    	long ru_majflt;              /* any page faults requiring I/O */
    	long ru_nswap;               /* swaps */
    	long ru_inblock;             /* block input operations */
    	long ru_oublock;             /* block output operations */
    	long ru_msgsnd;              /* messages sent */
    	long ru_msgrcv;              /* messages received */
    	long ru_nsignals;            /* signals received */
    	long ru_nvcsw;               /* voluntary context switches */
    	long ru_nivcsw;              /* involuntary " */
    #define ru_last         ru_nivcsw
    };
    
    int getrlimit (int __resource, struct rlimit *__rlp);
    int setrlimit (int __resource, const struct rlimit *__rlp);
    
    int getrusage (int __who, struct rusage *__rusage);
    
    int getpriority (int which, id_t who);
    int setpriority (int which, id_t who, int value);
    
    #ifdef __cplusplus
    }
    #endif
    
    #endif
    
    
    cygwin/wait.h:
    Код:
    /* cygwin/wait.h
    
       Copyright 2006 Red Hat, Inc.
    
    This file is part of Cygwin.
    
    This software is a copyrighted work licensed under the terms of the
    Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
    details. */
    
    #ifndef _CYGWIN_WAIT_H
    #define _CYGWIN_WAIT_H
    
    #define WNOHANG 1
    #define WUNTRACED 2
    
    /* A status looks like:
          <2 bytes info> <2 bytes code>
    
          <code> == 0, child has exited, info is the exit value
          <code> == 1..7e, child has exited, info is the signal number.
          <code> == 7f, child has stopped, info was the signal number.
          <code> == 80, there was a core dump.
    */
    
    #define WIFEXITED(w)	(((w) & 0xff) == 0)
    #define WIFSIGNALED(w)	(((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
    #define WIFSTOPPED(w)	(((w) & 0xff) == 0x7f)
    #define WEXITSTATUS(w)	(((w) >> 8) & 0xff)
    #define WTERMSIG(w)	((w) & 0x7f)
    #define WSTOPSIG	WEXITSTATUS
    #define WCOREDUMP(w)	(WIFSIGNALED(w) && (w & 0x80))
    
    #endif /* _CYGWIN_WAIT_H */
    
     
    Последнее редактирование: 14 май 2008
    [no]name нравится это.
  4. [no]name

    [no]name

    Регистрация:
    5 июн 2005
    Сообщения:
    2.629
    MisterGrim, я никаким глазом не смотрел.
     
  5. John Freeman

    John Freeman

    Регистрация:
    13 май 2004
    Сообщения:
    14.241
    Да не помогут ему эти файлы, как минимум тогда надо будет cygwn core...
     
  6. MisterGrim Very old

    MisterGrim

    Legacy

    Регистрация:
    29 ноя 2007
    Сообщения:
    25.423
    Скажем так: 95%, что не помогут.
     
  7. John Freeman

    John Freeman

    Регистрация:
    13 май 2004
    Сообщения:
    14.241
    Nil, cygwin - собирается, wsfu - собирается, Vista&2008 Subsystem for UNIX based applications - собирается.
     
  8. Nil Любимый цвет — голубой

    Nil

    Регистрация:
    30 апр 2007
    Сообщения:
    1.974
    да собрал я его, только он мне ничем не помог. Ладно, пока не актуально и то хорошо.
     
  1. На этом сайте используются файлы cookie, чтобы персонализировать содержимое, хранить Ваши предпочтения и держать Вас авторизованным в системе, если Вы зарегистрировались.
    Продолжая пользоваться данным сайтом, Вы соглашаетесь на использование нами Ваших файлов cookie.
    Скрыть объявление