Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    10
    Views
    275

    I think I fixed it: void * paw__realloc(...

    I think I fixed it:



    void * paw__realloc( PAGE *page, struct _ADDR *addr, size_t size )
    {
    char *ptr, *end, *nxt, *tmp;

    if ( !size )
    {
  2. Replies
    10
    Views
    275

    Attached a copy of file with faulty code,...

    Attached a copy of file with faulty code, somewhere in the paw_realloc() path of logic I manage to mis-allocate memory, the main function that is relied upon is paw__realloc(), the rest are more for...
  3. Replies
    10
    Views
    275

    Okay now I know part of the reason why I was...

    Okay now I know part of the reason why I was getting segfaults, I thought, like a numpty, that mmap would return NULL on failure since that is universally recognised as an invalid address, nope, it...
  4. Replies
    10
    Views
    275

    Was testing my code with valgrind and there...

    Was testing my code with valgrind and there appears to be an issue with calloc & co on my system, at the very least I couldn't see anything in my code that would lead to it, rather according to some...
  5. Replies
    10
    Views
    275

    Okay I'm encountering a strange bug now. This...

    Okay I'm encountering a strange bug now.

    This infinity loops:


    while ( (line = tcf_next_line( file )) )
    {
    puts( line );
    }
  6. Replies
    10
    Views
    275

    For anyone that was looking for the fault in the...

    For anyone that was looking for the fault in the bottom function in my previous post, I found it, turned out I had not cleared the remaining bytes correctly, here's the correct code for that section:...
  7. Replies
    10
    Views
    275

    While I was waiting for a response I worked on a...

    While I was waiting for a response I worked on a pair of functions that extracted and concated variables from the path to a text buffer (_path in this case), somehow the problem went away after I did...
  8. Replies
    10
    Views
    275

    No, I used an absolute path, I simply replaced it...

    No, I used an absolute path, I simply replaced it with ~ before posting, I feel uncomfortable about putting my directories on the net.
  9. Replies
    10
    Views
    275

    What am I overlooking with my test code?

    Been trying to learn opengl but the project I was adapting to it has become a mess so I created a new project with fresh code in mind, figured I'd refresh myself on the TCHAR crap that windows...
  10. Encountering a segfault that I can't track down...

    Encountering a segfault that I can't track down the source of, I've uploaded the current state of code to the gitlab repository (I switched from github to gitlab after having enough of copying my SSH...
  11. I'll take that as a no then

    I'll take that as a no then
  12. What recommendations do peops have for object management?

    I've recently realised the best way to share objects into lua and anything the lua code passes those objects onto without the risk of mixing up pointers from different allocation systems (via...
  13. Replies
    15
    Views
    535

    btw does anyone think this is insufficient...

    btw does anyone think this is insufficient documentation for the original function I spoke of:


    /* '\0' is temporarily used to overwrite directory seperators during the search,
    * seperators are...
  14. Replies
    15
    Views
    535

    I feel like something is wrong with these, if...

    I feel like something is wrong with these, if anyone spots it, mind telling me what it is please


    #ifdef PAW_WIN32
    struct paw_path* paw_get_sym_path_by_handle( void *ud, HANDLE file )
    {...
  15. Replies
    15
    Views
    535

    Found something of semi-relevance today:...

    Found something of semi-relevance today:
    NtQueryInformationFile


    #ifdef PAW_WIN32
    struct paw_path paw__win32_get_file_user_path( void *ud, HANDLE file )
    {
    FILE_NAME_INFORMATION fi;...
  16. Replies
    15
    Views
    535

    Honestly that seems slower than the method I've...

    Honestly that seems slower than the method I've gone with, it IS good for enumerating them though so ty, I'll eventually make use of that
  17. Replies
    15
    Views
    535

    I'll look into that later then, for now a simple...

    I'll look into that later then, for now a simple method is good enough, I'll just add a TODO comment in there to jog my memory later
  18. Replies
    15
    Views
    535

    Okay, this is what I have, see any problems? ...

    Okay, this is what I have, see any problems?



    ...
    else
    {

    #ifdef PAW_WIN32
    *ENT = strrchr( src, '\\' );
  19. Replies
    15
    Views
    535

    That was actually helpful, I'll iterate through...

    That was actually helpful, I'll iterate through each directory in the path until reach the filename or the device is different, btw what I meant was something like the "C:\" you get for system media...
  20. Replies
    15
    Views
    535

    I did consider that but the documentation doesn't...

    I did consider that but the documentation doesn't explain what to look for when seeing if a path it is linked to a device's root, or at least doesn't do a good enough job of it since I can't work it...
  21. Replies
    15
    Views
    535

    I appreciate the attempt but that's all for the...

    I appreciate the attempt but that's all for the shell & bash, I need a function in the operating system
  22. Replies
    15
    Views
    535

    Anyone familiar with linux file APIs?

    I'd like to check if a path is from a mounted media, on windows it's fairly easy, just grab the first ':' character and declare anything before it as a drive but on linux I'm struggling to find some...
  23. Sooner or later I'm gonna have to get round to...

    Sooner or later I'm gonna have to get round to checking for the death of traced & potentially hooked processes, what would be the suggestions for when I get to that point for both systems
  24. This is the new state of the function, I'm not...

    This is the new state of the function, I'm not expecting there to be issues but posting it on the off chance I overlooked something.


    PAW_SHARED struct paw_app* paw_boot_app( void *ud, char const...
  25. ty :)

    ty :)
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4