10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
UNIX sco release 5.05 system does not boot:cannot open device hd(40)/boot
stage 1 boot failure: error loading hd(40)/bootWhat to do? (2 Replies)
Discussion started by: Joaoalpande
2 Replies
2. UNIX for Dummies Questions & Answers
Hello everyone and thanks for your help in advance. Iama Windows Server administrator/programmer that has inheirited a SCO Unix 5.07 server running legacy applications. My first thought was to install the Unix OS on a separate test environment. However, I am in need of the most basic information... (3 Replies)
Discussion started by: kmcnet
3 Replies
3. SCO
Hi
I have some sco xenix object, bin and archive files that operate in sco unix 5.0.7.
I know that sco unix kernel can support sco xenix binary. I want to know how can I link xenix and unix archives together? (0 Replies)
Discussion started by: javad1_maroofi
0 Replies
4. UNIX for Dummies Questions & Answers
another unix printing issue.
our client based pc's used to print some form's to our hp printer. as of the moment they can not print.
i have checked & did the ff:
#lpstat -r (scheduler is running)
i dunno if i need to restart the whole unix box via shutdown or just checking at... (15 Replies)
Discussion started by: jedimaster
15 Replies
5. UNIX for Dummies Questions & Answers
I am a newbie to Unix. I am getting a banner page or a 2nd page after anything is printed. This is what is appearing on the 2nd page
User: root
Host: omdser.bsi-digital
class: omdser.bsi-digital
job: 9292929 invoicecontract_1
How can I eliminate this page. I have tried from the gui... (1 Reply)
Discussion started by: bsidigital
1 Replies
6. Filesystems, Disks and Memory
Hello Moto
I hope someone can help
We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers..
a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies
7. UNIX for Advanced & Expert Users
Unix server was Connected in intranet. How can I transfer files from UNIX to WIN 2000 such as in Linux to windows 2000 by ussing WinSCP3 (0 Replies)
Discussion started by: nsuryadevara
0 Replies
8. UNIX for Dummies Questions & Answers
In sco unix sysyem, we can see the users by suing w. at the idel column we can know how long a user who login the system but do noting.
My question is how can I auto logout such users like above? (6 Replies)
Discussion started by: luoxl
6 Replies
9. UNIX for Dummies Questions & Answers
The retail system our company uses runs on Sco Openserver 5. I wish to install it at home so I can gain some experience with unix. Does anyone know (before I install it) is sco unix comes with a boot loader.
When I installed mandrake linux on the same machine as win xp the boot loader wouldn't... (3 Replies)
Discussion started by: potter
3 Replies
10. Filesystems, Disks and Memory
Hi everyone i have a question for all of you. It may be basic or it may be a good one. I recently aquired a copy of "SCO TCP/IP runtime System for SCO Unix" (thats what the disks say) and for the life of me i can not get it to load. i have tried opening the disk in linux and it can not determine... (0 Replies)
Discussion started by: Cerberus
0 Replies
CFREE(3) Linux Programmer's Manual CFREE(3)
NAME
cfree - free allocated memory
SYNOPSIS
#include <stdlib.h>
/* In SunOS 4 */
int cfree(void *ptr);
/* In glibc or FreeBSD libcompat */
void cfree(void *ptr);
/* In SCO OpenServer */
void cfree(char *ptr, unsigned num, unsigned size);
/* In Solaris watchmalloc.so.1 */
void cfree(void *ptr, size_t nelem, size_t elsize);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
cfree(): _BSD_SOURCE || _SVID_SOURCE
DESCRIPTION
This function should never be used. Use free(3) instead.
1-arg cfree
In glibc, the function cfree() is a synonym for free(3), "added for compatibility with SunOS".
Other systems have other functions with this name. The declaration is sometimes in <stdlib.h> and sometimes in <malloc.h>.
3-arg cfree
Some SCO and Solaris versions have malloc libraries with a 3-argument cfree(), apparently as an analog to calloc(3).
If you need it while porting something, add
#define cfree(p, n, s) free((p))
to your file.
A frequently asked question is "Can I use free(3) to free memory allocated with calloc(3), or do I need cfree()?" Answer: use free(3).
An SCO manual writes: "The cfree routine is provided for compliance to the iBCSe2 standard and simply calls free. The num and size argu-
ments to cfree are not used."
RETURN VALUE
The SunOS version of cfree() (which is a synonym for free(3)) returns 1 on success and 0 on failure. In case of error, errno is set to
EINVAL: the value of ptr was not a pointer to a block previously allocated by one of the routines in the malloc(3) family.
CONFORMING TO
The 3-argument version of cfree() as used by SCO conforms to the iBCSe2 standard: Intel386 Binary Compatibility Specification, Edition 2.
SEE ALSO
malloc(3)
COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2007-07-26 CFREE(3)